Skip to content

Commit

Permalink
Updating docker cuda and github branch (#3233)
Browse files Browse the repository at this point in the history
* cuda update and branch fix

* adding print

* testing cuda

* testing branch

---------

Co-authored-by: Ankith Gunapal <[email protected]>
  • Loading branch information
udaij12 and agunapal authored Jul 9, 2024
1 parent a1c8eb2 commit 1125bb1
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
12 changes: 11 additions & 1 deletion .github/workflows/docker-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,22 @@ jobs:
working-directory: docker
run: ./test_build_image_tagging.sh ${{ matrix.python-version }}

- name: Determine the branch name
id: branch-name
run: |
if [[ "${GITHUB_REF}" == refs/heads/* ]]; then
GITHUB_BRANCH=${GITHUB_REF#refs/heads/}
elif [[ "${GITHUB_REF}" == refs/pull/*/merge ]]; then
GITHUB_BRANCH=${GITHUB_HEAD_REF}
fi
echo "GITHUB_BRANCH=${GITHUB_BRANCH}" >> $GITHUB_OUTPUT
- name: Build Image for container test
id: image_build
working-directory: docker
run: |
IMAGE_TAG=test-image-${{ matrix.python-version }}
./build_image.sh -py "${{ matrix.python-version }}" -t "${IMAGE_TAG}" -b ${GITHUB_HEAD_REF} -s
./build_image.sh -py "${{ matrix.python-version }}" -t "${IMAGE_TAG}" -b ${{ steps.branch-name.outputs.GITHUB_BRANCH }} -s
echo "IMAGE_TAG=${IMAGE_TAG}" >> $GITHUB_OUTPUT
- name: Container Healthcheck
Expand Down
4 changes: 2 additions & 2 deletions docker/build_image.sh
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@ do
-g|--gpu)
MACHINE=gpu
DOCKER_TAG="pytorch/torchserve:latest-gpu"
BASE_IMAGE="nvidia/cuda:11.8.0-base-ubuntu20.04"
CUDA_VERSION="cu117"
BASE_IMAGE="nvidia/cuda:12.1.1-base-ubuntu20.04"
CUDA_VERSION="cu121"
shift
;;
-bi|--baseimage)
Expand Down

0 comments on commit 1125bb1

Please sign in to comment.