mmstick / cargo-deb

A cargo subcommand that generates Debian packages from information in Cargo.toml
615 stars 50 forks source link

Docker container for CI/CD builds #160

Open LordMZTE opened 3 years ago

LordMZTE commented 3 years ago

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.

kornelski commented 3 years ago

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.

LordMZTE commented 3 years ago

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?

kornelski commented 3 years ago

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

jbabyhacker commented 3 years ago

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.