panamax-rs / panamax

Mirror rustup and crates.io repositories, for offline Rust and cargo usage.
Apache License 2.0
443 stars 46 forks source link

Docker container - panamax serve broken #51

Closed g-radam closed 2 years ago

g-radam commented 2 years ago

Serving panamax within a container, and attempting to fetch packages via cargo fails with response 500. I debugged and identified the container does not have git installed which is invoked in the Rust code. Its possible the Debian base image had git installed in a previous version, but has since been removed? Regardless, manually adding git resolves the issue.

Dockerfile patch:

---
RUN apt install -y libssl1.1 ca-certificates
---
+++
RUN apt install -y libssl1.1 ca-certificates git
+++
k3d3 commented 2 years ago

Oh no! Good catch, thank you! I'll try to get this fixed over the weekend.

g-radam commented 2 years ago

Champion! Thanks k3d3.

JamesMConroy commented 2 years ago

I'm still getting this issue with the latest docker image.

Even after installing git on the running container I still get 404 errors when trying to install ripgrep or rustfmt