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

Make torchserve-kfs docker image multiplatform #3162

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

Conversation

DanielTemesgen
Copy link

Description

This PR does the following:

  • Update build_image.sh to build image using buildx and use both arm and amd platforms, this command also pushes the image, it can not be loaded into the local registry due to limitations in buildx
  • Update build_upload_release.py and docker_nightly.py so docker images do not need to be pushed separately

Please read our CONTRIBUTING.md prior to creating your first pull request.

Please include a summary of the feature or issue being fixed. Please also include relevant motivation and context. List any dependencies that are required for this change.

Fixes #3161

Type of change

Please delete options that are not relevant.

  • New feature (non-breaking change which adds functionality)

Feature/Issue validation/testing

Built image locally, pushed here.

Checklist:

  • Did you have fun?
  • Have you added tests that prove your fix is effective or that this feature works?
  • Has code been commented, particularly in hard-to-understand areas?
  • Have you made corresponding changes to the documentation?

…d amd platforms, this command also pushes the image, it can not be loaded into the local registry due to limitations in buildx

Also update build_upload_release.py and docker_nightly.py so docker images do not need to be pushed separately
@@ -57,4 +57,5 @@ fi
cp ../../frontend/server/src/main/resources/proto/*.proto .
cp -r ../../third_party .

DOCKER_BUILDKIT=1 docker build --file "$DOCKER_FILE" --build-arg BASE_IMAGE=$BASE_IMAGE -t "$DOCKER_TAG" .
docker buildx create --name mybuilder --use --bootstrap
docker buildx build --file "$DOCKER_FILE" --build-arg BASE_IMAGE=$BASE_IMAGE --platform linux/amd64,linux/arm64 --push -t "$DOCKER_TAG" .
Copy link
Author

Choose a reason for hiding this comment

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

This command builds and pushes the docker image, so the steps in both python files which push the image have been removed.

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.

Make torchserve-kfs docker image multiplatform
1 participant