File: runall-docker.sh

package info (click to toggle)
python-stetl 2.1-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 90,360 kB
  • sloc: python: 5,618; xml: 707; sql: 430; makefile: 147; sh: 71
file content (29 lines) | stat: -rwxr-xr-x 748 bytes parent folder | download | duplicates (2)
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
27
28
29
#!/bin/bash
#
# Shortcut to run all basic examples using the Stetl Docker image.
#


for DIR_NAME in `echo [0-9]*`; do
	pushd ${DIR_NAME}
	
	echo "==== running etl.sh for example ${DIR_NAME} ===="

	# Run with current dir mounted as work dir
	BASE_CMD="docker run --rm -v $(pwd):/work -w /work geopython/stetl:latest stetl -c etl.cfg"

	# Only exception is 6_cmdargs which has several
	# extended stetl -a commandlines
	if [ ${DIR_NAME} = "6_cmdargs" ]
	then
		echo "= Special case for ${DIR_NAME} - testing -a options ="
		${BASE_CMD} -a "in_xml=input/cities.xml in_xsl=cities2gml.xsl out_xml=output/gmlcities.gml"
		${BASE_CMD} -a etl.args
		${BASE_CMD} -a etl.args -a "in_xml=input/amsterdam.xml"
	else
		# regular
		${BASE_CMD}
	fi

	popd
done