Skip to content

Commit

Permalink
Add option to run python scripts in entrypoint (#459)
Browse files Browse the repository at this point in the history
* add option to also run python scripts
  • Loading branch information
NyakudyaA committed Oct 23, 2023
1 parent 8d5482c commit 249de77
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions scripts/env-data.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 249de77

Please sign in to comment.