-
Notifications
You must be signed in to change notification settings - Fork 0
/
gso_gym.sh
executable file
·26 lines (21 loc) · 921 Bytes
/
gso_gym.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/bin/bash
# Automate the routing process. Pass straight to sort
# NOTE: Docker container that actually runs the scripts must already be built
base_coords="/home/deve/devrepo/coords/maps/pk/volumes/rdm/coords"
base_fr="/home/deve/devrepo/coords/submodules/faster-routes"
# Map desired config into container
cfg=${base_fr}/config_gym.json
# Specify sub directory
area=gso
# Pick your fence.
fence=gso
echo "*****Starting ${fence}*****"
date
# Turn off the next line to just do sorting, like on a blanket route
/usr/bin/docker run -t --rm -v ${base_fr}:/usr/src/app -v ${cfg}:/usr/src/app/config.json -v ${base_coords}/${area}/${fence}.fence:/usr/src/app/fence.txt faster-routes
date
# Now sort
/usr/bin/docker run -t --rm -v ${base_fr}/route.txt:/usr/src/app/infile.txt sct python cluster.py -jsf infile.txt
cp ${base_fr}/route.txt ${base_fr}/coords/${area}/${fence}.route
echo "*****Done with: ${fence}*****"
date