@@ -14,7 +14,7 @@ Within this folder (dkroutingtool) run:
1414` sh s_build_docker_dev.sh `
1515
1616
17- ### Running Model
17+ ### Running Application
1818You can run the image interactively with the following:
1919
2020` sh local_start.sh `
@@ -55,16 +55,42 @@ data otherwise), you can force an osm update by running the following script (be
5555<br >
5656
5757-----------------------------------------------------------
58+ ### File input and output structure
5859
59- ## Other Options
60+ Running in cloud mode:
61+ When running using the cloud provider the tool will download all input data from the cloud
62+ into the local data directory in WORKING_DATA_DIR/input_data/<scenario >-datetime/ folder and
63+ then read from that directory. All outputs are put into WORKING_DATA_DIR/output_data/<scenario >-datetime/.
64+ This is then zipped and uploaded to the output/ directory in the root cloud folder.
6065
61- ### Running the Manual Update (Dev)
62- Download ` manual_routes_edit.xlsx ` file from the docker container, edit as needed and copy back into the docker container.
63- Then get into the docker container and run:
66+ Running in local mode:
67+ When running locally the tool will read from the data/ directory and write to the same
68+ WORKING_DATA_DIR/output_data/< scenario >-datetime/ directory. for the output.
6469
65- ` PYTHONPATH=./py-lib:src/py /opt/conda/bin/python src/py/main_application.py --local --manual `
70+ ------------------------------------------------------------------------------
71+ ### Running the model with google drive output (for DEVELOPERS)
72+ You can run the model with google drive by putting your credentials in src/creds/gdrive_creds.json
6673
67- <br >
68- <br >
74+ Then create a version of scripts/run_app.sh with the folder ids filled in (you can access these) by right
75+ clicking your files in google drive -> copy link -> and extracting the id in the URI.
76+
77+ Then you can run it in the docker environment as follows:
78+
79+ export CLOUDCONTEXT=gdrive
80+ export GDRIVECUSTOMERFILEID=...
81+ export GDRIVEEXTRAFILEID=...
82+ export GDRIVEROOTFOLDERID=...
83+ export GDRIVECREDSFILE=src/creds/gdrive_creds.json
84+
85+ # Local mode
86+ /opt/conda/bin/python src/py/main_application.py --input test_scenario --local
87+
88+ # Local Manual Mode
89+ /opt/conda/bin/python src/py/main_application.py --input test_scenario --manual_input_path WORKING_DATA_DIR/output_data/test_scenario_2022_09_16_19_38/manual_edits --local
90+
91+ # Cloud mode
92+ /opt/conda/bin/python src/py/main_application.py --input test_scenario
93+
94+ # Cloud manual mode
95+ /opt/conda/bin/python src/py/main_application.py --input test_scenario --manual
6996
70- ------------------------------------------------------------------------------
0 commit comments