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

bare bones docker image #234

Open
nhooyr opened this Issue Mar 13, 2019 · 10 comments

Comments

Projects
None yet
3 participants
@nhooyr
Copy link
Collaborator

nhooyr commented Mar 13, 2019

@nhooyr nhooyr added the build label Mar 13, 2019

@nhooyr

This comment has been minimized.

Copy link
Collaborator Author

nhooyr commented Mar 13, 2019

Idk if we should do this though, disk space is super cheap.

@SuperSandro2000

This comment has been minimized.

Copy link
Contributor

SuperSandro2000 commented Mar 13, 2019

Right now the image is 305 MB according to Portainer. I think that is already quite some size and I hope that is not increasing to much in the future.

@nhooyr

This comment has been minimized.

Copy link
Collaborator Author

nhooyr commented Mar 13, 2019

How about we just add an alpine variant? I think that'd be reasonable.

@sr229

This comment has been minimized.

Copy link

sr229 commented Mar 13, 2019

We'll need to compile releases for Alpine as well or include libc6-compat if that's the case

@SuperSandro2000

This comment has been minimized.

Copy link
Contributor

SuperSandro2000 commented Mar 13, 2019

I am currently building an Alpine image. It just needs some testing if it actually works.

@sr229

This comment has been minimized.

Copy link

sr229 commented Mar 13, 2019

@nhooyr we have two ways to make our images smaller:

  • use debian-slim/buildpack-deps images
  • use Alpine

My image used to be sid-slim but people wanted a Ubuntu image. It's quite small.

@SuperSandro2000

This comment has been minimized.

Copy link
Contributor

SuperSandro2000 commented Mar 13, 2019

Just FYI theia is 264 MB. I think the size is reasonable but it shouldn't increase to much. I still would love to try squeezing every MB out of it.

@sr229

This comment has been minimized.

Copy link

sr229 commented Mar 15, 2019

@nhooyr @SuperSandro2000 We need to keep in mind though, Alpine uses musl libc so package availability is not guranteed.

@SuperSandro2000

This comment has been minimized.

Copy link
Contributor

SuperSandro2000 commented Mar 15, 2019

@sr229 In the almost 2 years now I use docker images I found one package that wasn't available for alpine. I don't think that will be an issue if we use common packages.

@SuperSandro2000

This comment has been minimized.

Copy link
Contributor

SuperSandro2000 commented Mar 17, 2019

I did some more testing today and the resulting binary is linked against libc. I am currently trying some comp packages but as far as I can assess it as long as we use nexe we can't really build a alpine image in a reasonable amount of time.

Edit: It goes a bit further with that https://github.com/sgerrand/alpine-pkg-glibc but does not fully work :(

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.