kopia lustrzana https://github.com/kartoza/docker-postgis
Add option to run python scripts in entrypoint (#459)
* add option to also run python scriptspull/461/head
rodzic
8d5482c134
commit
249de77ce6
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Ładowanie…
Reference in New Issue