Skip to content

Instantly share code, notes, and snippets.

@digitallysavvy
Last active October 30, 2019 13:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save digitallysavvy/8819e283d04efdc139d3680515565983 to your computer and use it in GitHub Desktop.
Save digitallysavvy/8819e283d04efdc139d3680515565983 to your computer and use it in GitHub Desktop.
Dockerfile for launching a container running the Agora On-Prem Recording Server in C++
# use base image ubuntu:latest
FROM ubuntu:latest
RUN apt update
# install any needed packages/tools
RUN apt install -y git
RUN yes | apt-get install build-essential
RUN apt-get install gcc
# debugging purposes, enable core dump
RUN ulimit -c unlimited
# download agora sdk zip
ADD https://download.agora.io/ardsdk/release/Agora_Recording_SDK_for_Linux_v2_3_4_FULL.tar.gz .
# unzip sdk
RUN tar xxzf Agora_Recording_SDK_for_Linux_v2_3_4_FULL.tar.gz
# go to c++ sample directory
WORKDIR Agora_Recording_SDK_for_Linux_FULL/samples/cpp
# run make
RUN make
# run recording server
CMD ./recorder_local --appId 4fdfd402ce0a45ea94d850f2124f0b36 --uid 0 --channel demo --channelProfile 0 --appliteDir ../../bin
# --channelProfile <0 Communication, 1 Live broadcast>
# receiving ports
EXPOSE 4000/udp
EXPOSE 41000/udp
EXPOSE 1080/tcp
EXPOSE 8000/tcp
# Specify udp ports
EXPOSE 4001-4030/udp
EXPOSE 1080/udp
EXPOSE 8000/udp
EXPOSE 9700/udp
EXPOSE 25000/udp
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment