Skip to content

Commit

Permalink
contexts
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanocudini committed Feb 13, 2020
1 parent 4b84cae commit e312fb8
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 9 deletions.
2 changes: 0 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ RUN git clone https://github.com/VROOM-Project/vroom-express.git /vroom-express

#RUN mkdir /vroom-express
#ADD ./vroom-express /vroom-express

#TODO volume

ENV VROOM_EXPRESS_BRANCH master
Expand All @@ -41,4 +40,3 @@ RUN apt-get update && \

EXPOSE 3000
CMD ["npm", "start", "--prefix", "/vroom-express"]

17 changes: 11 additions & 6 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,28 +4,33 @@ networks:
driver: bridge
services:
ors:
#container_name: ors-smartbin
container_name: ors-smartbin
#TODO build
ports: ["8080:8080"]
image: docker_ors-smartbin:latest
build:
context: ./
context: ../openrouteservice/
args:
APP_CONFIG: ./ors.config
OSM_FILE: ./data/povo.osm.gz
# APP_CONFIG: ../docker-ors-vroom/ors.config
# OSM_FILE: ../docker-ors-vroom/data/povo.osm.gz
JAVA_OPTS: -Djava.awt.headless=true -server -XX:TargetSurvivorRatio=75 -XX:SurvivorRatio=64 -XX:MaxTenuringThreshold=3 -XX:+UseConcMarkSweepGC -XX:+UseParNewGC -XX:ParallelGCThreads=4 -Xms1g -Xmx2g
CATALINA_OPTS: -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=9001 -Dcom.sun.management.jmxremote.rmi.port=9001 -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false -Djava.rmi.server.hostname=localhost
volumes:
- ./ors.config:/ors-core/openrouteservice/src/main/resources/app.config
- ./data/povo.osm.gz:/ors-core/data/osm_file.pbf
- ./graphs:/ors-core/data/graphs
- ./elevation_cache:/ors-core/data/elevation_cache
- ./logs/:/var/log/ors/
- ./logs/:/usr/local/tomcat/logs
vroom:
#container_name: vroom-smartbin
container_name: vroom-smartbin
image: vroom-ors:latest
build:
context: ./

ports: ["8083:3000"]
volumes:
- "./vroom.config.js:/vroom-express/src/config.js"
- ./vroom.config.js:/vroom-express/src/config.js

#vroom-test:
# image: nginx
Expand Down
2 changes: 1 addition & 1 deletion vroom-test.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#

curl -X POST -H "Content-Type: application/json" -d vroom-problem.json http://localhost:8083
curl -d @vroom-problem.json -X POST -H "Content-Type: application/json" http://localhost:8083

0 comments on commit e312fb8

Please sign in to comment.