This repository has been archived by the owner on Nov 29, 2017. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 17
Integrate download into Dockerfile #8
Comments
LukeTillman
added a commit
that referenced
this issue
Jan 19, 2017
LukeTillman
added a commit
that referenced
this issue
Jan 19, 2017
LukeTillman
added a commit
that referenced
this issue
Jan 19, 2017
LukeTillman
added a commit
that referenced
this issue
Jan 19, 2017
LukeTillman
added a commit
that referenced
this issue
Jan 19, 2017
LukeTillman
added a commit
that referenced
this issue
Jan 19, 2017
LukeTillman
added a commit
that referenced
this issue
Jan 19, 2017
LukeTillman
added a commit
that referenced
this issue
Jan 19, 2017
LukeTillman
added a commit
that referenced
this issue
Jan 19, 2017
LukeTillman
added a commit
that referenced
this issue
Jan 19, 2017
LukeTillman
added a commit
that referenced
this issue
Jan 19, 2017
LukeTillman
added a commit
that referenced
this issue
Jan 19, 2017
- Instead of relying on trying to set environment variables, just output a URL to stdout
LukeTillman
added a commit
that referenced
this issue
Jan 19, 2017
LukeTillman
added a commit
that referenced
this issue
Jan 19, 2017
LukeTillman
added a commit
that referenced
this issue
Jan 19, 2017
After getting this working, it resulted in a Docker image that's 800+ MB smaller. The next release (likely |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Right now, downloading DSE is something that happens outside of the
Dockerfile
since downloading requires credentials and we don't want to bake creds into the final image (i.e. we don't want them available todocker history
). This sucks because we then have to use anADD
instruction in theDockerfile
to add the downloaded tarball from the build context, and then later have tochown
the unpacked tarball files resulting in an extra layer that effectively doubles the size of the overall image.In order to remove that extra layer, we want to be able to download, unpack, and chown in a single
RUN
instruction. And to do that, we need some way to download without baking credentials into the image. My (admittedly hacky) proposed solution is to:.netrc
credentials file we use to download via a local HTTP server during the docker build. (For Travis builds, this file is already encrypted and used when downloading before kicking off the actual build).curl
to download those credentials to a temp directory, then use those credentials to download DSE to that same temp directory.RUN
instruction where we're downloading, unpack, chown, and then delete the temp directory so that we don't end up with credentials or other downloaded artifacts in the finished image.The text was updated successfully, but these errors were encountered: