forked from openedx-unsupported/ecommerce
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose-ci.yml
36 lines (35 loc) · 1.25 KB
/
docker-compose-ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# This is only meant to be used for testing on travis-ci.org
version: "2"
services:
db:
image: mysql:5.7
container_name: db
command: mysqld --character-set-server=utf8 --collation-server=utf8_general_ci
environment:
MYSQL_ROOT_PASSWORD: "password"
MYSQL_DATABASE: "ecommerce"
ecommerce:
image: edxops/ecommerce:latest
container_name: ecommerce_testing
volumes:
- ..:/edx/app/ecommerce/ecommerce
- $HOME/.cache/pip:/edx/app/ecommerce/.cache/pip
- /edx/app/ecommerce/ecommerce/node_modules
# The docker container produced from configuration.git does not currently
# run and expose a port for ecommerce. This means that we need to run some
# command that keeps the ecommerce container alive while we run tests on it.
# We have not yet standardized on an init replacement which could be used instead.
command: tail -f /dev/null
depends_on:
- db
environment:
CONN_MAX_AGE: 60
DB_ENGINE: "django.db.backends.mysql"
DB_HOST: "db"
DB_NAME: "ecommerce"
DB_PASSWORD: "password"
DB_PORT: "3306"
DB_USER: "root"
DJANGO_SETTINGS_MODULE: "ecommerce.settings.test"
JASMINE_HOSTNAME: "localhost"
JASMINE_WEB_DRIVER: "FirefoxHeadless"