Skip to content

Commit 6c60c3e

Browse files
committed
template refactoring ...
1 parent cca3f1b commit 6c60c3e

File tree

23 files changed

+177
-44
lines changed

23 files changed

+177
-44
lines changed

10-2.5/Dockerfile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,12 @@ ENV POSTGIS_MAJOR 2.5
66
ENV POSTGIS_VERSION 2.5.5+dfsg-1.pgdg90+2
77

88
RUN apt-get update \
9+
\
10+
# buildx debug info
11+
&& uname -a \
12+
&& uname -m \
13+
&& lscpu \
14+
\
915
&& apt-cache showpkg postgresql-$PG_MAJOR-postgis-$POSTGIS_MAJOR \
1016
&& apt-get install -y --no-install-recommends \
1117
# ca-certificates: for accessing remote raster files;

10-2.5/alpine/Dockerfile

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,11 +90,20 @@ RUN set -eux \
9090
&& make -j$(nproc) \
9191
&& make install \
9292
\
93+
# buildx platform check for debug.
94+
&& uname -a \
95+
&& uname -m \
96+
&& cat /proc/cpuinfo \
97+
\
9398
# regress check
9499
&& mkdir /tempdb \
95100
&& chown -R postgres:postgres /tempdb \
96101
&& su postgres -c 'pg_ctl -D /tempdb init' \
97-
&& su postgres -c 'pg_ctl -D /tempdb start' \
102+
# testing with jit=off , huge_pages=off ---> for the buildx/qemu workflow
103+
&& su postgres -c 'pg_ctl -o "--huge_pages=off" -o "--jit=off" -D /tempdb start' \
104+
&& su postgres -c 'psql -c "SHOW JIT;"' \
105+
&& su postgres -c 'psql -c "SHOW HUGE_PAGES;"' \
106+
\
98107
&& cd regress \
99108
&& make -j$(nproc) check RUNTESTFLAGS=--extension PGUSER=postgres \
100109
#&& make -j$(nproc) check RUNTESTFLAGS=--dumprestore PGUSER=postgres \

10-3.2/Dockerfile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,12 @@ ENV POSTGIS_MAJOR 3
66
ENV POSTGIS_VERSION 3.2.3+dfsg-1.pgdg110+1
77

88
RUN apt-get update \
9+
\
10+
# buildx debug info
11+
&& uname -a \
12+
&& uname -m \
13+
&& lscpu \
14+
\
915
&& apt-cache showpkg postgresql-$PG_MAJOR-postgis-$POSTGIS_MAJOR \
1016
&& apt-get install -y --no-install-recommends \
1117
# ca-certificates: for accessing remote raster files;

10-3.2/alpine/Dockerfile

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,11 +90,20 @@ RUN set -eux \
9090
&& make -j$(nproc) \
9191
&& make install \
9292
\
93+
# buildx platform check for debug.
94+
&& uname -a \
95+
&& uname -m \
96+
&& cat /proc/cpuinfo \
97+
\
9398
# regress check
9499
&& mkdir /tempdb \
95100
&& chown -R postgres:postgres /tempdb \
96101
&& su postgres -c 'pg_ctl -D /tempdb init' \
97-
&& su postgres -c 'pg_ctl -D /tempdb start' \
102+
# testing with jit=off , huge_pages=off ---> for the buildx/qemu workflow
103+
&& su postgres -c 'pg_ctl -o "--huge_pages=off" -o "--jit=off" -D /tempdb start' \
104+
&& su postgres -c 'psql -c "SHOW JIT;"' \
105+
&& su postgres -c 'psql -c "SHOW HUGE_PAGES;"' \
106+
\
98107
&& cd regress \
99108
&& make -j$(nproc) check RUNTESTFLAGS=--extension PGUSER=postgres \
100109
#&& make -j$(nproc) check RUNTESTFLAGS=--dumprestore PGUSER=postgres \

11-2.5/Dockerfile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,12 @@ ENV POSTGIS_MAJOR 2.5
66
ENV POSTGIS_VERSION 2.5.5+dfsg-1.pgdg90+2
77

88
RUN apt-get update \
9+
\
10+
# buildx debug info
11+
&& uname -a \
12+
&& uname -m \
13+
&& lscpu \
14+
\
915
&& apt-cache showpkg postgresql-$PG_MAJOR-postgis-$POSTGIS_MAJOR \
1016
&& apt-get install -y --no-install-recommends \
1117
# ca-certificates: for accessing remote raster files;

