Skip to content

Commit

Permalink
feat(devel): include checks and new "local.env" + add check-prerequis…
Browse files Browse the repository at this point in the history
…ites task
  • Loading branch information
pmoscode committed Jun 23, 2023
1 parent 138cdf0 commit 99ac665
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 5 deletions.
14 changes: 12 additions & 2 deletions Taskfile.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,19 @@
version: 3

dotenv:
- 'dev.env'
- 'local.env'

includes:
check:
taskfile: .tasks/check-tools.yaml
internal: true

tasks:
check-prerequisites:
desc: Checks the local machine for all tools, which are used for MIW development
cmds:
- task: check:check-all

unittest:
desc: Executes helm unittests
dir: charts/managed-identity-wallet
Expand All @@ -13,7 +23,7 @@ tasks:
buildApp:
desc: Build the whole app
cmds:
- ./gradlew build -PgithubToken=xxx -x test -x jacocoTestCoverageVerification
- ./gradlew build -PgithubToken=$GITHUB_TOKEN $SKIP_GRADLE_TASKS_PARAM

buildDocker:
desc: Build the app and the corresponding Docker image (tagged as "miw-test")
Expand Down
6 changes: 3 additions & 3 deletions dev-assets/dev-containers/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ services:
image: local-miw:latest
container_name: local_miw_app
env_file:
- ../../dev.env
- ../../local.env
ports:
- "8087:8087"
environment:
Expand All @@ -17,7 +17,7 @@ services:
image: postgres:14.2-alpine
container_name: local_postgres
env_file:
- ../../dev.env
- ../../local.env
volumes:
- postgres-data:/data/postgres-data
ports:
Expand All @@ -32,7 +32,7 @@ services:
- start-dev
- --import-realm
env_file:
- ../../dev.env
- ../../local.env
volumes:
- ./keycloak/local-realm.json:/opt/keycloak/data/import/local-realm.json
ports:
Expand Down
5 changes: 5 additions & 0 deletions local.env.dist
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Personal development data
GITHUB_TOKEN=xxx

# Build
SKIP_GRADLE_TASKS_PARAM="-x jacocoTestCoverageVerification -x test"

0 comments on commit 99ac665

Please sign in to comment.