Skip to content

Commit

Permalink
Fix test setup with docker compose (new version)
Browse files Browse the repository at this point in the history
  • Loading branch information
carlobeltrame committed Mar 22, 2023
1 parent c55efe6 commit b085e21
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion bin/test_env_core
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@

source $(dirname $0)/_basics

docker-compose run rails_test_core bundle exec bash "$@"
docker-compose run --rm rails_test_core bundle exec bash "$@"
2 changes: 1 addition & 1 deletion bin/test_env_wagon
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

source $(dirname $0)/_basics

docker-compose run \
docker-compose run --rm \
--workdir=/usr/src/app/hitobito_$WAGON \
-e RAILS_ENV=test \
rails \
Expand Down
1 change: 1 addition & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ services:
- "33066:3306"
volumes:
- ./docker/mysql-setup.sql:/docker-entrypoint-initdb.d/mysql-setup.sql:ro
- ./docker/test-setup.sql:/docker-entrypoint-initdb.d/test-setup.sql:ro
- db:/var/lib/mysql

webpack:
Expand Down

0 comments on commit b085e21

Please sign in to comment.