Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Problem
👋 Thanks for opening a pull request! Please include a brief summary of the problem your change is trying to solve, or bug fix. If your change fixes a bug or you'd like to provide context on why you're making the change, please link the issue as follows:
./down.sh
script is failing with error message:This is because
docker-compose.yml
contains environment variables substitution, and these variables are not set, unlikeup.sh
. The issue was introduced in #2678.After filling up these variables I've got another error:
This is because volumes are removed using
docker volume rm & docker volume rm
chain, and if some volume is already removed, command will exit with error, and other volumes will not be deleted.Solution
Please describe your change as it relates to the problem, or bug fix, as well as any dependencies. If your change requires a database schema migration, please describe the schema modification(s) and whether it's a backwards-incompatible or backwards-compatible change.
down.sh
scriptdocker-compose down -v
flag which should do this automaticallydowh.sh
without arguments now left volumes intact, users have to passdowh.sh -v
flag to remove them.One-line summary:
Fixed down.sh script error, added new -v option.
Checklist
CHANGELOG.md
(Depending on the change, this may not be necessary)..sql
database schema migration according to Flyway's naming convention (if relevant)