Skip to content

Commit 79bd29e

Browse files
committed
Add all in one docker file for testing.
1 parent d11981f commit 79bd29e

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed

libwebrtc/Dockerfile-AllInOne

+40
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
FROM ubuntu:20.04
2+
3+
# Install packages for libwebrtc build and app dependencies.
4+
ENV DEBIAN_FRONTEND=noninteractive
5+
RUN echo "tzdata tzdata/Areas select Europe" | debconf-set-selections && \
6+
echo "tzdata tzdata/Zones/Europe select Dublin" | debconf-set-selections
7+
RUN apt update && apt install -y tzdata
8+
RUN echo "keyboard-configuration keyboard-configuration/layoutcode string us" | debconf-set-selections && \
9+
echo "keyboard-configuration keyboard-configuration/modelcode string pc105" | debconf-set-selections
10+
RUN apt update && apt install -y keyboard-configuration
11+
RUN apt update && apt install -y curl git lsb-release python3 python-is-python3 sudo wget xz-utils file
12+
RUN apt update && DEBIAN_FRONTEND="noninteractive" apt install -y \
13+
build-essential cmake libglib2.0-dev libx11-dev libevent-dev clang-18 lld-18
14+
15+
# Install depot_tools
16+
WORKDIR /src
17+
18+
# https://webrtc.googlesource.com/src/+/refs/heads/master/docs/native-code/development/prerequisite-sw/index.md
19+
RUN git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git --depth 1 depot_tools
20+
ENV PATH="/src/depot_tools:${PATH}"
21+
22+
# See the README.md file in the same directory as this docker build file for more explanations and links.
23+
WORKDIR /src/webrtc-checkout
24+
RUN fetch --nohooks webrtc
25+
WORKDIR /src/webrtc-checkout/src
26+
RUN git fetch --all
27+
RUN git checkout remotes/branch-heads/6834 -b m132 # 6834 == m132, see https://chromiumdash.appspot.com/branches.
28+
RUN gclient sync
29+
RUN build/install-build-deps.sh
30+
31+
WORKDIR /src/libwebrtc-webrtc-echo
32+
COPY ["CMakeLists.txt", "fake_audio_capture_module.*", "HttpSimpleServer.*", "json.hpp", "libwebrtc-webrtc-echo.cpp", "PcFactory.*", "PcObserver.*", "./"]
33+
34+
WORKDIR /src
35+
36+
RUN gn gen out/Default --args='is_debug=false rtc_include_tests=false treat_warnings_as_errors=false use_custom_libcxx=false use_rtti=true'
37+
RUN autoninja -C out/Default
38+
39+
WORKDIR /src/libwebrtc-webrtc-echo/build
40+
RUN cmake .. && make VERBOSE=1 && cp libwebrtc-webrtc-echo /

0 commit comments

Comments
 (0)