Skip to content

Commit b499b84

Browse files
committed
Docker: Set ACH_TUTORIAL in the Docker Compose files, fixing broken Brev startup.
1 parent 0f63210 commit b499b84

File tree

6 files changed

+8
-11
lines changed

6 files changed

+8
-11
lines changed

brev/dev-start.bash

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@ docker volume create --driver local \
5555
"${ACH_TUTORIAL}_accelerated-computing-hub"
5656

5757
echo "Starting tutorial: ${ACH_TUTORIAL}"
58-
export ACH_TUTORIAL
5958
cd ${MOUNT}
6059
docker compose -f ${DOCKER_COMPOSE} up -d
6160

brev/test-docker-compose.bash

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,8 +101,6 @@ if docker volume inspect "${VOLUME_NAME}" &>/dev/null; then
101101
echo ""
102102
fi
103103

104-
# Export environment variables for the container
105-
export ACH_TUTORIAL
106104
export ACH_RUN_TESTS=1
107105

108106
# Start containers

tutorials/accelerated-python/brev/docker-compose.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: accelerated-python
1+
name: &tutorial-name accelerated-python
22

33
x-config:
44
dockerfile: &dockerfile tutorials/accelerated-python/brev/dockerfile
@@ -24,8 +24,8 @@ x-config:
2424
- accelerated-computing-hub:/accelerated-computing-hub
2525
environment:
2626
- BREV_ENV_ID
27-
- ACH_TUTORIAL
2827
- ACH_RUN_TESTS
28+
ACH_TUTORIAL: *tutorial-name
2929
user: root
3030
working_dir: *working-dir
3131
persistent-service: &persistent-service

tutorials/cuda-cpp/brev/docker-compose.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: cuda-cpp
1+
name: &tutorial-name cuda-cpp
22

33
x-config:
44
dockerfile: &dockerfile tutorials/cuda-cpp/brev/dockerfile
@@ -23,8 +23,8 @@ x-config:
2323
- accelerated-computing-hub:/accelerated-computing-hub
2424
environment:
2525
- BREV_ENV_ID
26-
- ACH_TUTORIAL
2726
- ACH_RUN_TESTS
27+
ACH_TUTORIAL: *tutorial-name
2828
user: root
2929
working_dir: *working-dir
3030
persistent-service: &persistent-service

tutorials/nvmath-python/brev/docker-compose.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: nvmath-python
1+
name: &tutorial-name nvmath-python
22

33
x-config:
44
dockerfile: &dockerfile tutorials/nvmath-python/brev/dockerfile
@@ -24,8 +24,8 @@ x-config:
2424
- accelerated-computing-hub:/accelerated-computing-hub
2525
environment:
2626
- BREV_ENV_ID
27-
- ACH_TUTORIAL
2827
- ACH_RUN_TESTS
28+
ACH_TUTORIAL: *tutorial-name
2929
user: root
3030
working_dir: *working-dir
3131
persistent-service: &persistent-service

tutorials/stdpar/brev/docker-compose.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: stdpar
1+
name: &tutorial-name stdpar
22

33
x-config:
44
dockerfile: &dockerfile tutorials/stdpar/brev/dockerfile
@@ -23,8 +23,8 @@ x-config:
2323
- accelerated-computing-hub:/accelerated-computing-hub
2424
environment:
2525
- BREV_ENV_ID
26-
- ACH_TUTORIAL
2726
- ACH_RUN_TESTS
27+
ACH_TUTORIAL: *tutorial-name
2828
user: root
2929
working_dir: *working-dir
3030
persistent-service: &persistent-service

0 commit comments

Comments
 (0)