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

What would it take to add "apk" extraction to docker_build #30

Closed
mattmoor opened this issue May 18, 2017 · 5 comments
Closed

What would it take to add "apk" extraction to docker_build #30

mattmoor opened this issue May 18, 2017 · 5 comments

Comments

@mattmoor
Copy link
Contributor

In the pursuit of tiny images, udeb came up, but wasn't sufficient for the JRE.

We should consider whether simply using APK provides smaller footprints.

Here's where pkg_tar is extracting the deb's data: https://github.com/bazelbuild/bazel/blob/master/tools/build_defs/pkg/build_tar.py#L147

@mattmoor
Copy link
Contributor Author

@dlorenc FYI

@dlorenc
Copy link
Contributor

dlorenc commented May 18, 2017

For java specifically, here's another example of installing a JRE without a package manager, and stripping out lots of parts:
https://github.com/frol/docker-alpine-oraclejdk8/blob/master/Dockerfile

@dlorenc
Copy link
Contributor

dlorenc commented May 22, 2017

I don't think APKs and debs will mix and match very well due to the glibc/musl difference, but it might still be worth exploring.

@mattmoor
Copy link
Contributor Author

Yeah, I have started to introduce the nuance of "minimal" vs. "small" in my talking points.
Essentially, Alpine is smaller, but not minimal. What we're doing is minimal, but not at small.

Ultimately, if we have users with the requirement "small at all costs", who aren't concerned about compatibility with glibc, then this route might be an appealing alternative to glibc and debs, but it would require a completely new image stack.

I wonder if in the limit Bazel's cross compilation story will be what we want to key off of here.

@donmccasland
Copy link
Member

Closing old bugs

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

No branches or pull requests

3 participants