Skip to content
This repository has been archived by the owner on Aug 24, 2023. It is now read-only.

chore(dockerfile): multi-stage meta-node docker build #163

Merged
merged 10 commits into from
Nov 23, 2022

Conversation

fuxingloh
Copy link
Contributor

What this PR does / why we need it:

Experimental

As per the title. This PR adds multi-stage Docker build for ./meta-node. All docker images now utilize Docker to build.

Fixes #61

@netlify
Copy link

netlify bot commented Nov 23, 2022

Deploy Preview for metachain ready!

Name Link
🔨 Latest commit 705e4c9
🔍 Latest deploy log https://app.netlify.com/sites/metachain/deploys/637ddbf57348b600097998cd
😎 Deploy Preview https://deploy-preview-163--metachain.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@codecov
Copy link

codecov bot commented Nov 23, 2022

Codecov Report

Base: 6.37% // Head: 6.37% // No change to project coverage 👍

Coverage data is based on head (705e4c9) compared to base (a12ecd6).
Patch has no changes to coverable lines.

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.
📢 Do you have feedback about the report comment? Let us know in this issue.

@@ -1,16 +1,33 @@
FROM ubuntu:22.04
FROM ubuntu:22.04 AS builder
Copy link
Contributor

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.

Copy link
Contributor Author

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

Copy link
Contributor Author

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.

Copy link
Contributor

Choose a reason for hiding this comment

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

Dockerfile Outdated Show resolved Hide resolved
DieHard073055
DieHard073055 previously approved these changes Nov 23, 2022
Copy link
Contributor

@DieHard073055 DieHard073055 left a comment

Choose a reason for hiding this comment

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

Looks good! Thanks

Comment on lines 30 to 31
with:
buildkitd-flags: --oci-worker-max-parallelism=1
Copy link
Contributor Author

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.

Dockerfile Show resolved Hide resolved
@fuxingloh
Copy link
Contributor Author

fuxingloh commented Nov 23, 2022

We could remove the platforms: first and create another separate issue to add back multi-platform builds.

Since the main/goal blocker isn't cross-compilation.

Dockerfile Outdated Show resolved Hide resolved
Co-authored-by: Eshan Shafeeq <[email protected]>
Signed-off-by: Fuxing Loh <[email protected]>
Dockerfile Outdated Show resolved Hide resolved
Signed-off-by: Fuxing Loh <[email protected]>
@fuxingloh fuxingloh temporarily deployed to Release Docker November 23, 2022 08:38 Inactive
@github-actions
Copy link

Docker image for defich/metachain is ready!

Built with commit f1a9cfd

  • docker pull ghcr.io/defich/metachain:f1a9cfdc363bcc4c6c173eb61ca7ec0d3cee6dd8
  • docker pull ghcr.io/defich/metachain:pr-163

@fuxingloh fuxingloh marked this pull request as ready for review November 23, 2022 09:25
DieHard073055
DieHard073055 approved these changes Nov 23, 2022
Copy link
Contributor

@DieHard073055 DieHard073055 left a 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.

@fuxingloh fuxingloh merged commit 419304b into main Nov 23, 2022
@fuxingloh fuxingloh deleted the fuxingloh/docker-builds branch November 23, 2022 10:38
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area/workflow kind/chore Non feature change
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Github workflows to utilize building on docker engine
4 participants