Skip to content

Commit 67144b5

Browse files
committed
Make entrypoint script output more useful
1 parent 25843e7 commit 67144b5

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

entrypoint.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,18 @@
11
#!/bin/sh
22

3+
set -eu
4+
35
# add duckdb cli to path
46
export PATH='/root/.duckdb/cli/latest':$PATH
57

68
# activate python virtual environment
79
. venv/bin/activate
810

11+
echo "Extracting feature layers from $1"
912
python process_osm.py "$@"
1013

1114
for input_file in out/*.parquet; do
15+
echo "Sorting and compressing $input_file"
1216
output_file="out/$(basename -s .parquet $input_file)-optimized.parquet"
1317
./postprocess.sh $input_file $output_file
1418
mv $output_file $input_file

postprocess.sh

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
#!/bin/sh
22

3-
echo $@
4-
53
duckdb << EOF | cat # workaround for https://github.com/duckdb/duckdb/issues/21253
64
LOAD SPATIAL;
75

0 commit comments

Comments
 (0)