Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The whole idea behind this, is to offer a easier way to test selene and even use it on projects without the need of setting up Rust on the host machine, it's somewhat similar to the one on git-cliff
In short, this Dockerfile basically installs selene from
cargo
(both the normal and light version of selene) and compiles them on amusl
andglibc
environments (Alpine and Debian, respectively), i even published a demo on Docker Hub with binaries built from 0.14.0 sourceThe image has 4 tags
selene:0.14.0
selene:light-0.14.0
selene:musl-0.14.0
selene:musl-light-0.14.0
In order to build it, you must have docker installed, and run the following command:
DOCKER_BUILDKIT=1 docker build \ --target selene -t henriquehbr/selene:0.14.0 \ --target selene-light -t henriquehbr/selene:light-0.14.0 \ --target selene-musl -t henriquehbr/selene:musl-0.14.0 \ --target selene-light-musl -t henriquehbr/selene:light-musl-0.14.0 .
As this might be a unpleasantly long command to type, maybe something like a
Makefile
would come in handy, but ultimately, such decision is up to youAnother important detail, is regarding the selene installation process inside the Dockerfile, which would depend on you publishing selene crate first, and then building the image and pushing it to Docker Hub, if you prefer, we can change it to compile directly from the source, let me know what you think as the best way of doing that