mirror of
https://github.com/postgrespro/pg_probackup.git
synced 2024-11-25 09:01:48 +02:00
38 lines
766 B
Bash
Executable File
38 lines
766 B
Bash
Executable File
#!/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
|
|
|
|
if [ -z ${PTRACK_PATCH_PG_BRANCH+x} ]; then
|
|
PTRACK_PATCH_PG_BRANCH=OFF
|
|
fi
|
|
|
|
if [ -z ${PGPROBACKUP_GDB+x} ]; then
|
|
PGPROBACKUP_GDB=ON
|
|
fi
|
|
|
|
echo PG_VERSION=${PG_VERSION}
|
|
echo PG_BRANCH=${PG_BRANCH}
|
|
echo MODE=${MODE}
|
|
echo PTRACK_PATCH_PG_BRANCH=${PTRACK_PATCH_PG_BRANCH}
|
|
echo PGPROBACKUP_GDB=${PGPROBACKUP_GDB}
|
|
|
|
sed \
|
|
-e 's/${PG_VERSION}/'${PG_VERSION}/g \
|
|
-e 's/${PG_BRANCH}/'${PG_BRANCH}/g \
|
|
-e 's/${MODE}/'${MODE}/g \
|
|
-e 's/${PTRACK_PATCH_PG_BRANCH}/'${PTRACK_PATCH_PG_BRANCH}/g \
|
|
-e 's/${PGPROBACKUP_GDB}/'${PGPROBACKUP_GDB}/g \
|
|
Dockerfile.in > Dockerfile
|