@@ -3,14 +3,55 @@ x-net: &net
33 networks :
44 - main
55services :
6- app :
6+ db :
77 << : *net
8- image : datajoint/pydev:${PY_VER}-alpine${ALPINE_VER}
8+ image : datajoint/mysql:$MYSQL_VER
9+ environment :
10+ - MYSQL_ROOT_PASSWORD=simple
11+ # ports:
12+ # - "3306:3306"
13+ # volumes:
14+ # - ./mysql/data:/var/lib/mysql
15+ minio :
16+ << : *net
17+ image : minio/minio:$MINIO_VER
18+ environment :
19+ - MINIO_ACCESS_KEY=datajoint
20+ - MINIO_SECRET_KEY=datajoint
21+ # ports:
22+ # - "9000:9000"
23+ # volumes:
24+ # - ./minio/config:/root/.minio
25+ # - ./minio/data:/data
26+ command : server --address ":9000" /data
27+ healthcheck :
28+ test : ["CMD", "curl", "--fail", "http://minio:9000/minio/health/live"]
29+ timeout : 5s
30+ retries : 60
31+ interval : 1s
32+ fakeservices.datajoint.io :
33+ << : *net
34+ image : raphaelguzman/nginx:v0.0.6
35+ environment :
36+ - ADD_db_TYPE=DATABASE
37+ - ADD_db_ENDPOINT=db:3306
38+ - ADD_minio_TYPE=MINIO
39+ - ADD_minio_ENDPOINT=minio:9000
40+ - ADD_minio_PORT=80 # allow unencrypted connections
41+ - ADD_minio_PREFIX=/datajoint
42+ # ports:
43+ # - "80:80"
44+ # - "443:443"
45+ # - "3306:3306"
946 depends_on :
1047 db :
1148 condition : service_healthy
1249 minio :
1350 condition : service_healthy
51+ app :
52+ << : *net
53+ image : datajoint/pydev:${PY_VER}-alpine${ALPINE_VER}
54+ depends_on :
1455 fakeservices.datajoint.io :
1556 condition : service_healthy
1657 environment :
@@ -20,10 +61,10 @@ services:
2061 - DJ_TEST_HOST=fakeservices.datajoint.io
2162 - DJ_TEST_USER=datajoint
2263 - DJ_TEST_PASSWORD=datajoint
23- - S3_ENDPOINT=fakeservices.datajoint.io:9000
64+ - S3_ENDPOINT=fakeservices.datajoint.io
2465 - S3_ACCESS_KEY=datajoint
2566 - S3_SECRET_KEY=datajoint
26- - S3_BUCKET=datajoint- test
67+ - S3_BUCKET=datajoint. test
2768 - PYTHON_USER=dja
2869 - JUPYTER_PASSWORD=datajoint
2970 - DISPLAY
@@ -35,8 +76,8 @@ services:
3576 "
3677 pip install --user nose nose-cov coveralls .;
3778 pip freeze | grep datajoint;
38- coveralls;
39- nosetests -vsw tests --with-coverage --cover-package=datajoint ;
79+ nosetests -vsw tests --with-coverage --cover-package=datajoint && coveralls;
80+ # jupyter notebook ;
4081 "
4182 # ports:
4283 # - "8888:8888"
@@ -45,55 +86,5 @@ services:
4586 - .:/src
4687 - /tmp/.X11-unix:/tmp/.X11-unix:rw
4788 # - ./notebooks:/home/dja/notebooks
48- db :
49- << : *net
50- image : datajoint/mysql:$MYSQL_VER
51- environment :
52- - MYSQL_ROOT_PASSWORD=simple
53- # ports:
54- # - "3306:3306"
55- # volumes:
56- # - ./mysql/data:/var/lib/mysql
57- minio :
58- << : *net
59- image : minio/minio:$MINIO_VER
60- environment :
61- - MINIO_ACCESS_KEY=datajoint
62- - MINIO_SECRET_KEY=datajoint
63- # ports:
64- # - "9000:9000"
65- # volumes:
66- # - ./minio/config:/root/.minio
67- # - ./minio/data:/data
68- command : server /data
69- healthcheck :
70- test : ["CMD", "curl", "--fail", "http://minio:9000/minio/health/live"]
71- timeout : 5s
72- retries : 60
73- interval : 1s
74- fakeservices.datajoint.io :
75- << : *net
76- image : nginx:alpine
77- environment :
78- - URL=datajoint.io
79- - SUBDOMAINS=fakeservices
80- - MINIO_SERVER=http://minio:9000
81- - MYSQL_SERVER=db:3306
82- entrypoint : /entrypoint.sh
83- healthcheck :
84- test : wget --quiet --tries=1 --spider https://fakeservices.datajoint.io:443/minio/health/live || exit 1
85- timeout : 5s
86- retries : 300
87- interval : 1s
88- # ports:
89- # - "9000:9000"
90- # - "443:443"
91- # - "3306:3306"
92- volumes :
93- - ./tests/nginx/base.conf:/base.conf
94- - ./tests/nginx/nginx.conf:/nginx.conf
95- - ./tests/nginx/entrypoint.sh:/entrypoint.sh
96- - ./tests/nginx/fullchain.pem:/certs/fullchain.pem
97- - ./tests/nginx/privkey.pem:/certs/privkey.pem
9889networks :
9990 main :
0 commit comments