Skip to content

Commit 9a8853d

Browse files
committed
Insert HSL zones in startup script
1 parent 5d561d5 commit 9a8853d

File tree

2 files changed

+294
-0
lines changed

2 files changed

+294
-0
lines changed

development.sh

+9
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,12 @@ generate_jooq() {
178178
mvn clean generate-sources -Pci
179179
}
180180

181+
upload_zones() {
182+
echo "Uploading municipality and fare zones to Tiamat"
183+
184+
curl --silent --output /dev/null --show-error --fail -X POST -H"Content-Type: application/xml" -d @netex/hsl-zones-netex.xml localhost:3010/services/stop_places/netex
185+
}
186+
181187
### Control flow
182188

183189
COMMAND=${1:-}
@@ -191,11 +197,13 @@ case $COMMAND in
191197
start)
192198
download_docker_compose_bundle
193199
start_all
200+
upload_zones
194201
;;
195202

196203
start:deps)
197204
download_docker_compose_bundle
198205
start_deps
206+
upload_zones
199207
;;
200208

201209
generate:jooq)
@@ -214,6 +222,7 @@ case $COMMAND in
214222
recreate)
215223
remove
216224
start_deps
225+
upload_zones
217226
;;
218227

219228
list)

0 commit comments

Comments
 (0)