Skip to content

Commit

Permalink
fix: optional-clean-in-compose
Browse files Browse the repository at this point in the history
  • Loading branch information
regislegrand committed Oct 27, 2021
1 parent b203650 commit ddf330a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion code/bin/up-with-clean.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@

BIN_PATH="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"

OPTIONAL_CLEAN="clean" ${BIN_PATH}/up.sh $@
OPTIONAL_COMMAND="mvn clean install -Pdev" ${BIN_PATH}/up.sh $@
2 changes: 1 addition & 1 deletion code/docker-compose.dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ services:
environment:
- INFO_APP_VERSION=DEV
- ARA_OAUTH2_MODE=oauth2-mock
command: ['/bin/bash', '-c', 'mvn -Pdev ${OPTIONAL_CLEAN} spring-boot:run -pl api']
command: ['/bin/bash', '-c', '${OPTIONAL_COMMAND:-echo with-no-optional-command} && mvn -Pdev spring-boot:run -pl api']
front:
image: node:12
working_dir: /app
Expand Down

0 comments on commit ddf330a

Please sign in to comment.