-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Build http proxy image in release workflow (#386)
* make release workflow also build http proxy for tf serving * cp build image script to http proxy
- Loading branch information
1 parent
fbc05b4
commit 33299ff
Showing
2 changed files
with
34 additions
and
3 deletions.
There are no files selected for viewing
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,22 @@ | ||
#!/bin/bash | ||
# | ||
# A simple script to build the Docker images. | ||
# This is intended to be invoked as a step in Argo to build the docker image. | ||
# | ||
# build_image.sh ${DOCKERFILE} ${IMAGE} | ||
set -ex | ||
|
||
DOCKERFILE=$1 | ||
CONTEXT_DIR=$(dirname "$DOCKERFILE") | ||
IMAGE=$2 | ||
|
||
# Wait for the Docker daemon to be available. | ||
until docker ps | ||
do sleep 3 | ||
done | ||
|
||
docker build --pull -t ${IMAGE} \ | ||
-f ${DOCKERFILE} ${CONTEXT_DIR} | ||
|
||
gcloud auth activate-service-account --key-file=${GOOGLE_APPLICATION_CREDENTIALS} | ||
gcloud docker -- push ${IMAGE} |
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