-
Notifications
You must be signed in to change notification settings - Fork 2
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
Error in github.com/3d0c/gmf downloading stage #19
Comments
Hey @teploff! Sorry for taking that long. I didn't have a chance to check what has happened recently, but would appreciate any help at this moment! |
Very late, but commenting in case this might help someone else out later. I'll preface this by noting I have very little background with pkg-config and cgo so this may be entirely incorrect I was running into the same issue and it looks like it could be because the ❯ docker container run --rm -it ghcr.io/denismakogon/ffmpeg-debian:5.0.1-golang-1 /bin/bash
root@c988a3bb2c84:/go# pkg-config --libs libavutil
-L/opt/ffmpeg/lib -lavutil
root@c988a3bb2c84:/go# cat /usr/local/lib/pkgconfig/libavutil.pc
prefix=/opt/ffmpeg
exec_prefix=${prefix}
libdir=/opt/ffmpeg/lib
includedir=/opt/ffmpeg/include
Name: libavutil
Description: FFmpeg utility library
Version: 57.17.100
Requires:
Requires.private:
Conflicts:
Libs: -L${libdir} -lavutil
Libs.private: -pthread -lva-drm -lva -lm -lva -latomic
Cflags: -I${includedir} This is probably a less than ideal workaround, however, I've got it working by just rolling my own build. I wanted to get it running in a distroless container, but it was just too much of a hassle fighting with the missing dependencies. It takes most of the base build from FROM docker.io/library/golang:1.19-bullseye as build
RUN apt-get update -y && apt-get install -y --no-install-recommends \
libva-drm2 \
libva2 && \
apt-get autoremove -y && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
ENV LD_LIBRARY_PATH=/opt/ffmpeg/lib
ENV PKG_CONFIG_PATH=/opt/ffmpeg/lib/pkgconfig
COPY --from=ghcr.io/denismakogon/ffmpeg-debian:5.0.1-build /opt/ffmpeg /opt/ffmpeg
WORKDIR /build
COPY go.mod ./
COPY go.sum ./
RUN go mod download
COPY main.go ./
RUN go build -o /ffmpeg-tester
FROM debian:bullseye-slim as base
RUN apt-get -yqq update && \
apt-get install -yq --no-install-recommends \
ca-certificates \
expat \
libgomp1 \
libva-drm2 \
libva2 && \
apt-get autoremove -y && \
apt-get clean -y && \
rm -rf /var/lib/apt/lists/*
ENV LD_LIBRARY_PATH=/opt/ffmpeg/lib
ENV PKG_CONFIG_PATH=/opt/ffmpeg/lib/pkgconfig
COPY --from=build /opt/ffmpeg/lib /opt/ffmpeg/lib
COPY --from=build /ffmpeg-tester /ffmpeg-tester
COPY tests-sample.mp4 /samples/tests-sample.mp4
CMD ["/ffmpeg-tester", "-src", "/samples/tests-sample.mp4"] |
Hi @denismakogon! Thank you so much for your help repository.
I'm trying to launch my web service with github.com/3d0c/gmf library in docker.
I've checked your recommendations to create image, and I'm catching the error in go packages download. The error is:
Have you ever faced with its problem?
My full Dockerfile is:
Also I'm trying to build it from sources in your images like:
But It didn't help.
I will be happy if you help me. Have a nice day!
The text was updated successfully, but these errors were encountered: