Repository navigation
Use Alpine Linux as the parent image for the registry. - #1626
Conversation
Current coverage is
|
|
Indeed certs might be an issue - a S3 + CF test would be nice. |
|
Are you planning to do the same for the official image here? https://github.com/docker/distribution-library-image/blob/master/Dockerfile I like this change, but I think we should only do it if the official image will also be based on alpine. |
|
|
||
| ENV CGO_ENABLED=0 | ||
|
|
||
| RUN make DOCKER_BUILDTAGS=netgo PREFIX=/go clean binaries |
There was a problem hiding this comment.
It might be good to run ldd and confirm that registry is a static binary. I've sometimes had trouble with the Go linker's behavior changing between versions, or being influenced by code changes. To avoid creating an extra layer, this could be added to this RUN command with &&.
There was a problem hiding this comment.
That's fine.
And to your above question, yes the official image will be based on Alpine (3.3)
|
What is the reason for ensuring the binary is static if we are also releasing on alpine? I don't think it will be an issue here but it does limit which packages can be imported by the registry in the future. |
|
Originally, to put the official image into a On Wed, Apr 13, 2016 at 10:09 AM, Derek McGowan [email protected]
|
|
@RichardScothern I can't call CGO a good reason, if we don't need it all the better. My point was more that whether it is or isn't static does not need to be enforced or checked. LGTM |
|
These are all good points, but I would argue that either we care about creating static binaries or not. If we don't care, we shouldn't be specifying things like |
| RUN apt-get update && \ | ||
| apt-get install -y apache2-utils && \ | ||
| rm -rf /var/lib/apt/lists/* | ||
| FROM golang:1.6-alpine |
There was a problem hiding this comment.
Let's make this golang:1.6.1-alpine.
There was a problem hiding this comment.
If go 1.6.2 is released, and we are using golang:1.6.1-alpine upgrading will be more painful. (a fact I'm discovering with the go 1.5.4 release)
|
Agreed. For simplicity sake (fewer flags, no ldd check) and because there is no compelling reason not to) let leave it as dynamically linked. |
Signed-off-by: Richard Scothern <[email protected]>
|
LGTM |
Signed-off-by: Richard Scothern [email protected]