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

images/tectonic-builder/Dockerfile: Drop stale installer 'rm -rf' #72

Conversation

wking
Copy link
Member

@wking wking commented Jul 25, 2018

1a49fbb (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 (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 Makefile which had been calling terraform-examples, and 7c73c34 (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 ;).

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 ;).
@openshift-ci-robot openshift-ci-robot added size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. labels Jul 25, 2018
@wking wking force-pushed the tectonic-builder-drop-installer-remove branch from 09baaa5 to 315bd67 Compare July 25, 2018 17:41
@wking
Copy link
Member Author

wking commented Jul 25, 2018

It looks like #69 is removing this directory completely, in which case there's no need to polish its contents ;).

@wking wking closed this Jul 25, 2018
@wking
Copy link
Member Author

wking commented Jul 27, 2018

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.

@wking wking reopened this Jul 27, 2018
@openshift-ci-robot openshift-ci-robot removed the needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. label Jul 27, 2018
@yifan-gu
Copy link
Contributor

yifan-gu commented Aug 1, 2018

/lgtm

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Aug 1, 2018
@openshift-ci-robot
Copy link
Contributor

[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

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-ci-robot openshift-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Aug 1, 2018
@openshift-merge-robot openshift-merge-robot merged commit d5d728e into openshift:master Aug 1, 2018
@wking wking deleted the tectonic-builder-drop-installer-remove branch August 1, 2018 02:08
stbenjam pushed a commit to stbenjam/installer that referenced this pull request Feb 10, 2021
miyamotoh pushed a commit to miyamotoh/installer that referenced this pull request Nov 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants