-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feature(package): Docker Compose Refactor.
Decided that working with volumes is a pain, decided to use ``extends`` to build off of base. Added coverage reports. Added compose down. Updated coverage report configuration.
- Loading branch information
1 parent
4dabfd7
commit 195548e
Showing
6 changed files
with
98 additions
and
58 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
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,30 @@ | ||
--- | ||
# version: '3.9' | ||
name: captura | ||
services: | ||
server: | ||
build: | ||
context: '..' | ||
dockerfile: './docker/dockerfile' | ||
target: development | ||
# NOTE: Should not include shell variables, only those from ``.env``. | ||
environment: | ||
CAPTURA_CONFIG_CLIENT_TEST: "${CAPTURA_CONFIG_CLIENT_TEST-/home/captura/app/configs/client.test.yaml}" | ||
CAPTURA_CONFIG_CLIENT: "${CAPTURA_CONFIG_CLIENT-/home/captura/app/configs/client.yaml}" | ||
CAPTURA_CONFIG_APP: "${CAPTURA_CONFIG_APP-/home/captura/app/configs/app.yaml}" | ||
CAPTURA_CONFIG_APP_TEST: "${CAPTURA_CONFIG_APP_TEST-/home/captura/app/configs/app.test.yaml}" | ||
CAPTURA_FLAKEY: "${CAPTURA_FLAKEY-/home/captura/app/configs/flakey.yaml}" | ||
CAPTURA_PLUGINS_USE: "${CAPTURA_PLUGINS_USE-0}" | ||
ports: | ||
- target: 8080 | ||
published: 8080 | ||
tty: true | ||
db: | ||
image: mysql:8 | ||
environment: | ||
MYSQL_RANDOM_ROOT_PASSWORD: 1 | ||
MYSQL_DATABASE: captura | ||
MYSQL_USER: captura | ||
MYSQL_PASSWORD: changeme | ||
|
||
|
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,24 @@ | ||
--- | ||
name: captura-ci | ||
services: | ||
server: | ||
# Base should give compose minus volumes and networks (and any references to | ||
# outside). | ||
build: | ||
context: '..' | ||
target: ci | ||
extends: | ||
file: ./compose.base.yaml | ||
service: server | ||
networks: | ||
captura: {} | ||
db: | ||
extends: | ||
file: ./compose.base.yaml | ||
service: db | ||
networks: | ||
captura: {} | ||
networks: | ||
captura: | ||
driver: bridge | ||
|
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
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
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