Replies: 1 comment 3 replies
-
The problem with Docker builds for Rust is that you have to have everything in your Docker container. For that I used blackdex/rust-musl images that rely on the musl c compiler instead of libgcc that links dynamically things. So if you want to run PodFetch on your own machine. You need to run the following commands which will prepare your executables docker run --rm -v armv7prod:/root/.cargo -v "$(pwd)":/home/rust/src blackdex/rust-musl:x86_64-musl-stable cargo build --release --features postgresql Now you should have all 3 executables for all platforms. After that you just do : docker buildx bake --set ".tags=samuel19982/podfetch:latest" --set '.dockerfile=Dockerfile_cross_postgres' Then you should have the Docker image of PodFetch for all available platforms |
Beta Was this translation helpful? Give feedback.
-
I wouldn't mind attempting to contribute but my experience with docker is just in running other peoples containers, never building my own. My initial attempts to run
docker build
have not worked. I have not seen anything in the documentation about building Podfetch specifically.I've tried this so far:
sudo docker build -t podfetch-test -f Dockerfile_cross_postgres .
Which results in:
Beta Was this translation helpful? Give feedback.
All reactions