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

🐳 Docker build & publish #84

Merged
merged 8 commits into from
Sep 7, 2023
Merged

🐳 Docker build & publish #84

merged 8 commits into from
Sep 7, 2023

Conversation

amimart
Copy link
Member

@amimart amimart commented Sep 6, 2023

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.

@amimart amimart marked this pull request as draft September 6, 2023 14:44
@amimart amimart self-assigned this Sep 6, 2023
Copy link
Member

@ccamel ccamel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great! ❤️

Copy link
Contributor

@ErikssonJoakim ErikssonJoakim left a 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

@amimart amimart merged commit c429691 into main Sep 7, 2023
13 of 14 checks passed
@amimart amimart deleted the build/docker-image branch September 7, 2023 07:50
@bot-anik
Copy link
Member

🎉 This PR is included in version 1.0.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

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

Successfully merging this pull request may close these issues.

🐳 Dockerize project
4 participants