Skip to content

Commit 06c1ddf

Browse files
ci: Updates to justfile (#1643)
Updates/changes to justfile after creation of `module load just`
1 parent fb4e453 commit 06c1ddf

1 file changed

Lines changed: 11 additions & 2 deletions

File tree

‎justfile‎

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,16 @@
11
SESSION := "cm12345-1"
2-
RUNNER := "docker"
2+
RUNNER := `command -v docker || command -v podman`
33

4-
compose +ARGS="up -d":
4+
default: compose serve
5+
6+
init-example-services:
7+
#!/usr/bin/env bash
8+
# Clone the example-services submodule if needed but leave it alone otherwise
9+
if [[ $(git submodule status example-services) =~ ^- ]]; then
10+
git submodule update --init example-services
11+
fi
12+
13+
compose +ARGS="up -d --no-recreate": init-example-services
514
{{ RUNNER }} compose -f tests/system_tests/compose.yaml {{ARGS}}
615

716
serve *OPTS:

0 commit comments

Comments
 (0)