Skip to content

Commit

Permalink
chore: BI-0 allow docker compose v2 in dev tasks
Browse files Browse the repository at this point in the history
  • Loading branch information
KonstantAnxiety authored Dec 28, 2024
1 parent c39ccae commit f5e4753
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tools/taskfiles/taskfile_dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ version: '3'

vars:
VM_HOST: dl-vm
_USE_DOCKER_COMPOSE_V1:
sh: if command -v docker-compose &>/dev/null; then echo "1"; else echo ""; fi
DOCKER_COMPOSE_CMD: '{{if ._USE_DOCKER_COMPOSE_V1}}docker-compose{{else}}docker compose{{end}}'

tasks:
help:
Expand Down Expand Up @@ -186,7 +189,7 @@ tasks:
cmds:
- |
{{ if .DOCKER_HOST }}DOCKER_HOST={{.DOCKER_HOST}}{{ end }} \
docker-compose \
{{.DOCKER_COMPOSE_CMD}} \
-f {{.DOCKER_COMPOSE_FILE}} \
{{.CLI_ARGS}}
vars:
Expand Down

0 comments on commit f5e4753

Please sign in to comment.