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

feat(Makefile): build using dockefile and slim image size #215

Merged

Conversation

Joshua-Anderson
Copy link
Contributor

@Joshua-Anderson Joshua-Anderson commented Sep 1, 2016

Switch to building within the dockerfile as well.
This also excludes unneeded files from the container, so the COPY step at the end remains fast.
On my macbook a cached containerized make build takes the same amount of time as a go build on the host machine.

This also slims up test images, hopefully speeding up CI.

Another bonus: No more, "did you run make glideup". Dockers caching system will automatically download new dependencies when they change.

⚠️ the deis binary is now saved to _dist/deis so that you don't have to mount the entire working directory into the docker container.

@Joshua-Anderson Joshua-Anderson added this to the v2.5 milestone Sep 1, 2016
@Joshua-Anderson Joshua-Anderson self-assigned this Sep 1, 2016
@deis-bot
Copy link

deis-bot commented Sep 1, 2016

@arschles, @vdice and @helgi are potential reviewers of this pull request based on my analysis of git blame information. Thanks @Joshua-Anderson!

@vdice vdice added the LGTM1 label Sep 2, 2016
@kmala kmala added the LGTM2 label Sep 2, 2016
@Joshua-Anderson Joshua-Anderson merged commit eefb125 into deis:master Sep 6, 2016
@Joshua-Anderson Joshua-Anderson deleted the container-build-cleanups branch September 6, 2016 15:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants