Skip to content

Commit

Permalink
feat(devel): use COMPOSE_COMMAND env from env.* to execute the availa…
Browse files Browse the repository at this point in the history
…ble docker compose binary
  • Loading branch information
pmoscode committed Jul 7, 2023
1 parent 1893a64 commit 931e69f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions dev-assets/tasks/darwin/docker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,13 @@ tasks:
cmds:
- cat postgres/db.sh.tpl | envsubst > postgres/db.sh
- chmod +x postgres/db.sh
- "docker-compose up {{.OPTIONS}} {{.CONTAINERS}}"
- "$COMPOSE_COMMAND up {{.OPTIONS}} {{.CONTAINERS}}"

stop-middleware:
desc: Stop local Docker environment
dir: dev-assets/docker-environment
cmds:
- docker-compose down
- $COMPOSE_COMMAND down
- cmd: docker volume remove docker-environment_postgres_data
ignore_error: true
- rm -f postgres/db.sh
Expand Down Expand Up @@ -71,4 +71,4 @@ tasks:
desc: Cleans everything about docker...
cmds:
- cmd: docker rmi local-miw
ignore_error: true
ignore_error: true
6 changes: 3 additions & 3 deletions dev-assets/tasks/linux/docker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,13 @@ tasks:
cmds:
- cat postgres/db.sh.tpl | envsubst > postgres/db.sh
- chmod +x postgres/db.sh
- "docker-compose up {{.OPTIONS}} {{.CONTAINERS}}"
- "$COMPOSE_COMMAND up {{.OPTIONS}} {{.CONTAINERS}}"

stop-middleware:
desc: Stop local Docker environment
dir: dev-assets/docker-environment
cmds:
- docker-compose down
- $COMPOSE_COMMAND down
- cmd: docker volume remove docker-environment_postgres_data
ignore_error: true
- rm -f postgres/db.sh
Expand Down Expand Up @@ -71,4 +71,4 @@ tasks:
desc: Cleans everything about docker...
cmds:
- cmd: docker rmi local-miw
ignore_error: true
ignore_error: true

0 comments on commit 931e69f

Please sign in to comment.