-
Notifications
You must be signed in to change notification settings - Fork 0
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
🐳 Docker build & publish #84
Conversation
2257ea3
to
a29f599
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great! ❤️
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great :D Can't wait to see it running
🎉 This PR is included in version 1.0.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
This PR brings docker build and publish to the project, closes #2
Build details
The docker build is multi staged to minimise the final image size, dependencies fetching & proper build are separate instructions to take benefits from layers and avoid fetching dependencies again if not changed.
The runner image is based on onfinality/subql-node-cosmos keeping its entrypoint and allow to provide further arguments to the node.
The resulting container runs as the user
subql:subql
to avoid running as root.CI improvements
The docker lint & build steps has been added.
The publish action take care of the publication of the docker image on ghcr.io only, I didn't thought it would be useful to publish it on the docker hub in the early phases of this project, let me know if you think otherwise.