Skip to content

Commit

Permalink
just: Read off correct docker compose binary variant
Browse files Browse the repository at this point in the history
  • Loading branch information
lukasjuhrich committed Jan 25, 2024
1 parent 866988d commit f917fb4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion justfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
# To install `just`, see
# https://github.com/casey/just#packages

drc := "docker compose"
# execute `just --evaluate <var>` to check the values of the variables set below
drc := if `docker compose 2>&1 >/dev/null; echo $?` == "0" { "docker compose" } else { "docker-compose" }
export COMPOSE_FILE := "docker-compose.dev.yml:docker-compose.test.yml"
export PGPASSFILE := ".pycroft.pgpass"
test-psql := drc + " exec --user=postgres test-db psql pycroft"
Expand Down

0 comments on commit f917fb4

Please sign in to comment.