Skip to content

Commit

Permalink
remove only the rocm container
Browse files Browse the repository at this point in the history
  • Loading branch information
simon-mo committed Feb 20, 2024
1 parent 51d2d75 commit 5a70ad7
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions .github/workflows/rocm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,14 @@ jobs:
docker build -t rocm -f Dockerfile.rocm .
- name: Run Sanity Test
run: |
# detele any existing container
docker rm -f $(docker ps -a -q)
# run the container
docker run -d --p 8000:8000 rocm
# wait for the server to start
remove_docker_container() {
docker rm -f rocm || true
}
trap remove_docker_container EXIT
remove_docker_container
docker run -d --p 8000:8000 -n rocm rocm
while [ "$(curl -s -o /dev/null -w ''%{http_code}'' localhost:8000)" != "200" ]; do sleep 1; done
# run the sanity test
python examples/openai_completion_client.py
# remove the container
docker rm -f $(docker ps -a -q)

0 comments on commit 5a70ad7

Please sign in to comment.