Skip to content

Commit 81a9ab9

Browse files
committed
Rename docker images to distinguish them better
It's hard to understand what's happening when multiple things are all named "qsim".
1 parent e8c0ed7 commit 81a9ab9

4 files changed

Lines changed: 15 additions & 12 deletions

File tree

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Base OS
2-
FROM ubuntu:24.04
2+
FROM ubuntu:24.04 AS qsim-base
33

44
# Allow passing this variable in from the outside.
55
ARG CUDA_PATH

docker-compose.yml

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,26 @@
11
services:
2-
qsim:
3-
image: qsim
4-
container_name: qsim
2+
qsim-base-image:
3+
image: qsim-base
4+
platform: linux/amd64
55
build:
66
context: ./
77
dockerfile: Dockerfile
8-
qsim-cxx-tests:
8+
target: qsim-base
9+
10+
qsim-cxx-tests-image:
911
image: qsim-cxx-tests
10-
container_name: qsim-cxx-tests
1112
build:
1213
context: ./
1314
dockerfile: tests/Dockerfile
15+
target: qsim-cxx-tests
1416
depends_on:
15-
- qsim
16-
qsim-py-tests:
17+
- qsim-base-image
18+
19+
qsim-py-tests-image:
1720
image: qsim-py-tests
18-
container_name: qsim-py-tests
1921
build:
2022
context: ./
2123
dockerfile: pybind_interface/Dockerfile
24+
target: qsim-py-tests
2225
depends_on:
23-
- qsim
26+
- qsim-base-image

pybind_interface/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Base OS
2-
FROM qsim
2+
FROM qsim-base AS qsim-py-tests
33

44
# Copy relevant files
55
COPY ./pybind_interface/ /qsim/pybind_interface/

tests/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Base OS
2-
FROM qsim
2+
FROM qsim-base AS qsim-cxx-tests
33

44
# Copy relevant files
55
COPY ./tests/ /qsim/tests/

0 commit comments

Comments
 (0)