Skip to content

Commit

Permalink
feat(devel): rename tasks and point to new dev-env
Browse files Browse the repository at this point in the history
  • Loading branch information
pmoscode committed Jun 30, 2023
1 parent 0858bf9 commit 62e0f2b
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions .tasks/docker-darwin.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,24 +23,29 @@ tasks:
build:
desc: Build the app and the corresponding Docker image (tagged as "miw-test")
cmds:
- task: :build-app
- task: :app:build
- docker build -t local-miw --platform linux/amd64 .

start-middleware:
desc: Spin up local Docker environment
dir: dev-assets/dev-containers
dir: dev-assets/docker-environment
ignore_error: true
vars:
OPTIONS: '{{ default "" .OPTIONS }}'
CONTAINERS: '{{ default "local_postgres local_keycloak" .CONTAINERS }}'
CONTAINERS: '{{ default "postgres keycloak" .CONTAINERS }}'
cmds:
- cat postgres/db.sh.tpl | envsubst > postgres/db.sh
- chmod +x postgres/db.sh
- "docker-compose up {{ .OPTIONS }} {{ .CONTAINERS }}"

stop-middleware:
desc: Stop local Docker environment
dir: dev-assets/dev-containers
dir: dev-assets/docker-environment
cmds:
- docker-compose down
- cmd: docker volume remove docker-environment_postgres_data
ignore_error: true
- rm -f postgres/db.sh

start-app:
desc: Run the app in a container environment (including middleware aka Postgresql and Keycloak)
Expand All @@ -53,12 +58,12 @@ tasks:
ignore_error: true
- task: start-middleware
vars:
CONTAINERS: "local_miw_app"
CONTAINERS: "miw"

stop-app:
desc: Stop all running containers
cmds:
- docker stop local_miw_app
- docker stop miw
- task: stop-middleware

cleanup:
Expand Down

0 comments on commit 62e0f2b

Please sign in to comment.