Sign inSign up

qiaoxueshi/owt-linux

By qiaoxueshi

•Updated over 2 years ago

open-webrtc-toolkit owt sdk for linux

Image
Languages & frameworks
0

167

qiaoxueshi/owt-linux repository overview

Dockerfile used by tag:20240525: owt-client-native⁠

Following Dockerfile, based on owt-client-native⁠, was used by tag:20240525-with-sio-compile-sdk

#
# Copyright (C) 2023 Intel Corporation
#
# SPDX-License-Identifier: Apache-2.0
#

# This Dockerfile creates a docker image for building OWT native SDK for Linux.

FROM ubuntu:22.04
SHELL ["/bin/bash", "-c"]
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update && apt-get install -y git curl wget lsb-release tzdata xz-utils python3 python-is-python3 gcc g++
RUN git config --global user.email "[email protected]" && git config --global user.name "Example Name"
RUN mkdir workspace
WORKDIR /workspace
RUN git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git
ENV PATH="$PATH:/workspace/depot_tools"
RUN mkdir owt-linux
WORKDIR /workspace/owt-linux
RUN echo $'solutions = [\n\
  {\n\
    "name"        : "src",\n\
    "url"         : "https://github.com/open-webrtc-toolkit/owt-client-native.git",\n\
    "deps_file"   : "DEPS",\n\
    "managed"     : False,\n\
    "custom_deps" : {\n\
    },\n\
    "custom_vars": {},\n\
  },\n\
]\n\
target_os = ["linux"]' > .gclient

RUN gclient sync --nohooks
# Workaround a tar issue caused by invalid GID and UID.
RUN sed -i 's/sysroot]/sysroot, "--no-same-owner"]/g' src/build/linux/sysroot_scripts/install-sysroot.py
RUN gclient runhooks
WORKDIR /workspace/owt-linux/src
# Commands are run in sudo mode.
# snapcraft cannot be installed.
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
RUN ./build/install-build-deps.sh

## Additional Dependency
## Compile socket.io
WORKDIR /workspace
RUN git clone --recurse-submodules https://github.com/socketio/socket.io-client-cpp.git
WORKDIR /workspace/socket.io-client-cpp
RUN apt-get install -y cmake
RUN cmake ./
RUN mkdir build
RUN make install DESTDIR=./build/

## Compile static SDK with following command:
# python build_linux.py --gn_gen --arch x64 --sdk --use_gcc --output_path /workspace/owt-linux/src/output --sio_root=/workspace/socket.io-client-cpp/build/usr/local
RUN mkdir /workspace/owt-linux/src/output/
WORKDIR /workspace/owt-linux/src/scripts
RUN python ./build_linux.py --gn_gen --arch x64 --sdk --use_gcc --sio_root=/workspace/socket.io-client-cpp/build/usr/local --output_path /workspace/owt-linux/src/output

Tag summary

Content type

Image

Digest

sha256:55e450f0e…

Size

16.9 GB

Last updated

over 2 years ago

docker pull qiaoxueshi/owt-linux:20240525-with-sio-compile-sdk