2020-04-01 14:48:51 +02:00
|
|
|
#!/usr/bin/env sh
|
|
|
|
|
|
|
|
if [ -z ${PG_VERSION+x} ]; then
|
|
|
|
echo PG_VERSION is not set!
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [ -z ${PG_BRANCH+x} ]; then
|
|
|
|
echo PG_BRANCH is not set!
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [ -z ${MODE+x} ]; then
|
|
|
|
MODE=basic
|
|
|
|
fi
|
|
|
|
|
2021-10-16 22:30:27 +02:00
|
|
|
if [ -z ${PTRACK_PATCH_PG_BRANCH+x} ]; then
|
|
|
|
PTRACK_PATCH_PG_BRANCH=off
|
2021-08-13 14:05:42 +02:00
|
|
|
fi
|
|
|
|
|
2021-08-13 01:59:20 +02:00
|
|
|
if [ -z ${PGPROBACKUP_GDB+x} ]; then
|
|
|
|
PGPROBACKUP_GDB=ON
|
|
|
|
fi
|
|
|
|
|
2020-04-01 14:48:51 +02:00
|
|
|
echo PG_VERSION=${PG_VERSION}
|
|
|
|
echo PG_BRANCH=${PG_BRANCH}
|
|
|
|
echo MODE=${MODE}
|
2021-10-16 22:30:27 +02:00
|
|
|
echo PTRACK_PATCH_PG_BRANCH=${PTRACK_PATCH_PG_BRANCH}
|
2021-08-13 01:59:20 +02:00
|
|
|
echo PGPROBACKUP_GDB=${PGPROBACKUP_GDB}
|
2020-04-01 14:48:51 +02:00
|
|
|
|
|
|
|
sed \
|
|
|
|
-e 's/${PG_VERSION}/'${PG_VERSION}/g \
|
|
|
|
-e 's/${PG_BRANCH}/'${PG_BRANCH}/g \
|
|
|
|
-e 's/${MODE}/'${MODE}/g \
|
2021-10-16 22:30:27 +02:00
|
|
|
-e 's/${PTRACK_PATCH_PG_BRANCH}/'${PTRACK_PATCH_PG_BRANCH}/g \
|
2021-08-13 01:59:20 +02:00
|
|
|
-e 's/${PGPROBACKUP_GDB}/'${PGPROBACKUP_GDB}/g \
|
2020-04-01 14:48:51 +02:00
|
|
|
Dockerfile.in > Dockerfile
|