File tree Expand file tree Collapse file tree 5 files changed +16
-20
lines changed
Expand file tree Collapse file tree 5 files changed +16
-20
lines changed Original file line number Diff line number Diff line change @@ -2,9 +2,7 @@ version: '3'
22services :
33 # publisher service
44 producer :
5- image : miner/producer
6- # volumes:
7- # - "$MINER/miner/maven-indexer:/dist"
5+ image : amineben/producer:miner-$TAG
86 deploy :
97 update_config :
108 delay : 15s
@@ -13,16 +11,11 @@ services:
1311 depends_on :
1412 - neo4j
1513 - rabbitmq
16- # network_mode: "host"
1714 command : dockerize -wait http://rabbitmq:15672 -timeout 30s /dist/run-producer.sh --queue rabbitmq:5672
18- # command: dockerize -wait http://localhost:15672 -timeout 30s /dist/run-producer.sh --queue localhost:5672
19- # command: /dist/run-producer.sh --queue rabbitmq:5672
2015
2116 # consumer service
2217 consumer :
23- image : miner/consumer
24- # volumes:
25- # - "$MINER/miner/maven-aether:/dist"
18+ image : amineben/consumer:miner-$TAG
2619 deploy :
2720 replicas : $REPLICAS
2821 update_config :
@@ -32,10 +25,7 @@ services:
3225 depends_on :
3326 - neo4j
3427 - rabbitmq
35- # network_mode: "host"
3628 command : dockerize -wait http://neo4j:7474 -wait http://rabbitmq:15672/#/queues/%2F/artifactsQueue -timeout 30s /dist/run-consumer.sh --db neo4j:7687 --queue rabbitmq:5672
37- # command: dockerize -wait http://localhost:7474 -wait http://localhost:15672 -timeout 30s /dist/run-consumer.sh --db localhost:7687 --queue localhost:5672
38- # command: /dist/run-consumer.sh --db neo4j:7687 --queue rabbitmq:5672
3929
4030 # neo4j service
4131 neo4j :
@@ -53,7 +43,7 @@ services:
5343 constraints : [node.role == manager]
5444 # rabbit mq service
5545 rabbitmq :
56- image : miner /rabbitmq
46+ image : amineben /rabbitmq:miner-$TAG
5747 ports :
5848 - " 15672:15672"
5949 - " 5672:5672"
Original file line number Diff line number Diff line change 33 <parent >
44 <groupId >fr.inria.diverse</groupId >
55 <artifactId >maven-miner-parent</artifactId >
6- <version >0.2.3 -SNAPSHOT</version >
6+ <version >0.2.4 -SNAPSHOT</version >
77 </parent >
88 <artifactId >maven-miner-aether</artifactId >
99
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ under the License.
2323
2424 <artifactId >maven-miner-indexer</artifactId >
2525 <groupId >fr.inria.diverse</groupId >
26- <version >0.2.3 -SNAPSHOT</version >
26+ <version >0.2.4 -SNAPSHOT</version >
2727
2828 <build >
2929 <resources >
Original file line number Diff line number Diff line change 22 <modelVersion >4.0.0</modelVersion >
33 <groupId >fr.inria.diverse</groupId >
44 <artifactId >maven-miner-parent</artifactId >
5- <version >0.2.3 -SNAPSHOT</version >
5+ <version >0.2.4 -SNAPSHOT</version >
66 <packaging >pom</packaging >
77
88 <properties >
Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ function print_usage_and_exit {
88}
99NEO4J_DUMP=$HOME /neo4j-server
1010CONSUMERS=2
11+ VERSION=0.2.4
1112while [[ $# > 1 ]]
1213do
1314key=" $1 "
@@ -17,6 +18,10 @@ case $key in
1718 CONSUMERS=$1
1819 shift
1920 ;;
21+ --tag)
22+ VERSION=$1
23+ shift
24+ ;;
2025 --neo4j-dump)
2126 NEO4J_DUMP=$1
2227 shift
@@ -31,12 +36,13 @@ mkdir $NEO4J_DUMP
3136mkdir $NEO4J_DUMP /data
3237mkdir $NEO4J_DUMP /logs
3338
34- docker build -t miner/rabbitmq rabbitmq/
35- docker build -t miner/dockerize dockerize/
36- docker build -t miner/consumer miner/maven-aether/
37- docker build -t miner/producer miner/maven-indexer/
39+ # docker build -t miner/rabbitmq rabbitmq/
40+ # docker build -t miner/dockerize dockerize/
41+ # docker build -t miner/consumer miner/maven-aether/
42+ # docker build -t miner/producer miner/maven-indexer/
3843
3944export NEO4J_VAR=$NEO4J_DUMP
4045export REPLICAS=$CONSUMERS
4146export MINER=` pwd`
47+ export TAG=$VERSION
4248docker stack deploy -c docker-stack-deploy.yml maven-miner-exp
You can’t perform that action at this time.
0 commit comments