Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Dockerfile to build docker image and a workflow to automate docker image build on Github #29

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

decatoncheir
Copy link

Add Dockerfile to build and deploy docker image. GIthub workflow file for automatic image build.

@decatoncheir
Copy link
Author

After automatic build workflow is added, this can be run on docker. I run the project with following command:

docker run --rm -it --platform linux/amd64 ghcr.io/decatoncheir/rusty-rain:latest -c alpha-num -s

@cowboy8625
Copy link
Owner

Awesome, thanks for the interest in the project! I appreciate the contribution. Could you share the use case for this Docker build file? I'd love to understand how it benefits the project. Pardon my ignorance please. Just trying to better understand how it fits into the project.

@decatoncheir
Copy link
Author

Awesome, thanks for the interest in the project! I appreciate the contribution. Could you share the use case for this Docker build file? I'd love to understand how it benefits the project. Pardon my ignorance please. Just trying to better understand how it fits into the project.

Thanks for your reply!

My use case is that, on any system with Docker installed, you can just run the docker command:
docker run --rm -it --platform linux/amd64 ghcr.io/decatoncheir/rusty-rain:latest -c alpha-num -s (run image from my fork, you can change the repository "decatoncheir/rusty-rain" to your repository name, after the build image workflow run and image is being built)

There is no need to install anything on target system. The command will download the pre-built image from the corresponding repository and run the image in a container.

I'll use this by adding following alias to my shell config file (~/.zshrc in my case):
alias rain="docker run --rm -it --platform linux/amd64 ghcr.io/decatoncheir/rusty-rain:latest -c alpha-num -s"

Then I can just run rain and enjoy!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants