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

Add "latest" tag to BentoML user-facing docker image #1046

Merged
merged 2 commits into from Sep 2, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
5 changes: 5 additions & 0 deletions docker/model-server/release.sh
Expand Up @@ -15,8 +15,11 @@ echo "Releasing debian based docker base image.."
docker build --pull \
--build-arg BENTOML_VERSION="$BENTOML_VERSION" \
-t bentoml/model-server:"$BENTOML_VERSION" \
-t bentoml/model-server:latest \
.
docker push bentoml/model-server:"$BENTOML_VERSION"
docker push bentoml/model-server:latest


PYTHON_MAJOR_VERSIONS=(3.6 3.7 3.8)
echo "Building slim docker base images for ${PYTHON_MAJOR_VERSIONS[*]}"
Expand All @@ -27,11 +30,13 @@ do
--build-arg BENTOML_VERSION=$BENTOML_VERSION \
--build-arg PYTHON_VERSION=$version \
-t bentoml/model-server:$BENTOML_VERSION-slim-py${version//.} \
-t bentoml/model-server:latest-slim-py${version//.} \
-f Dockerfile-slim \
--network=host \
.

docker push bentoml/model-server:$BENTOML_VERSION-slim-py${version//.}
docker push bentoml/model-server:latest-slim-py${version//.}

done
echo "Done"
2 changes: 2 additions & 0 deletions docker/yatai-service/release.sh
Expand Up @@ -15,6 +15,8 @@ cd "$GIT_ROOT"/docker/yatai-service
docker build --pull \
--build-arg BENTOML_VERSION="$BENTOML_VERSION" \
-t bentoml/yatai-service:"$BENTOML_VERSION" \
-t bentoml/yatai-service:latest \
.

docker push bentoml/yatai-service:"$BENTOML_VERSION"
docker push bentoml/yatai-service:latest