-
Notifications
You must be signed in to change notification settings - Fork 4
chore(dockerfile): multi-stage meta-node docker build #163
Conversation
✅ Deploy Preview for metachain ready!
To edit notification comments on pull requests, go to your Netlify site settings. |
Codecov ReportBase: 6.37% // Head: 6.37% // No change to project coverage 👍
Additional details and impacted files@@ Coverage Diff @@
## main #163 +/- ##
=====================================
Coverage 6.37% 6.37%
=====================================
Files 14 14
Lines 1803 1803
Branches 3 3
=====================================
Hits 115 115
Misses 1688 1688 Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
e73cb11
to
7c6853f
Compare
@@ -1,16 +1,33 @@ | |||
FROM ubuntu:22.04 | |||
FROM ubuntu:22.04 AS builder |
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.
@wafflespeanut suggested we should use 20.04 since the latest LTS version have compatibility issues.
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.
Let's open another PR for that
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.
We can also use debian-11
? Can you open an issue for this.
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.
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.
Looks good! Thanks
.github/workflows/release-docker.yml
Outdated
with: | ||
buildkitd-flags: --oci-worker-max-parallelism=1 |
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.
@DieHard073055 without the max-parallelism=1
set, it will run concurrently with 4 images getting built at the same time, leading to out-of-memory (Code 137). We need to address this.
We could remove the Since the main/goal blocker isn't cross-compilation. |
Co-authored-by: Eshan Shafeeq <[email protected]> Signed-off-by: Fuxing Loh <[email protected]>
Signed-off-by: Fuxing Loh <[email protected]>
Docker image for defich/metachain is ready! Built with commit f1a9cfd
|
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.
Looks good to me.
Thanks for taking care of this. Its been blocking me.
What this PR does / why we need it:
As per the title. This PR adds multi-stage Docker build for
./meta-node
. All docker images now utilize Docker to build.Fixes #61