Skip to content

Commit 02049e1

Browse files
committed
Pass USE_TPCDS env variable to Docker container
1 parent 18f5a38 commit 02049e1

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

Diff for: Dockerfile.tmpl

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,4 +35,4 @@ ADD . /pg/testdir
3535
WORKDIR /pg/testdir
3636

3737
USER postgres
38-
ENTRYPOINT LEVEL=${LEVEL} /run.sh
38+
ENTRYPOINT LEVEL=${LEVEL} USE_TPCDS=${USE_TPCDS} /run.sh

Diff for: mk_dockerfile.sh

+6
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,16 @@ if [ -z ${LEVEL+x} ]; then
99
LEVEL=scan-build
1010
fi
1111

12+
if [ -z ${USE_TPCDS+x} ]; then
13+
USE_TPCDS=0
14+
fi
15+
1216
echo PG_VERSION=${PG_VERSION}
1317
echo LEVEL=${LEVEL}
18+
echo USE_TPCDS=${USE_TPCDS}
1419

1520
sed \
1621
-e 's/${PG_VERSION}/'${PG_VERSION}/g \
1722
-e 's/${LEVEL}/'${LEVEL}/g \
23+
-e 's/${USE_TPCDS}/'${USE_TPCDS}/g \
1824
Dockerfile.tmpl > Dockerfile

0 commit comments

Comments
 (0)