1
0
mirror of https://github.com/docker-library/postgres.git synced 2025-07-28 10:42:06 +03:00

Add .sql.xz support to docker-entrypoint-initdb.d

xzcat is provided by busybox in alpine
This commit is contained in:
Joe Ferguson
2020-02-17 15:38:43 -08:00
parent ba0e45ba98
commit 4f70bf2b81
17 changed files with 53 additions and 18 deletions

View File

@ -164,6 +164,7 @@ docker_process_init_files() {
;;
*.sql) echo "$0: running $f"; docker_process_sql -f "$f"; echo ;;
*.sql.gz) echo "$0: running $f"; gunzip -c "$f" | docker_process_sql; echo ;;
*.sql.xz) echo "$0: running $f"; xzcat "$f" | docker_process_sql; echo ;;
*) echo "$0: ignoring $f" ;;
esac
echo