Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build docker images #41

Open
pwFoo opened this issue Feb 22, 2021 · 2 comments
Open

Build docker images #41

pwFoo opened this issue Feb 22, 2021 · 2 comments

Comments

@pwFoo
Copy link

pwFoo commented Feb 22, 2021

Hi,

I tried to build a docker image / dockerfile. Build and start works fine.

FROM    golang:alpine

RUN     apk --update --no-cache add \
        gst-plugins-base-dev \
        gstreamer-dev \
        build-base \
        git

#RUN    go get github.com/pion/rtwatch

WORKDIR /rtwatch

ARG     REPO=https://github.com/pion/rtwatch.git
ARG     BRANCH=master

RUN     echo -e "GIT Repo: $REPO\nGIT Branch: $BRANCH"

RUN     git clone https://github.com/pion/rtwatch.git --progress --verbose --branch $BRANCH /rtwatch

RUN     sed -i 's#ws://#wss://#g' main.go

RUN     go install


FROM    alpine:latest

RUN     apk --update --no-cache add \
        gst-plugins-good \ 
        gst-plugins-ugly \
        gst-plugins-bad \
        gstreamer 

COPY    --from=0 /go/bin/rtwatch /usr/local/bin/rtwatch

ENTRYpoint      [ "/usr/local/bin/rtwatch" ]
CMD             [ "-container-path", "/data/video.mp4" ]
  • Video file need to be mapped as volume.
  • For tests ws:// was replaced by wss://
@LordBrain
Copy link

I know this is several years old, but I can not get the container to work. It gets to the loading of the video and sits there like in #38. I have a video with audio set as video.mp4. I am just at a lost for getting this to work. Any ideas?

@Sean-Der
Copy link
Member

Sean-Der commented Jun 9, 2024

@LordBrain the issue is probably networking. Are you able to run it directly?

—net=host is useful if running on Linux. WSL has mirrored networking which works well.

MacOS is a little more frustrating networking wise

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

3 participants