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

Switch to Ubuntu "slim" #3

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

Conversation

utdrmac
Copy link

@utdrmac utdrmac commented Dec 11, 2019

Ubuntu announced "slim" versions of Ubuntu based on 18.04. Per their announcement,
https://ubuntu.com/blog/minimal-ubuntu-released, if you specifically pull ubuntu:18.04, then you automatically get the slim image.

Several minor modifications to merge some build stages.

$ docker build -t checker -f Dockerfile-ubuntu .
...
$ docker images
REPOSITORY               TAG                 IMAGE ID            CREATED             SIZE
checker                  latest              04ffd2e4b87c        3 minutes ago       445MB

The tezos binaries themselves (tezos-*) sum to 399MB. Geez that's a lot of bloat.

@utdrmac
Copy link
Author

utdrmac commented Dec 11, 2019

Couple comments: 1) seems that ubuntu:latest is the same as ubuntu:18.04. I did not realize that.

$ docker images | grep ubuntu
ubuntu                   18.04               775349758637        5 weeks ago         64.2MB
ubuntu                   latest              775349758637        5 weeks ago         64.2MB
  1. If you add RUN strip tezos-* after the make build-deps/eval/make line, this will remove debugging symbols from all binaries and save about 100MB.
utdrmac/tezos             carthage_b1a7b92b   7a0d6a9c84ae        26 minutes ago      342MB

@utdrmac
Copy link
Author

utdrmac commented Dec 11, 2019

You can't use bubblewrap within docker containers to create new namespaces (unless you run docker with more privileges) so we set up opam without sandboxing. Because we don't use sandboxing, installing bubblewrap is pointless.

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.

1 participant