@@ -2,57 +2,58 @@ version: "3.1"
22
33services :
44
5+ # For Local Dev
56 # Requires a ` docker build . -t execution_engine2:test `
67 # Requires a ` make database `
7- ee2 :
8- image : execution_engine2:test
9- command :
10- - " -poll"
11- - " -template"
12- - " /kb/module/build/templates/condor_config.templ:/etc/condor/condor_config"
13- - " -template"
14- - " /kb/module/test/deploy.cfg:/kb/module/deploy.cfg"
15- - " -timeout"
16- - " 120s"
17- - " -wait"
18- - " tcp://mongodb:27017"
19- - " -stdout"
20- - " /kb/deployment/jettybase/logs/request.log"
21- - " ./scripts/entrypoint.sh"
22- entrypoint : [ "dockerize" ]
23- depends_on : ["mongodb","condor"]
24- environment :
25- - POOL_PASSWORD=weakpassword
26- env_file : test/deploy.cfg
27- volumes :
28- - ./:/ee2
29-
30- ee2_with_ssh :
31- image : execution_engine2:test
32- command :
33- - " -poll"
34- - " -template"
35- - " /kb/module/build/templates/condor_config.templ:/etc/condor/condor_config"
36- - " -template"
37- - " /kb/module/build/templates/deploy.docker.cfg.templ:/kb/module/deploy.cfg"
38- - " -timeout"
39- - " 120s"
40- - " -wait"
41- - " tcp://mongodb:27017"
42- - " -stdout"
43- - " /kb/deployment/jettybase/logs/request.log"
44- - " ./scripts/entrypoint.sh"
45- entrypoint : [ "dockerize" ]
46- depends_on : ["mongodb","condor"]
47- environment :
48- - POOL_PASSWORD=weakpassword
49- - LOCAL_DEV=1
50- - KB_DEPLOYMENT_CONFIG=/kb/module/deploy.cfg
51- env_file : test/deploy.cfg
52- ports : ["23:22","5678:5678"]
53- volumes :
54- - ./:/ee2
55- - /Users:/Users
8+ # ee2:
9+ # image: execution_engine2:test
10+ # command:
11+ # - "-poll"
12+ # - "-template"
13+ # - "/kb/module/build/templates/condor_config.templ:/etc/condor/condor_config"
14+ # - "-template"
15+ # - "/kb/module/test/deploy.cfg:/kb/module/deploy.cfg"
16+ # - "-timeout"
17+ # - "120s"
18+ # - "-wait"
19+ # - "tcp://mongodb:27017"
20+ # - "-stdout"
21+ # - "/kb/deployment/jettybase/logs/request.log"
22+ # - "./scripts/entrypoint.sh"
23+ # entrypoint: [ "dockerize" ]
24+ # depends_on: ["mongodb","condor"]
25+ # environment:
26+ # - POOL_PASSWORD=weakpassword
27+ # env_file: test/deploy.cfg
28+ # volumes:
29+ # - ./:/ee2
30+ #
31+ # ee2_with_ssh:
32+ # image: execution_engine2:test
33+ # command:
34+ # - "-poll"
35+ # - "-template"
36+ # - "/kb/module/build/templates/condor_config.templ:/etc/condor/condor_config"
37+ # - "-template"
38+ # - "/kb/module/build/templates/deploy.docker.cfg.templ:/kb/module/deploy.cfg"
39+ # - "-timeout"
40+ # - "120s"
41+ # - "-wait"
42+ # - "tcp://mongodb:27017"
43+ # - "-stdout"
44+ # - "/kb/deployment/jettybase/logs/request.log"
45+ # - "./scripts/entrypoint.sh"
46+ # entrypoint: [ "dockerize" ]
47+ # depends_on: ["mongodb","condor"]
48+ # environment:
49+ # - POOL_PASSWORD=weakpassword
50+ # - LOCAL_DEV=1
51+ # - KB_DEPLOYMENT_CONFIG=/kb/module/deploy.cfg
52+ # env_file: test/deploy.cfg
53+ # ports: ["23:22","5678:5678"]
54+ # volumes:
55+ # - ./:/ee2
56+ # - /Users:/Users
5657
5758
5859
@@ -146,13 +147,15 @@ services:
146147 ZOOKEEPER_SYNC_LIMIT : 2docker-compose rm
147148 ZOOKEEPER_SERVERS : zookeeper:12888:13888
148149
150+
149151 mongodb :
150- image : mongo:3.2
152+ image : mongo:${MONGO_VERSION:-7.0} # Use 7.0 as the default if MONGO_VERSION is not set
151153 environment :
152- # provide your credentials here
153154 - MONGO_INITDB_ROOT_USERNAME=travis
154155 - MONGO_INITDB_ROOT_PASSWORD=travis
155156 - MONGO_INITDB_DATABASE=ee2
156- ports : ["27018:27017","27017:27017"]
157+ ports :
158+ - " 27018:27017"
159+ - " 27017:27017"
157160 volumes :
158- - " ./test/dockerfiles/mongo/docker-entrypoint-initdb.d/ :/docker-entrypoint-initdb.d/"
161+ - ${INIT_PATH:- ./test/dockerfiles/mongo/docker-entrypoint-initdb.d-7.0/} :/docker-entrypoint-initdb.d/
0 commit comments