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

scratch docker amd64 #49

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft

scratch docker amd64 #49

wants to merge 1 commit into from

Conversation

protolambda
Copy link
Collaborator

@protolambda protolambda commented Aug 7, 2020

This is a draft to make the docker image smaller and more minimal by:

  • using an alpine linux for the build stage
  • producing a static binary
  • using scratch for the running image stage

The result should be about a 20MB docker image:
scratch

Previously this was 100MB:
prev

My concern now is testing the new image, and making sure it still works on ARM, Windows, Mac. Any users that like to beta test?

Beta image, if you don't want to build it yourself, here: protolambda/eth2stats-client:scratch (docker hub)

@protolambda protolambda added enhancement New feature or request help wanted Extra attention is needed labels Aug 7, 2020
@protolambda protolambda requested a review from tzapu August 7, 2020 18:31
@tzapu
Copy link
Contributor

tzapu commented Aug 7, 2020

i tested this on a rpi4/ubuntu 64bits and unfortunately it looks like it's not working

Digest: sha256:05206b88a51bbb40abba04a9d5a9d0fe4a6dd8f7a622aea1f1f713701be26174
Status: Downloaded newer image for protolambda/eth2stats-client:scratch
Creating medalla-eth2stats ... done
Attaching to medalla-eth2stats
medalla-eth2stats    | standard_init_linux.go:211: exec user process caused "exec format error"

@tzapu
Copy link
Contributor

tzapu commented Aug 7, 2020

the magic for the docker builds is in the hooks for docker hub here https://github.com/Alethio/eth2stats-client/pull/36/commits/149e9c35b8468f1ba7f06ef33fd213c368ef8410

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants