@@ -14,10 +14,10 @@ services:
14
14
fakeservices.datajoint.io :
15
15
condition : service_healthy
16
16
environment :
17
- - DJ_HOST=db
17
+ - DJ_HOST=fakeservices.datajoint.io
18
18
- DJ_USER=root
19
19
- DJ_PASS=simple
20
- - DJ_TEST_HOST=db
20
+ - DJ_TEST_HOST=fakeservices.datajoint.io
21
21
- DJ_TEST_USER=datajoint
22
22
- DJ_TEST_PASSWORD=datajoint
23
23
# If running tests locally, make sure to add entry in /etc/hosts for 127.0.0.1 fakeservices.datajoint.io
@@ -35,7 +35,7 @@ services:
35
35
pip install --user nose nose-cov coveralls ptvsd .;
36
36
pip freeze | grep datajoint;
37
37
## You may run the below tests once sh'ed into container i.e. docker exec -it datajoint-python_app_1 sh
38
- # nosetests -vsw tests --with-coverage --cover-package=datajoint ; #run all tests
38
+ # nosetests -vsw tests; #run all tests
39
39
# nosetests -vs --tests=tests.test_external_class:test_insert_and_fetch; #run specific basic test
40
40
# nosetests -vs --tests=tests.test_fetch:TestFetch.test_getattribute_for_fetch1; #run specific Class test
41
41
## Interactive Jupyter Notebook environment
@@ -61,17 +61,19 @@ services:
61
61
image : datajoint/mysql:$MYSQL_VER
62
62
environment :
63
63
- MYSQL_ROOT_PASSWORD=simple
64
- ports :
65
- - " 3306:3306"
64
+ # ports:
65
+ # - "3306:3306"
66
66
# To persist MySQL data
67
67
# volumes:
68
68
# - ./mysql/data:/var/lib/mysql
69
69
minio :
70
70
<< : *net
71
+ image : minio/minio:$MINIO_VER
71
72
environment :
72
73
- MINIO_ACCESS_KEY=datajoint
73
74
- MINIO_SECRET_KEY=datajoint
74
- image : minio/minio:$MINIO_VER
75
+ # ports:
76
+ # - "9000:9000"
75
77
# To persist MinIO data and config
76
78
# volumes:
77
79
# - ./minio/data:/data
@@ -89,6 +91,7 @@ services:
89
91
- URL=datajoint.io
90
92
- SUBDOMAINS=fakeservices
91
93
- MINIO_SERVER=http://minio:9000
94
+ - MYSQL_SERVER=db:3306
92
95
entrypoint : /entrypoint.sh
93
96
healthcheck :
94
97
test : wget --quiet --tries=1 --spider https://fakeservices.datajoint.io:443/minio/health/live || exit 1
@@ -98,8 +101,10 @@ services:
98
101
ports :
99
102
- " 9000:9000"
100
103
- " 443:443"
104
+ - " 3306:3306"
101
105
volumes :
102
106
- ./tests/nginx/base.conf:/base.conf
107
+ - ./tests/nginx/nginx.conf:/nginx.conf
103
108
- ./tests/nginx/entrypoint.sh:/entrypoint.sh
104
109
- ./tests/nginx/fullchain.pem:/certs/fullchain.pem
105
110
- ./tests/nginx/privkey.pem:/certs/privkey.pem
0 commit comments