-
Notifications
You must be signed in to change notification settings - Fork 280
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
Update docker build script to optionally publish images to DockerHub #283
Merged
Corey-Zumar
merged 8 commits into
ucbrise:develop
from
dcrankshaw:docker_hub_push_script
Sep 3, 2017
Merged
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
2ee2f05
Initial rewrite of build script. Untested
dcrankshaw 8189b9b
the new build and publish script works
dcrankshaw bd80af2
Build script seems to be working
dcrankshaw 29b030a
uncommented images
dcrankshaw 5ac0c24
Fixed run_ci.sh
dcrankshaw dded284
revert version and add push to k8s testing cluster container registry
dcrankshaw aee8060
addressed review comments
dcrankshaw e110b93
Merge branch 'develop' into docker_hub_push_script
Corey-Zumar File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 2 additions & 0 deletions
2
ClipperLibBaseDockerfile → dockerfiles/ClipperLibBaseDockerfile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
ARG CODE_VERSION=develop | ||
ARG CODE_VERSION | ||
FROM clipper/lib_base:${CODE_VERSION} | ||
|
||
# install docker | ||
|
2 changes: 1 addition & 1 deletion
2
ManagementFrontendDockerfile → dockerfiles/ManagementFrontendDockerfile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
ARG CODE_VERSION=develop | ||
ARG CODE_VERSION | ||
FROM clipper/lib_base:${CODE_VERSION} | ||
|
||
COPY ./ /clipper | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
PyClosureContainerDockerfile → dockerfiles/PyClosureContainerDockerfile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
PySparkContainerDockerfile → dockerfiles/PySparkContainerDockerfile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
ARG CODE_VERSION=develop | ||
ARG CODE_VERSION | ||
FROM clipper/lib_base:${CODE_VERSION} | ||
|
||
# Build Clipper | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
Dockerfiles for the Clipper project. | ||
|
||
Note that while these Dockerfiles are in the `dockerfiles` subdirectory, they must be built with the root | ||
of the Clipper repo as the build context. For example: | ||
|
||
*From within this directory* | ||
``` | ||
docker build -t <tag> -f QueryFrontendDockerfile ../ | ||
``` | ||
|
||
*From the Clipper root directory* | ||
``` | ||
docker build -t <tag> -f dockerfiles/QueryFrontendDockerfile ./ | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
# This ARG isn't used but prevents warnings in the build script | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Should we also add this note to There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Done. |
||
ARG CODE_VERSION | ||
FROM openjdk:8-jdk | ||
|
||
# First set up maven | ||
|
@@ -24,7 +26,7 @@ RUN mkdir -p /usr/share/maven /usr/share/maven/ref \ | |
ENV MAVEN_HOME /usr/share/maven | ||
ENV MAVEN_CONFIG /root/.m2 | ||
|
||
COPY . /root/container | ||
COPY ./containers/jvm/ /root/container | ||
|
||
WORKDIR /root/container | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
TensorFlowCifarDockerfile → dockerfiles/TensorFlowCifarDockerfile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm guessing that we're removing these default arguments because the images build script, in conjunction with
VERSION.txt
are intended to be the point of control for image versioning?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Exactly. And removing the default makes sure that the build fails if we forget a build arg instead of silently building with "develop"