diff --git a/README.md b/README.md index 58fd8d31..522c7c78 100644 --- a/README.md +++ b/README.md @@ -526,7 +526,7 @@ By default, the lockfile is generated in `/docker-entrypoint-initdb.d` but it ca -v /data:/data ``` -Currently, you can pass `.sql`, `.sql.gz` and `.sh` files as mounted volumes. +Currently, you can pass `.sql`, `.sql.gz`, `.py` and `.sh` files as mounted volumes. ```shell docker run -d -v `pwd`/setup-db.sql:/docker-entrypoint-initdb.d/setup-db.sql kartoza/postgis diff --git a/scripts/env-data.sh b/scripts/env-data.sh index c925cbc7..a1c6ff59 100644 --- a/scripts/env-data.sh +++ b/scripts/env-data.sh @@ -474,6 +474,7 @@ function entry_point_script { done fi;; *.sh) echo "$0: running $f"; . "$f" || true;; + *.py) echo "$0: running $f"; python3 "$f" || true;; *) echo "$0: ignoring $f" ;; esac echo