cargo-deb icon indicating copy to clipboard operation
cargo-deb copied to clipboard

Docker container for CI/CD builds

Open LordMZTE opened this issue 3 years ago • 4 comments

A docker container based on rust:alpine or rust:buster would make building debian packages using CI/CD services such as drone much easier.

Of course, cargo-deb could also be installed in the container after the fact, but having a pre-made container with it would make the process cleaner.

LordMZTE avatar Jan 05 '21 18:01 LordMZTE

As far as I know, this doesn't need any special sauce in cargo-deb, and it's only a matter of publishing a docker image with it. Since personally I don't use Docker, I'll leave it for someone else to handle.

kornelski avatar Jan 06 '21 18:01 kornelski

Would a pull request adding a Dockerfile to this repo be accepted? If so would the docker image be published on the docker hub account of one of this repo's maintainers, or should I publish it on my docker hub?

LordMZTE avatar Jan 13 '21 23:01 LordMZTE

Please publish it under your account. I don't use Docker, so I can't commit to maintaining an image for it.

kornelski avatar Jan 14 '21 00:01 kornelski

Maybe a better approach would be to include compiled binaries onto the github releases page. That way, you can just download the executable into your docker container instead of building it from source.

jbabyhacker avatar Nov 01 '21 00:11 jbabyhacker