-
Notifications
You must be signed in to change notification settings - Fork 1.5k
images/tectonic-builder/Dockerfile: Drop stale installer 'rm -rf' #72
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
images/tectonic-builder/Dockerfile: Drop stale installer 'rm -rf' #72
Conversation
1a49fbb (Move structure-check tools from Jenkinsfile to builder image, 2017-09-12, coreos/tectonic-installer#1889), added a: RUN go get github.com/s-urbaniak/terraform-examples to this Dockerfile. That package moved into the installer repository, but all we need for generation/testing is the terraform-examples binary, so a68555d (tests/ci: fix dockerfile and remove some layers, 2017-12-19, coreos/tectonic-installer#2600) removed the associated source with: RUN go get github.com/coreos/tectonic-installer/contrib/terraform-examples && \ rm -rf /go/src/github.com/coreos/tectonic-installer/ (i.e. "download github.com/coreos/tectonic-installer/contrib/terraform-examples, build terraform-examples, install it into $GOBIN, and remove the source"). d61abd4 (*: cleanup bazel rules, 2018-03-26, coreos/tectonic-installer#3137) removed the Makefile which had been calling terraform-examples, and 7c73c34 (remove terraform-examples from the tectonic-builder image, 2018-05-18, coreos/tectonic-installer#3239) removed the terraform-examples install from this Dockerfile. With the terraform-examples install removed, Go will no longer be downloading that source, so there's no longer any reason to remove it. This commit removes the unnecessary removal, which should make Dockerfile builds a bit faster and save an empty layer in the resulting images. More importantly, it avoids distracting future devs reading the Dockerfile source ;).
09baaa5 to
315bd67
Compare
|
It looks like #69 is removing this directory completely, in which case there's no need to polish its contents ;). |
#69 was closed, and the tectonic-builder images seem to be used in a number of places (e.g. for Travis), so I'm going to re-open this PR. |
|
/lgtm |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: wking, yifan-gu The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Enable Deployment updates
manual upstream merge
1a49fbb (coreos/tectonic-installer#1889), added a:
RUN go get github.com/s-urbaniak/terraform-examplesto this
Dockerfile. That package moved into the installer repository, but all we need for generation/testing is theterraform-examplesbinary, so a68555d (coreos/tectonic-installer#2600) removed the associated source with:RUN go get github.com/coreos/tectonic-installer/contrib/terraform-examples && \ rm -rf /go/src/github.com/coreos/tectonic-installer/(i.e. "download github.com/coreos/tectonic-installer/contrib/terraform-examples, build
terraform-examples, install it into$GOBIN, and remove the source").d61abd4 (coreos/tectonic-installer#3137) removed the
Makefilewhich had been callingterraform-examples, and 7c73c34 (coreos/tectonic-installer#3239) removed theterraform-examplesinstall from thisDockerfile. With theterraform-examplesinstall removed, Go will no longer be downloading that source, so there's no longer any reason to remove it. This commit removes the unnecessary removal, which should makeDockerfilebuilds a bit faster and save an empty layer in the resulting images. More importantly, it avoids distracting future devs reading theDockerfilesource ;).