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 · 0 comments
Open

Build docker images #41

pwFoo opened this issue Feb 22, 2021 · 0 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://
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant