This repository was archived by the owner on Oct 25, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +41
-0
lines changed Expand file tree Collapse file tree 1 file changed +41
-0
lines changed Original file line number Diff line number Diff line change
1
+ #
2
+ # Copyright (C) 2023 Intel Corporation
3
+ #
4
+ # SPDX-License-Identifier: Apache-2.0
5
+ #
6
+
7
+ # This Dockerfile creates a docker image for building OWT native SDK for Linux.
8
+
9
+ FROM ubuntu:22.04
10
+ SHELL ["/bin/bash" , "-c" ]
11
+ ENV DEBIAN_FRONTEND=noninteractive
12
+ RUN apt-get update && apt-get install -y git curl wget lsb-release tzdata xz-utils python3 python-is-python3 gcc g++
13
+ RUN git config --global user.email
"[email protected] " && git config --global user.name
"Example Name"
14
+ RUN mkdir workspace
15
+ WORKDIR /workspace
16
+ RUN git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git
17
+ ENV PATH="$PATH:/workspace/depot_tools"
18
+ RUN mkdir owt-linux
19
+ WORKDIR /workspace/owt-linux
20
+ RUN echo $'solutions = [\n \
21
+ {\n \
22
+ "name" : "src",\n \
23
+ "url" : "https://github.com/open-webrtc-toolkit/owt-client-native.git",\n \
24
+ "deps_file" : "DEPS",\n \
25
+ "managed" : False,\n \
26
+ "custom_deps" : {\n \
27
+ },\n \
28
+ "custom_vars": {},\n \
29
+ },\n \
30
+ ]\n \
31
+ target_os = ["linux"]' > .gclient
32
+
33
+ RUN gclient sync --nohooks
34
+ # Workaround a tar issue caused by invalid GID and UID.
35
+ RUN sed -i 's/sysroot]/sysroot, "--no-same-owner"]/g' src/build/linux/sysroot_scripts/install-sysroot.py
36
+ RUN gclient runhooks
37
+ WORKDIR /workspace/owt-linux/src
38
+ # Commands are run in sudo mode.
39
+ # snapcraft cannot be installed.
40
+ RUN sed -i 's/sudo //g' build/install-build-deps.sh && sed -i 's/{dev_list} snapcraft/{dev_list}/g' build/install-build-deps.sh
41
+ RUN ./build/install-build-deps.sh
You can’t perform that action at this time.
0 commit comments