Skip to content

Commit fd59728

Browse files
RJKeevilriccardopinosio
authored andcommitted
Specify platform in compose files
1 parent 7ea0ce6 commit fd59728

2 files changed

Lines changed: 9 additions & 7 deletions

File tree

compose-dev.yaml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,18 @@
11
services:
22
hugot:
33
image: hugot:dev
4+
platform: linux/amd64
45
build:
56
context: .
67
dockerfile: ./Dockerfile
78
target: hugot-build
89
volumes:
910
- $src_dir:/home/testuser/repositories/hugot
1011
entrypoint: ["tail", "-f", "/dev/null"]
11-
deploy:
12-
resources:
13-
reservations:
14-
devices:
15-
- driver: nvidia
16-
count: 1
17-
capabilities: [gpu]
12+
# deploy:
13+
# resources:
14+
# reservations:
15+
# devices:
16+
# - driver: nvidia
17+
# count: 1
18+
# capabilities: [gpu]

compose-test.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
services:
22
hugot:
33
image: hugot:$commit_hash
4+
platform: linux/amd64
45
container_name: hugot
56
build:
67
context: .

0 commit comments

Comments
 (0)