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

Feature/tools cleanup #2

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

hillct
Copy link

@hillct hillct commented Dec 25, 2016

This patch updates the docker file to remove the build tools after the build is complete, reducing the image size by over 90% also adding automated build hooks with label metadata additions. Also updated to Alpine 3.4 and Fuse-s3fs 1.80. The build hooks are intended to interoperate with the Docker Hub Automated build system. See https://hub.docker.com/r/hillct/docker-alpine-s3fs/tags/

hillct and others added 2 commits December 25, 2016 00:02
…us size, addition of autobuild hooks and microbadger labels
It's worth noting that your repo should be converted to an automated build similar to https://hub.docker.com/r/hillct/docker-alpine-s3fs/ with branches for each of latest/edge, 3.3 and ruby
@rjocoleman
Copy link
Owner

thanks @hillct, there's a lot of changes in this PR. I'll need some time to check them all

@@ -0,0 +1,7 @@
#!/bin/bash
FOO=${IMAGE_NAME:=`whoami`/docker-alpine-s3fs:local}
BAR=${SOURCE_BRANCH:=`git rev-parse --abbrev-ref HEAD`}
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@hillct what are FOO and BAR doing here? they're set and not used?

Copy link
Author

@hillct hillct Feb 1, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You're correct that FOO and BAR are not used. It was done that way for syntactic cleanliness. The lifespan of those variables are minimal and not of any consequence to the build process but it did provide clarity in the Assembly of the image name and Source Branch variables. The same result could be achieved using multi line if conditionals but this seemed clearer, overall.

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.

2 participants