Build docker images
pwFoo opened this issue · comments
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 bywss://
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?
@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