Commit 7b66739 1 parent 9a10a58 commit 7b66739 Copy full SHA for 7b66739
File tree 3 files changed +13
-3
lines changed
3 files changed +13
-3
lines changed Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ OSRD_VALKEY="osrd-valkey"
23
23
OSRD_VALKEY_VOLUME=" osrd_valkey_data"
24
24
OSRD_POSTGRES_PORT=5432
25
25
OSRD_VALKEY_PORT=6379
26
- if [ " $PR_TEST " -eq 1 ]; then
26
+ if [ " $PR_TEST " = 1 ]; then
27
27
OSRD_POSTGRES=" osrd-postgres-pr-tests"
28
28
OSRD_EDITOAST=" osrd-editoast-pr-tests"
29
29
OSRD_VALKEY=" osrd-valkey-pr-tests"
Original file line number Diff line number Diff line change 41
41
# These variables are necessary to load the infra on the correct instance (the pr-infra or the dev one)
42
42
OSRD_POSTGRES=" osrd-postgres"
43
43
OSRD_POSTGRES_PORT=5432
44
- if [ " $PR_TEST " -eq 1 ]; then
44
+ if [ " $PR_TEST " = 1 ]; then
45
45
OSRD_POSTGRES=" osrd-postgres-pr-tests"
46
46
OSRD_POSTGRES_PORT=5433
47
47
fi
Original file line number Diff line number Diff line change @@ -74,10 +74,20 @@ elif [ "$1" = "down" ]; then
74
74
75
75
else
76
76
77
- # Shutdown and clean the docker instance
77
+ # Shutdown and clean the docker instance (remove "osrd" images too)
78
+ osrd_images=$( docker compose \
79
+ -p " osrd-pr-tests" \
80
+ -f " docker/docker-compose.pr-tests.yml" \
81
+ images --format json \
82
+ core editoast osrdyne gateway front \
83
+ | jq --raw-output ' .[].ID' )
84
+
78
85
docker compose \
79
86
-p " osrd-pr-tests" \
80
87
-f " docker/docker-compose.pr-tests.yml" \
81
88
down -v
82
89
90
+ # shellcheck disable=SC2086
91
+ docker rmi ${osrd_images}
92
+
83
93
fi
You can’t perform that action at this time.
0 commit comments