Skip to content

Commit

Permalink
Use explicit versions when building docker images
Browse files Browse the repository at this point in the history
  • Loading branch information
orzechow committed Oct 29, 2024
1 parent e4e7c79 commit 3ec3abc
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 5 deletions.
1 change: 1 addition & 0 deletions .env
3 changes: 2 additions & 1 deletion demo/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
FROM ghcr.io/kit-mrt/arbitration_graphs:latest AS tutorial
ARG VERSION
FROM ghcr.io/kit-mrt/arbitration_graphs:$VERSION AS tutorial

USER root

Expand Down
10 changes: 8 additions & 2 deletions demo/docker-compose.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
services:
tutorial:
image: ghcr.io/kit-mrt/arbitration_graphs_pacman_tutorial:$VERSION
build:
context: .
args:
- VERSION=$VERSION
target: tutorial
image: arbitration_graphs_pacman_tutorial
env_file: .env
volumes:
- .:/home/blinky/demo
- $HOME/.Xauthority:/home/blinky/.Xauthority
Expand All @@ -12,10 +15,13 @@ services:
- DISPLAY=$DISPLAY

demo:
image: ghcr.io/kit-mrt/arbitration_graphs_pacman_demo:$VERSION
build:
context: .
args:
- VERSION=$VERSION
target: demo
image: arbitration_graphs_pacman_demo
env_file: .env
volumes:
- $HOME/.Xauthority:/home/blinky/.Xauthority
- /tmp/.X11-unix:/tmp/.X11-unix
Expand Down
5 changes: 3 additions & 2 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
services:
arbitration_graphs:
image: arbitration_graphs
build: .
image: ghcr.io/kit-mrt/arbitration_graphs:$VERSION
build: .
env_file: .env
1 change: 1 addition & 0 deletions version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
VERSION=v0.0.1

0 comments on commit 3ec3abc

Please sign in to comment.