11-2.5/alpine/Dockerfile

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,11 +90,20 @@ RUN set -eux \
9090
&& make -j$(nproc) \
9191
&& make install \
9292
\
93+
# buildx platform check for debug.
94+
&& uname -a \
95+
&& uname -m \
96+
&& cat /proc/cpuinfo \
97+
\
9398
# regress check
9499
&& mkdir /tempdb \
95100
&& chown -R postgres:postgres /tempdb \
96101
&& su postgres -c 'pg_ctl -D /tempdb init' \
97-
&& su postgres -c 'pg_ctl -D /tempdb start' \
102+
# testing with jit=off , huge_pages=off ---> for the buildx/qemu workflow
103+
&& su postgres -c 'pg_ctl -o "--huge_pages=off" -o "--jit=off" -D /tempdb start' \
104+
&& su postgres -c 'psql -c "SHOW JIT;"' \
105+
&& su postgres -c 'psql -c "SHOW HUGE_PAGES;"' \
106+
\
98107
&& cd regress \
99108
&& make -j$(nproc) check RUNTESTFLAGS=--extension PGUSER=postgres \
100109
#&& make -j$(nproc) check RUNTESTFLAGS=--dumprestore PGUSER=postgres \

11-3.2/Dockerfile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,12 @@ ENV POSTGIS_MAJOR 3
66
ENV POSTGIS_VERSION 3.2.3+dfsg-1.pgdg110+1
77

88
RUN apt-get update \
9+
\
10+
# buildx debug info
11+
&& uname -a \
12+
&& uname -m \
13+
&& lscpu \
14+
\
915
&& apt-cache showpkg postgresql-$PG_MAJOR-postgis-$POSTGIS_MAJOR \
1016
&& apt-get install -y --no-install-recommends \
1117
# ca-certificates: for accessing remote raster files;

11-3.2/alpine/Dockerfile

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,11 +90,20 @@ RUN set -eux \
9090
&& make -j$(nproc) \
9191
&& make install \
9292
\
93+
# buildx platform check for debug.
94+
&& uname -a \
95+
&& uname -m \
96+
&& cat /proc/cpuinfo \
97+
\
9398
# regress check
9499
&& mkdir /tempdb \
95100
&& chown -R postgres:postgres /tempdb \
96101
&& su postgres -c 'pg_ctl -D /tempdb init' \
97-
&& su postgres -c 'pg_ctl -D /tempdb start' \
102+
# testing with jit=off , huge_pages=off ---> for the buildx/qemu workflow
103+
&& su postgres -c 'pg_ctl -o "--huge_pages=off" -o "--jit=off" -D /tempdb start' \
104+
&& su postgres -c 'psql -c "SHOW JIT;"' \
105+
&& su postgres -c 'psql -c "SHOW HUGE_PAGES;"' \
106+
\
98107
&& cd regress \
99108
&& make -j$(nproc) check RUNTESTFLAGS=--extension PGUSER=postgres \
100109
#&& make -j$(nproc) check RUNTESTFLAGS=--dumprestore PGUSER=postgres \

12-3.2/Dockerfile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,12 @@ ENV POSTGIS_MAJOR 3
66
ENV POSTGIS_VERSION 3.2.3+dfsg-1.pgdg110+1
77

88
RUN apt-get update \
9+
\
10+
# buildx debug info
11+
&& uname -a \
12+
&& uname -m \
13+
&& lscpu \
14+
\
915
&& apt-cache showpkg postgresql-$PG_MAJOR-postgis-$POSTGIS_MAJOR \
1016
&& apt-get install -y --no-install-recommends \
1117
# ca-certificates: for accessing remote raster files;

12-3.2/alpine/Dockerfile

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,11 +90,20 @@ RUN set -eux \
9090
&& make -j$(nproc) \
9191
&& make install \
9292
\
93+
# buildx platform check for debug.
94+
&& uname -a \
95+
&& uname -m \
96+
&& cat /proc/cpuinfo \
97+
\
9398
# regress check
9499
&& mkdir /tempdb \
95100
&& chown -R postgres:postgres /tempdb \
96101
&& su postgres -c 'pg_ctl -D /tempdb init' \
97-
&& su postgres -c 'pg_ctl -D /tempdb start' \
102+
# testing with jit=off , huge_pages=off ---> for the buildx/qemu workflow
103+
&& su postgres -c 'pg_ctl -o "--huge_pages=off" -o "--jit=off" -D /tempdb start' \
104+
&& su postgres -c 'psql -c "SHOW JIT;"' \
105+
&& su postgres -c 'psql -c "SHOW HUGE_PAGES;"' \
106+
\
98107
&& cd regress \
99108
&& make -j$(nproc) check RUNTESTFLAGS=--extension PGUSER=postgres \
100109
#&& make -j$(nproc) check RUNTESTFLAGS=--dumprestore PGUSER=postgres \

0 commit comments

Comments
 (0)