-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Vijay Vepakomma
committed
Dec 20, 2018
1 parent
e9fbd2b
commit 877696a
Showing
6 changed files
with
54 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
version: "2.1" | ||
services: | ||
test: | ||
build: | ||
context: ../../../ | ||
dockerfile: docker/dev/Dockerfile | ||
volumes_from: | ||
- cache | ||
depends_on: | ||
db: | ||
condition: service_healthy | ||
environment: | ||
DJANGO_SETTINGS_MODULE: todobackend.settings.test | ||
MYSQL_HOST: db | ||
MYSQL_USER: root | ||
MYSQL_PASSWORD: password | ||
TEST_OUTPUT_DIR: /reports | ||
|
||
cache: | ||
build: | ||
context: ../../../ | ||
dockerfile: docker/dev/Dockerfile | ||
volumes: | ||
- /tmp/cache:/cache | ||
entrypoint: "true" | ||
|
||
db: | ||
image: mysql:5.6 | ||
hostname: db | ||
expose: | ||
- "3306" | ||
environment: | ||
MYSQL_ROOT_PASSWORD: password | ||
healthcheck: | ||
test: mysqladmin -uroot -ppassword ping | ||
interval: 2s | ||
timeout: 5s | ||
retries: 30 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
cd ../02.Django-RestApi/docker/dev | ||
docker-compose ps |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
cd ../02.Django-RestApi/docker/dev | ||
docker-compose logs db |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
cd ../02.Django-RestApi/docker/dev | ||
docker-compose kill | ||
docker-compose rm -f |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
cd ../02.Django-RestApi/docker/dev/waitfor | ||
docker-compose kill | ||
docker-compose rm -f | ||
docker-compose up test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
cd ../02.Django-RestApi/docker/dev | ||
docker-compose kill | ||
docker-compose rm -f | ||
docker-compose up test |