2017-11-21 15:31:45 +03:00
|
|
|
version: '3.4'
|
2017-07-14 14:42:30 +03:00
|
|
|
services:
|
|
|
|
web:
|
2019-05-11 01:28:20 +03:00
|
|
|
image: itsre/sumo-kitsune:base-dev-${GIT_COMMIT_SHORT:-latest}
|
2018-10-30 22:44:11 +03:00
|
|
|
command: ./bin/run-dev.sh
|
|
|
|
env_file: .env
|
|
|
|
volumes:
|
|
|
|
- ./:/app:delegated
|
2017-11-17 11:36:03 +03:00
|
|
|
user: ${UID:-kitsune}
|
2019-07-01 11:11:08 +03:00
|
|
|
stdin_open: true
|
|
|
|
tty: true
|
2017-07-14 14:42:30 +03:00
|
|
|
depends_on:
|
|
|
|
- mariadb
|
|
|
|
- elasticsearch
|
|
|
|
- redis
|
2017-11-15 10:33:39 +03:00
|
|
|
ports:
|
|
|
|
- "8000:8000"
|
2018-10-30 22:44:11 +03:00
|
|
|
|
|
|
|
test:
|
2019-05-11 01:28:20 +03:00
|
|
|
image: itsre/sumo-kitsune:base-dev-${GIT_COMMIT_SHORT:-latest}
|
2018-10-30 22:44:11 +03:00
|
|
|
command: ./bin/run-unit-tests.sh
|
|
|
|
env_file: .env-test
|
|
|
|
volumes:
|
|
|
|
- ./:/app:delegated
|
|
|
|
user: ${UID:-kitsune}
|
|
|
|
depends_on:
|
|
|
|
- mariadb
|
|
|
|
- elasticsearch
|
|
|
|
- redis
|
|
|
|
|
|
|
|
test-js:
|
2019-05-11 01:28:20 +03:00
|
|
|
image: itsre/sumo-kitsune:staticfiles-${GIT_COMMIT_SHORT:-latest}
|
2018-10-30 22:44:11 +03:00
|
|
|
command: ./bin/run-mocha-tests.sh
|
|
|
|
env_file: .env-test
|
|
|
|
volumes:
|
|
|
|
- ./:/app:delegated
|
|
|
|
user: ${UID:-kitsune}
|
|
|
|
|
|
|
|
test-image:
|
2019-05-11 01:28:20 +03:00
|
|
|
image: itsre/sumo-kitsune:full-no-locales-${GIT_COMMIT_SHORT:-latest}
|
2018-10-30 22:44:11 +03:00
|
|
|
command: ./bin/run-unit-tests.sh
|
|
|
|
env_file: .env-test
|
|
|
|
depends_on:
|
|
|
|
- mariadb
|
|
|
|
- elasticsearch
|
|
|
|
- redis
|
|
|
|
|
|
|
|
test-image-js:
|
2019-05-11 01:28:20 +03:00
|
|
|
image: itsre/sumo-kitsune:staticfiles-${GIT_COMMIT_SHORT:-latest}
|
2018-10-30 22:44:11 +03:00
|
|
|
command: ./bin/run-mocha-tests.sh
|
|
|
|
env_file: .env-test
|
|
|
|
|
2019-01-02 20:11:00 +03:00
|
|
|
lint-l10n:
|
2019-05-11 01:28:20 +03:00
|
|
|
image: itsre/sumo-kitsune:base-${GIT_COMMIT_SHORT:-latest}
|
2019-01-02 20:11:00 +03:00
|
|
|
command: dennis-cmd lint --errorsonly locale
|
2019-01-04 00:13:42 +03:00
|
|
|
env_file: .env-test
|
2019-01-02 20:11:00 +03:00
|
|
|
volumes:
|
|
|
|
- ./locale:/app/locale:delegated
|
|
|
|
|
2018-10-30 22:44:11 +03:00
|
|
|
# images
|
|
|
|
base:
|
|
|
|
build:
|
|
|
|
context: .
|
|
|
|
target: base
|
2019-01-04 00:13:42 +03:00
|
|
|
args:
|
|
|
|
- GIT_SHA
|
2019-05-11 01:28:20 +03:00
|
|
|
image: itsre/sumo-kitsune:base-${GIT_COMMIT_SHORT:-latest}
|
2018-10-30 22:44:11 +03:00
|
|
|
|
|
|
|
base-dev:
|
|
|
|
build:
|
|
|
|
context: .
|
|
|
|
target: base-dev
|
2019-01-04 00:13:42 +03:00
|
|
|
args:
|
|
|
|
- GIT_SHA
|
2019-05-11 01:28:20 +03:00
|
|
|
image: itsre/sumo-kitsune:base-dev-${GIT_COMMIT_SHORT:-latest}
|
2018-10-30 22:44:11 +03:00
|
|
|
|
2019-11-21 22:22:33 +03:00
|
|
|
node-dev:
|
|
|
|
build:
|
|
|
|
context: .
|
|
|
|
target: frontend-base
|
|
|
|
args:
|
|
|
|
- GIT_SHA
|
|
|
|
image: itsre/sumo-kitsune:node-dev-${GIT_COMMIT_SHORT:-latest}
|
|
|
|
|
2018-10-30 22:44:11 +03:00
|
|
|
staticfiles:
|
|
|
|
build:
|
|
|
|
context: .
|
|
|
|
target: staticfiles
|
2019-01-04 00:13:42 +03:00
|
|
|
args:
|
|
|
|
- GIT_SHA
|
2019-05-11 01:28:20 +03:00
|
|
|
image: itsre/sumo-kitsune:staticfiles-${GIT_COMMIT_SHORT:-latest}
|
2018-10-30 22:44:11 +03:00
|
|
|
|
|
|
|
locales:
|
|
|
|
build:
|
|
|
|
context: .
|
|
|
|
target: locales
|
2019-01-04 00:13:42 +03:00
|
|
|
args:
|
|
|
|
- GIT_SHA
|
|
|
|
- LOCALE_ENV
|
2019-05-11 01:28:20 +03:00
|
|
|
image: itsre/sumo-kitsune:locales-${GIT_COMMIT_SHORT:-latest}
|
2018-10-30 22:44:11 +03:00
|
|
|
|
|
|
|
full-no-locales:
|
|
|
|
build:
|
|
|
|
context: .
|
|
|
|
target: full-no-locales
|
2019-01-04 00:13:42 +03:00
|
|
|
args:
|
|
|
|
- GIT_SHA
|
|
|
|
- LOCALE_ENV
|
2019-05-11 01:28:20 +03:00
|
|
|
image: itsre/sumo-kitsune:full-no-locales-${GIT_COMMIT_SHORT:-latest}
|
2018-10-30 22:44:11 +03:00
|
|
|
|
|
|
|
full:
|
|
|
|
build:
|
|
|
|
context: .
|
|
|
|
target: full
|
2019-01-04 00:13:42 +03:00
|
|
|
args:
|
|
|
|
- GIT_SHA
|
|
|
|
- LOCALE_ENV
|
2019-05-11 01:28:20 +03:00
|
|
|
image: itsre/sumo-kitsune:full-${GIT_COMMIT_SHORT:-latest}
|
2018-10-30 22:44:11 +03:00
|
|
|
|
|
|
|
# EXTERNAL SERVICES
|
2017-07-14 14:42:30 +03:00
|
|
|
mariadb:
|
2017-11-15 10:33:39 +03:00
|
|
|
image: mariadb:10.0
|
2017-07-14 14:42:30 +03:00
|
|
|
environment:
|
|
|
|
- MYSQL_ROOT_PASSWORD=kitsune
|
|
|
|
- MYSQL_USER=kitsune
|
|
|
|
- MYSQL_PASSWORD=kitsune
|
|
|
|
- MYSQL_DATABASE=kitsune
|
|
|
|
entrypoint:
|
|
|
|
- docker-entrypoint.sh
|
|
|
|
- --character-set-server=utf8
|
|
|
|
- --collation-server=utf8_unicode_ci
|
|
|
|
volumes:
|
|
|
|
- mysqlvolume:/var/lib/mysql
|
|
|
|
|
|
|
|
elasticsearch:
|
2017-11-15 10:33:39 +03:00
|
|
|
image: elasticsearch:2.4
|
2017-07-14 14:42:30 +03:00
|
|
|
|
|
|
|
redis:
|
2017-11-15 10:33:39 +03:00
|
|
|
image: redis:3
|
2017-07-14 14:42:30 +03:00
|
|
|
|
|
|
|
volumes:
|
|
|
|
mysqlvolume:
|