-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathdocker-compose.dev.yml
88 lines (86 loc) · 1.91 KB
/
docker-compose.dev.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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
# This file provides preconfigured containers to run tests
# in a development environment
#
# How to use this:
# docker-compose -f docker-compose.dev.yml run (python-test|eslint|jest|cypress)
#
# You can also run a command in the container by using:
# docker-compose -f docker-compose.dev.yml run <service-name> <command>
version: '3.4'
services:
python-tests:
build:
context: .
target: app-test-container
user: root
volumes:
- ./myuw:/app/myuw
- /tmp/myuw:/coverage
environment:
ENV: localdev
AUTH: SAML_MOCK
DJANGO_APP: "myuw"
MEMCACHED_SERVER_COUNT: 1
MEMCACHED_SERVER_SPEC: memcached
depends_on:
- memcached
stdin_open: true
tty: true
command: bash -c ". ./docker/test_python.sh"
memcached:
container_name: memcached
image: memcached:latest
ports:
- "11211:11211"
expose:
- "11211"
eslint:
build:
context: .
dockerfile: Dockerfile.cypress
environment:
NODE_ENV: production
ENV: localdev
volumes:
- ./myuw:/app/myuw
- ./myuw_vue:/app/myuw_vue
working_dir: /app/
stdin_open: true
tty: true
entrypoint:
- ./node_modules/.bin/eslint
- myuw_vue
- --ext
- .vue
jest:
build:
context: .
dockerfile: Dockerfile.cypress
environment:
NODE_ENV: production
ENV: localdev
volumes:
- ./myuw:/app/myuw
- ./myuw_vue:/app/myuw_vue
working_dir: /app/
stdin_open: true
tty: true
entrypoint:
- ./node_modules/.bin/jest
cypress:
build:
context: .
dockerfile: Dockerfile.cypress
environment:
NODE_ENV: production
ENV: localdev
volumes:
- ./myuw:/app/myuw
- ./myuw_vue:/app/myuw_vue
- ./cypress:/app/cypress
working_dir: /app/
stdin_open: true
tty: true
entrypoint:
- ./node_modules/.bin/cypress
- run-ct