Skip to content

Clean bootstrap artifacts #78

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

Merged
merged 1 commit into from
Jan 15, 2016
Merged

Conversation

yosifkit
Copy link
Member

Unsure if /usr/local/go/testshould be deleted, so left it for now.
Fixes #77.

@tianon
Copy link
Member

tianon commented Jan 15, 2016

Are these the only places we use BOOTSTRAP?

@yosifkit
Copy link
Member Author

$ git grep -i boot
1.5/alpine/Dockerfile:ENV GOLANG_BOOTSTRAP_VERSION 1.4.3
1.5/alpine/Dockerfile:ENV GOLANG_BOOTSTRAP_URL https://golang.org/dl/go$GOLANG_BOOTSTRAP_VERSION.src.tar.gz
1.5/alpine/Dockerfile:ENV GOLANG_BOOTSTRAP_SHA1 486db10dc571a55c8d795365070f66d343458c48
1.5/alpine/Dockerfile:  && mkdir -p /usr/local/bootstrap \
1.5/alpine/Dockerfile:  && wget -q "$GOLANG_BOOTSTRAP_URL" -O golang.tar.gz \
1.5/alpine/Dockerfile:  && echo "$GOLANG_BOOTSTRAP_SHA1  golang.tar.gz" | sha1sum -c - \
1.5/alpine/Dockerfile:  && tar -C /usr/local/bootstrap -xzf golang.tar.gz \
1.5/alpine/Dockerfile:  && cd /usr/local/bootstrap/go/src \
1.5/alpine/Dockerfile:  && export GOROOT_BOOTSTRAP=/usr/local/bootstrap/go \
1.5/alpine/Dockerfile:  && rm -rf /usr/local/bootstrap /usr/local/go/pkg/bootstrap \
1.6/alpine/Dockerfile:ENV GOLANG_BOOTSTRAP_VERSION 1.4.3
1.6/alpine/Dockerfile:ENV GOLANG_BOOTSTRAP_URL https://golang.org/dl/go$GOLANG_BOOTSTRAP_VERSION.src.tar.gz
1.6/alpine/Dockerfile:ENV GOLANG_BOOTSTRAP_SHA1 486db10dc571a55c8d795365070f66d343458c48
1.6/alpine/Dockerfile:  && mkdir -p /usr/local/bootstrap \
1.6/alpine/Dockerfile:  && wget -q "$GOLANG_BOOTSTRAP_URL" -O golang.tar.gz \
1.6/alpine/Dockerfile:  && echo "$GOLANG_BOOTSTRAP_SHA1  golang.tar.gz" | sha1sum -c - \
1.6/alpine/Dockerfile:  && tar -C /usr/local/bootstrap -xzf golang.tar.gz \
1.6/alpine/Dockerfile:  && cd /usr/local/bootstrap/go/src \
1.6/alpine/Dockerfile:  && export GOROOT_BOOTSTRAP=/usr/local/bootstrap/go \
1.6/alpine/Dockerfile:  && rm -rf /usr/local/bootstrap /usr/local/go/pkg/bootstrap \
update.sh:              # 1.4 is our "bootstrap" version for all future versions
update.sh:                              s/^(ENV GOLANG_BOOTSTRAP_VERSION) .*/\1 '"$fullVersion"'/;
update.sh:                              s/^(ENV GOLANG_BOOTSTRAP_SHA256) .*/\1 '"$srcSha256"'/;
update.sh:                              s/^(ENV GOLANG_BOOTSTRAP_SHA1) .*/\1 '"$srcSha1"'/;

@tianon
Copy link
Member

tianon commented Jan 15, 2016

Nice, and nice catch, @client9! 👍

LGTM

tianon added a commit that referenced this pull request Jan 15, 2016
@tianon tianon merged commit 0d4ac4a into docker-library:master Jan 15, 2016
@tianon tianon deleted the clean-boots branch January 15, 2016 22:52
@tianon
Copy link
Member

tianon commented Jan 15, 2016

https://travis-ci.org/docker-library/golang/builds/102705940 (they're green -- I don't feel like waiting for 1.4 which hasn't changed here 😄)

@client9
Copy link

client9 commented Jan 16, 2016

thanks @tianon @yosifkit for the project. Glad I could help, regards --n

yosifkit added a commit to infosiftr/stackbrew that referenced this pull request Jan 18, 2016
- `golang` make alpine variant a little smaller docker-library/golang#78
- `julia` bump `0.4.3`
- `mysql` docker-library/mysql#126
- `postgres` `9.4.5-2`
- `python` docker-library/python#82
- `rabbitmq` docker-library/rabbitmq#58
RichardScothern pushed a commit to RichardScothern/official-images that referenced this pull request Jun 14, 2016
- `golang` make alpine variant a little smaller docker-library/golang#78
- `julia` bump `0.4.3`
- `mysql` docker-library/mysql#126
- `postgres` `9.4.5-2`
- `python` docker-library/python#82
- `rabbitmq` docker-library/rabbitmq#58
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

Successfully merging this pull request may close these issues.

3 participants