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

Change container distro to Debian and Ubuntu to avoid runtime errors. #481

Merged
merged 1 commit into from
Nov 7, 2023

Conversation

vitropy
Copy link
Contributor

@vitropy vitropy commented Nov 7, 2023

This commit switches the container's distribution to Debian for building and to Ubuntu for final distribution, because this more closely matches upstream Substrate's build pipeline and seems to more reliably avoid runtime issues caused by missing shared libraries and the like. We also no longer compile statically, for now, as it's not needed in this setup, and we try to maintain a smaller container image size by installing only required packages and components of the Rust toolchain.

In my testing, this creates image sizes of just about ~200MB, which is not terrible but not ideal (previous image sizes were down to ~60MB). Nevertheless, as this also unblocks entropy-js, I think it's worth it.

This commit switches the container's distribution to Debian for building
and to Ubuntu for final distribution, because this more closely matches
upstream Substrate's build pipeline and seems to more reliably avoid
runtime issues caused by missing shared libraries and the like. We also
no longer compile statically, for now, as it's not needed in this setup,
and we try to maintain a smaller container image size by installing only
required packages and components of the Rust toolchain.

In my testing, this creates image sizes of just about ~200MB, which is
not terrible but not ideal (previous image sizes were down to ~60MB).
Nevertheless, as this also unblocks `entropy-js`, I think it's worth it.
@vitropy vitropy requested review from ameba23 and JesseAbram November 7, 2023 17:09
Copy link

vercel bot commented Nov 7, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
entropy-core ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 7, 2023 8:51pm

@vitropy
Copy link
Contributor Author

vitropy commented Nov 7, 2023

Looks like Vercel is failing because of an expired credential, FYI. Will fix that next. Fixed.

Copy link
Collaborator

@HCastano HCastano left a comment

Choose a reason for hiding this comment

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

Images build fine on my end, thanks!

@HCastano HCastano merged commit 71fee2c into master Nov 7, 2023
5 checks passed
@HCastano HCastano deleted the vi/ubuntu-containers branch November 7, 2023 22:41
ameba23 added a commit that referenced this pull request Nov 9, 2023
* master:
  Update README to include new Docker Compose instructions. (#482)
  Change container distro to Debian and Ubuntu to avoid runtime errors. (#481)
  Remove old Docker related script (#478)
  Release `v0.0.8` (#471)
  Add `prune_registration` extrinsic (#472)
  standard formatting + lil fixes (#477)
  Revert nightly changes to format script (#470)
  Add way for validators to resolve diff verifying keys (#460)
  Fix socket addres type (#469)
  Reduce `authoring_version` and add `RuntimeVersion` comments (#467)
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