Skip to content

Commit 9e106bf

Browse files
authoredMay 11, 2023
Pub: 15.3,14.8,13.11,12.15, and more. [release] (CircleCI-Public#84)
1 parent 6fb5ff5 commit 9e106bf

File tree

13 files changed

+646
-9
lines changed

13 files changed

+646
-9
lines changed
 

‎11.20/Dockerfile

+102
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,102 @@
1+
# vim:set ft=dockerfile:
2+
3+
# Do not edit individual Dockerfiles manually. Instead, please make changes to the Dockerfile.template, which will be used by the build script to generate Dockerfiles.
4+
5+
# By policy, the base image tag should be a quarterly tag unless there's a
6+
# specific reason to use a different one. This means January, April, July, or
7+
# October.
8+
9+
FROM cimg/base:2023.04
10+
11+
LABEL maintainer="Community & Partner Engineering Team <community-partner@circleci.com>"
12+
13+
ENV PG_VER=11.20
14+
ENV PG_MAJOR=11
15+
ENV POSTGRES_HOST_AUTH_METHOD=trust
16+
ENV PATH /usr/lib/postgresql/$PG_MAJOR/bin:$PATH
17+
ENV PGDATA /var/lib/postgresql/data
18+
ENV POSTGRES_DB=circle_test
19+
20+
USER root
21+
RUN apt-get update && apt-get install -y --no-install-recommends \
22+
clang \
23+
dirmngr \
24+
gnupg \
25+
gosu \
26+
libclang-dev \
27+
libicu-dev \
28+
libipc-run-perl \
29+
libkrb5-dev \
30+
libldap2-dev \
31+
liblz4-dev \
32+
libpam-dev \
33+
libperl-dev \
34+
libpython3-dev \
35+
libreadline-dev \
36+
libssl-dev \
37+
libxml2-dev \
38+
libxslt1-dev \
39+
llvm \
40+
llvm-dev \
41+
locales \
42+
postgresql-server-dev-all \
43+
python3-dev \
44+
tcl-dev \
45+
uuid-dev \
46+
&& \
47+
rm -rf /var/lib/apt/lists/* && \
48+
localedef -i en_US -c -f UTF-8 -A /usr/share/locale/locale.alias en_US.UTF-8 && \
49+
curl -sSL "https://ftp.postgresql.org/pub/source/v${PG_VER}/postgresql-${PG_VER}.tar.gz" | tar -xz && \
50+
cd postgresql-${PG_VER} && \
51+
./configure \
52+
--prefix=/usr/lib/postgresql/$PG_MAJOR \
53+
--enable-integer-datetimes \
54+
--enable-thread-safety \
55+
--enable-tap-tests \
56+
--with-uuid=e2fs \
57+
--with-gnu-ld \
58+
--with-pgport=5432 \
59+
--with-system-tzdata=/usr/share/zoneinfo \
60+
--with-includes=/usr/local/include \
61+
--with-libraries=/usr/local/lib \
62+
--with-krb5 \
63+
--with-gssapi \
64+
--with-ldap \
65+
--with-pam \
66+
--with-tcl \
67+
--with-perl \
68+
--with-python \
69+
--with-openssl \
70+
--with-libxml \
71+
--with-libxslt \
72+
--with-icu \
73+
--with-llvm \
74+
--with-lz4 \
75+
&& \
76+
# we can change from world to world-bin in newer releases
77+
make world && \
78+
make install-world
79+
80+
# clones pg_cron extension for local use, this is not available wihout installing
81+
# run this as a separate layer so it caches better
82+
RUN git clone https://github.com/citusdata/pg_cron.git /pg_cron && \
83+
cd /pg_cron && make && PATH=$PATH make install
84+
85+
RUN mkdir /docker-entrypoint-initdb.d
86+
87+
COPY pg_cron.sh /docker-entrypoint-initdb.d/
88+
COPY custom-postgresql.conf /etc/postgresql/custom-postgresql.conf
89+
COPY docker-entrypoint.sh /usr/local/bin/
90+
91+
RUN ln -s usr/local/bin/docker-entrypoint.sh / # backwards compat
92+
93+
RUN chmod +x /usr/local/bin/docker-entrypoint.sh /docker-entrypoint-initdb.d/pg_cron.sh
94+
RUN mkdir -p /var/lib/postgresql && \
95+
chown -R postgres:postgres /var/lib/postgresql && \
96+
chown -R postgres:postgres /usr/local/bin/docker-entrypoint.sh && \
97+
rm -rf /pg_cron
98+
99+
ENTRYPOINT ["docker-entrypoint.sh"]
100+
STOPSIGNAL SIGINT
101+
EXPOSE 5432
102+
CMD ["postgres"]

‎11.20/postgis/Dockerfile

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# vim:set ft=dockerfile:
2+
3+
FROM cimg/postgres:11.20
4+
5+
LABEL maintainer="Community & Partner Engineering Team <community-partner@circleci.com>"
6+
7+
ENV POSTGIS_VER=3.2.4
8+
RUN apt-get update && apt-get install -y --no-install-recommends \
9+
libgdal-dev \
10+
libgeos-dev \
11+
libjson-c-dev \
12+
libmysqlclient-dev \
13+
libproj-dev \
14+
libprotobuf-c-dev \
15+
libxml2-dev \
16+
protobuf-c-compiler \
17+
&& \
18+
rm -rf /var/lib/apt/lists/* && \
19+
curl -sSL "https://download.osgeo.org/postgis/source/postgis-${POSTGIS_VER}.tar.gz" | tar -xz && \
20+
cd postgis-${POSTGIS_VER} && \
21+
./configure && \
22+
make && \
23+
make install

‎12.15/Dockerfile

+102
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,102 @@
1+
# vim:set ft=dockerfile:
2+
3+
# Do not edit individual Dockerfiles manually. Instead, please make changes to the Dockerfile.template, which will be used by the build script to generate Dockerfiles.
4+
5+
# By policy, the base image tag should be a quarterly tag unless there's a
6+
# specific reason to use a different one. This means January, April, July, or
7+
# October.
8+
9+
FROM cimg/base:2023.04
10+
11+
LABEL maintainer="Community & Partner Engineering Team <community-partner@circleci.com>"
12+
13+
ENV PG_VER=12.15
14+
ENV PG_MAJOR=12
15+
ENV POSTGRES_HOST_AUTH_METHOD=trust
16+
ENV PATH /usr/lib/postgresql/$PG_MAJOR/bin:$PATH
17+
ENV PGDATA /var/lib/postgresql/data
18+
ENV POSTGRES_DB=circle_test
19+
20+
USER root
21+
RUN apt-get update && apt-get install -y --no-install-recommends \
22+
clang \
23+
dirmngr \
24+
gnupg \
25+
gosu \
26+
libclang-dev \
27+
libicu-dev \
28+
libipc-run-perl \
29+
libkrb5-dev \
30+
libldap2-dev \
31+
liblz4-dev \
32+
libpam-dev \
33+
libperl-dev \
34+
libpython3-dev \
35+
libreadline-dev \
36+
libssl-dev \
37+
libxml2-dev \
38+
libxslt1-dev \
39+
llvm \
40+
llvm-dev \
41+
locales \
42+
postgresql-server-dev-all \
43+
python3-dev \
44+
tcl-dev \
45+
uuid-dev \
46+
&& \
47+
rm -rf /var/lib/apt/lists/* && \
48+
localedef -i en_US -c -f UTF-8 -A /usr/share/locale/locale.alias en_US.UTF-8 && \
49+
curl -sSL "https://ftp.postgresql.org/pub/source/v${PG_VER}/postgresql-${PG_VER}.tar.gz" | tar -xz && \
50+
cd postgresql-${PG_VER} && \
51+
./configure \
52+
--prefix=/usr/lib/postgresql/$PG_MAJOR \
53+
--enable-integer-datetimes \
54+
--enable-thread-safety \
55+
--enable-tap-tests \
56+
--with-uuid=e2fs \
57+
--with-gnu-ld \
58+
--with-pgport=5432 \
59+
--with-system-tzdata=/usr/share/zoneinfo \
60+
--with-includes=/usr/local/include \
61+
--with-libraries=/usr/local/lib \
62+
--with-krb5 \
63+
--with-gssapi \
64+
--with-ldap \
65+
--with-pam \
66+
--with-tcl \
67+
--with-perl \
68+
--with-python \
69+
--with-openssl \
70+
--with-libxml \
71+
--with-libxslt \
72+
--with-icu \
73+
--with-llvm \
74+
--with-lz4 \
75+
&& \
76+
# we can change from world to world-bin in newer releases
77+
make world && \
78+
make install-world
79+
80+
# clones pg_cron extension for local use, this is not available wihout installing
81+
# run this as a separate layer so it caches better
82+
RUN git clone https://github.com/citusdata/pg_cron.git /pg_cron && \
83+
cd /pg_cron && make && PATH=$PATH make install
84+
85+
RUN mkdir /docker-entrypoint-initdb.d
86+
87+
COPY pg_cron.sh /docker-entrypoint-initdb.d/
88+
COPY custom-postgresql.conf /etc/postgresql/custom-postgresql.conf
89+
COPY docker-entrypoint.sh /usr/local/bin/
90+
91+
RUN ln -s usr/local/bin/docker-entrypoint.sh / # backwards compat
92+
93+
RUN chmod +x /usr/local/bin/docker-entrypoint.sh /docker-entrypoint-initdb.d/pg_cron.sh
94+
RUN mkdir -p /var/lib/postgresql && \
95+
chown -R postgres:postgres /var/lib/postgresql && \
96+
chown -R postgres:postgres /usr/local/bin/docker-entrypoint.sh && \
97+
rm -rf /pg_cron
98+
99+
ENTRYPOINT ["docker-entrypoint.sh"]
100+
STOPSIGNAL SIGINT
101+
EXPOSE 5432
102+
CMD ["postgres"]

‎12.15/postgis/Dockerfile

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# vim:set ft=dockerfile:
2+
3+
FROM cimg/postgres:12.15
4+
5+
LABEL maintainer="Community & Partner Engineering Team <community-partner@circleci.com>"
6+
7+
ENV POSTGIS_VER=3.2.4
8+
RUN apt-get update && apt-get install -y --no-install-recommends \
9+
libgdal-dev \
10+
libgeos-dev \
11+
libjson-c-dev \
12+
libmysqlclient-dev \
13+
libproj-dev \
14+
libprotobuf-c-dev \
15+
libxml2-dev \
16+
protobuf-c-compiler \
17+
&& \
18+
rm -rf /var/lib/apt/lists/* && \
19+
curl -sSL "https://download.osgeo.org/postgis/source/postgis-${POSTGIS_VER}.tar.gz" | tar -xz && \
20+
cd postgis-${POSTGIS_VER} && \
21+
./configure && \
22+
make && \
23+
make install

‎13.11/Dockerfile

+102
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,102 @@
1+
# vim:set ft=dockerfile:
2+
3+
# Do not edit individual Dockerfiles manually. Instead, please make changes to the Dockerfile.template, which will be used by the build script to generate Dockerfiles.
4+
5+
# By policy, the base image tag should be a quarterly tag unless there's a
6+
# specific reason to use a different one. This means January, April, July, or
7+
# October.
8+
9+
FROM cimg/base:2023.04
10+
11+
LABEL maintainer="Community & Partner Engineering Team <community-partner@circleci.com>"
12+
13+
ENV PG_VER=13.11
14+
ENV PG_MAJOR=13
15+
ENV POSTGRES_HOST_AUTH_METHOD=trust
16+
ENV PATH /usr/lib/postgresql/$PG_MAJOR/bin:$PATH
17+
ENV PGDATA /var/lib/postgresql/data
18+
ENV POSTGRES_DB=circle_test
19+
20+
USER root
21+
RUN apt-get update && apt-get install -y --no-install-recommends \
22+
clang \
23+
dirmngr \
24+
gnupg \
25+
gosu \
26+
libclang-dev \
27+
libicu-dev \
28+
libipc-run-perl \
29+
libkrb5-dev \
30+
libldap2-dev \
31+
liblz4-dev \
32+
libpam-dev \
33+
libperl-dev \
34+
libpython3-dev \
35+
libreadline-dev \
36+
libssl-dev \
37+
libxml2-dev \
38+
libxslt1-dev \
39+
llvm \
40+
llvm-dev \
41+
locales \
42+
postgresql-server-dev-all \
43+
python3-dev \
44+
tcl-dev \
45+
uuid-dev \
46+
&& \
47+
rm -rf /var/lib/apt/lists/* && \
48+
localedef -i en_US -c -f UTF-8 -A /usr/share/locale/locale.alias en_US.UTF-8 && \
49+
curl -sSL "https://ftp.postgresql.org/pub/source/v${PG_VER}/postgresql-${PG_VER}.tar.gz" | tar -xz && \
50+
cd postgresql-${PG_VER} && \
51+
./configure \
52+
--prefix=/usr/lib/postgresql/$PG_MAJOR \
53+
--enable-integer-datetimes \
54+
--enable-thread-safety \
55+
--enable-tap-tests \
56+
--with-uuid=e2fs \
57+
--with-gnu-ld \
58+
--with-pgport=5432 \
59+
--with-system-tzdata=/usr/share/zoneinfo \
60+
--with-includes=/usr/local/include \
61+
--with-libraries=/usr/local/lib \
62+
--with-krb5 \
63+
--with-gssapi \
64+
--with-ldap \
65+
--with-pam \
66+
--with-tcl \
67+
--with-perl \
68+
--with-python \
69+
--with-openssl \
70+
--with-libxml \
71+
--with-libxslt \
72+
--with-icu \
73+
--with-llvm \
74+
--with-lz4 \
75+
&& \
76+
# we can change from world to world-bin in newer releases
77+
make world && \
78+
make install-world
79+
80+
# clones pg_cron extension for local use, this is not available wihout installing
81+
# run this as a separate layer so it caches better
82+
RUN git clone https://github.com/citusdata/pg_cron.git /pg_cron && \
83+
cd /pg_cron && make && PATH=$PATH make install
84+
85+
RUN mkdir /docker-entrypoint-initdb.d
86+
87+
COPY pg_cron.sh /docker-entrypoint-initdb.d/
88+
COPY custom-postgresql.conf /etc/postgresql/custom-postgresql.conf
89+
COPY docker-entrypoint.sh /usr/local/bin/
90+
91+
RUN ln -s usr/local/bin/docker-entrypoint.sh / # backwards compat
92+
93+
RUN chmod +x /usr/local/bin/docker-entrypoint.sh /docker-entrypoint-initdb.d/pg_cron.sh
94+
RUN mkdir -p /var/lib/postgresql && \
95+
chown -R postgres:postgres /var/lib/postgresql && \
96+
chown -R postgres:postgres /usr/local/bin/docker-entrypoint.sh && \
97+
rm -rf /pg_cron
98+
99+
ENTRYPOINT ["docker-entrypoint.sh"]
100+
STOPSIGNAL SIGINT
101+
EXPOSE 5432
102+
CMD ["postgres"]

‎13.11/postgis/Dockerfile

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# vim:set ft=dockerfile:
2+
3+
FROM cimg/postgres:13.11
4+
5+
LABEL maintainer="Community & Partner Engineering Team <community-partner@circleci.com>"
6+
7+
ENV POSTGIS_VER=3.2.4
8+
RUN apt-get update && apt-get install -y --no-install-recommends \
9+
libgdal-dev \
10+
libgeos-dev \
11+
libjson-c-dev \
12+
libmysqlclient-dev \
13+
libproj-dev \
14+
libprotobuf-c-dev \
15+
libxml2-dev \
16+
protobuf-c-compiler \
17+
&& \
18+
rm -rf /var/lib/apt/lists/* && \
19+
curl -sSL "https://download.osgeo.org/postgis/source/postgis-${POSTGIS_VER}.tar.gz" | tar -xz && \
20+
cd postgis-${POSTGIS_VER} && \
21+
./configure && \
22+
make && \
23+
make install

‎14.8/Dockerfile

+102
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,102 @@
1+
# vim:set ft=dockerfile:
2+
3+
# Do not edit individual Dockerfiles manually. Instead, please make changes to the Dockerfile.template, which will be used by the build script to generate Dockerfiles.
4+
5+
# By policy, the base image tag should be a quarterly tag unless there's a
6+
# specific reason to use a different one. This means January, April, July, or
7+
# October.
8+
9+
FROM cimg/base:2023.04
10+
11+
LABEL maintainer="Community & Partner Engineering Team <community-partner@circleci.com>"
12+
13+
ENV PG_VER=14.8
14+
ENV PG_MAJOR=14
15+
ENV POSTGRES_HOST_AUTH_METHOD=trust
16+
ENV PATH /usr/lib/postgresql/$PG_MAJOR/bin:$PATH
17+
ENV PGDATA /var/lib/postgresql/data
18+
ENV POSTGRES_DB=circle_test
19+
20+
USER root
21+
RUN apt-get update && apt-get install -y --no-install-recommends \
22+
clang \
23+
dirmngr \
24+
gnupg \
25+
gosu \
26+
libclang-dev \
27+
libicu-dev \
28+
libipc-run-perl \
29+
libkrb5-dev \
30+
libldap2-dev \
31+
liblz4-dev \
32+
libpam-dev \
33+
libperl-dev \
34+
libpython3-dev \
35+
libreadline-dev \
36+
libssl-dev \
37+
libxml2-dev \
38+
libxslt1-dev \
39+
llvm \
40+
llvm-dev \
41+
locales \
42+
postgresql-server-dev-all \
43+
python3-dev \
44+
tcl-dev \
45+
uuid-dev \
46+
&& \
47+
rm -rf /var/lib/apt/lists/* && \
48+
localedef -i en_US -c -f UTF-8 -A /usr/share/locale/locale.alias en_US.UTF-8 && \
49+
curl -sSL "https://ftp.postgresql.org/pub/source/v${PG_VER}/postgresql-${PG_VER}.tar.gz" | tar -xz && \
50+
cd postgresql-${PG_VER} && \
51+
./configure \
52+
--prefix=/usr/lib/postgresql/$PG_MAJOR \
53+
--enable-integer-datetimes \
54+
--enable-thread-safety \
55+
--enable-tap-tests \
56+
--with-uuid=e2fs \
57+
--with-gnu-ld \
58+
--with-pgport=5432 \
59+
--with-system-tzdata=/usr/share/zoneinfo \
60+
--with-includes=/usr/local/include \
61+
--with-libraries=/usr/local/lib \
62+
--with-krb5 \
63+
--with-gssapi \
64+
--with-ldap \
65+
--with-pam \
66+
--with-tcl \
67+
--with-perl \
68+
--with-python \
69+
--with-openssl \
70+
--with-libxml \
71+
--with-libxslt \
72+
--with-icu \
73+
--with-llvm \
74+
--with-lz4 \
75+
&& \
76+
# we can change from world to world-bin in newer releases
77+
make world && \
78+
make install-world
79+
80+
# clones pg_cron extension for local use, this is not available wihout installing
81+
# run this as a separate layer so it caches better
82+
RUN git clone https://github.com/citusdata/pg_cron.git /pg_cron && \
83+
cd /pg_cron && make && PATH=$PATH make install
84+
85+
RUN mkdir /docker-entrypoint-initdb.d
86+
87+
COPY pg_cron.sh /docker-entrypoint-initdb.d/
88+
COPY custom-postgresql.conf /etc/postgresql/custom-postgresql.conf
89+
COPY docker-entrypoint.sh /usr/local/bin/
90+
91+
RUN ln -s usr/local/bin/docker-entrypoint.sh / # backwards compat
92+
93+
RUN chmod +x /usr/local/bin/docker-entrypoint.sh /docker-entrypoint-initdb.d/pg_cron.sh
94+
RUN mkdir -p /var/lib/postgresql && \
95+
chown -R postgres:postgres /var/lib/postgresql && \
96+
chown -R postgres:postgres /usr/local/bin/docker-entrypoint.sh && \
97+
rm -rf /pg_cron
98+
99+
ENTRYPOINT ["docker-entrypoint.sh"]
100+
STOPSIGNAL SIGINT
101+
EXPOSE 5432
102+
CMD ["postgres"]

‎14.8/postgis/Dockerfile

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# vim:set ft=dockerfile:
2+
3+
FROM cimg/postgres:14.8
4+
5+
LABEL maintainer="Community & Partner Engineering Team <community-partner@circleci.com>"
6+
7+
ENV POSTGIS_VER=3.2.4
8+
RUN apt-get update && apt-get install -y --no-install-recommends \
9+
libgdal-dev \
10+
libgeos-dev \
11+
libjson-c-dev \
12+
libmysqlclient-dev \
13+
libproj-dev \
14+
libprotobuf-c-dev \
15+
libxml2-dev \
16+
protobuf-c-compiler \
17+
&& \
18+
rm -rf /var/lib/apt/lists/* && \
19+
curl -sSL "https://download.osgeo.org/postgis/source/postgis-${POSTGIS_VER}.tar.gz" | tar -xz && \
20+
cd postgis-${POSTGIS_VER} && \
21+
./configure && \
22+
make && \
23+
make install

‎15.3/Dockerfile

+102
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,102 @@
1+
# vim:set ft=dockerfile:
2+
3+
# Do not edit individual Dockerfiles manually. Instead, please make changes to the Dockerfile.template, which will be used by the build script to generate Dockerfiles.
4+
5+
# By policy, the base image tag should be a quarterly tag unless there's a
6+
# specific reason to use a different one. This means January, April, July, or
7+
# October.
8+
9+
FROM cimg/base:2023.04
10+
11+
LABEL maintainer="Community & Partner Engineering Team <community-partner@circleci.com>"
12+
13+
ENV PG_VER=15.3
14+
ENV PG_MAJOR=15
15+
ENV POSTGRES_HOST_AUTH_METHOD=trust
16+
ENV PATH /usr/lib/postgresql/$PG_MAJOR/bin:$PATH
17+
ENV PGDATA /var/lib/postgresql/data
18+
ENV POSTGRES_DB=circle_test
19+
20+
USER root
21+
RUN apt-get update && apt-get install -y --no-install-recommends \
22+
clang \
23+
dirmngr \
24+
gnupg \
25+
gosu \
26+
libclang-dev \
27+
libicu-dev \
28+
libipc-run-perl \
29+
libkrb5-dev \
30+
libldap2-dev \
31+
liblz4-dev \
32+
libpam-dev \
33+
libperl-dev \
34+
libpython3-dev \
35+
libreadline-dev \
36+
libssl-dev \
37+
libxml2-dev \
38+
libxslt1-dev \
39+
llvm \
40+
llvm-dev \
41+
locales \
42+
postgresql-server-dev-all \
43+
python3-dev \
44+
tcl-dev \
45+
uuid-dev \
46+
&& \
47+
rm -rf /var/lib/apt/lists/* && \
48+
localedef -i en_US -c -f UTF-8 -A /usr/share/locale/locale.alias en_US.UTF-8 && \
49+
curl -sSL "https://ftp.postgresql.org/pub/source/v${PG_VER}/postgresql-${PG_VER}.tar.gz" | tar -xz && \
50+
cd postgresql-${PG_VER} && \
51+
./configure \
52+
--prefix=/usr/lib/postgresql/$PG_MAJOR \
53+
--enable-integer-datetimes \
54+
--enable-thread-safety \
55+
--enable-tap-tests \
56+
--with-uuid=e2fs \
57+
--with-gnu-ld \
58+
--with-pgport=5432 \
59+
--with-system-tzdata=/usr/share/zoneinfo \
60+
--with-includes=/usr/local/include \
61+
--with-libraries=/usr/local/lib \
62+
--with-krb5 \
63+
--with-gssapi \
64+
--with-ldap \
65+
--with-pam \
66+
--with-tcl \
67+
--with-perl \
68+
--with-python \
69+
--with-openssl \
70+
--with-libxml \
71+
--with-libxslt \
72+
--with-icu \
73+
--with-llvm \
74+
--with-lz4 \
75+
&& \
76+
# we can change from world to world-bin in newer releases
77+
make world && \
78+
make install-world
79+
80+
# clones pg_cron extension for local use, this is not available wihout installing
81+
# run this as a separate layer so it caches better
82+
RUN git clone https://github.com/citusdata/pg_cron.git /pg_cron && \
83+
cd /pg_cron && make && PATH=$PATH make install
84+
85+
RUN mkdir /docker-entrypoint-initdb.d
86+
87+
COPY pg_cron.sh /docker-entrypoint-initdb.d/
88+
COPY custom-postgresql.conf /etc/postgresql/custom-postgresql.conf
89+
COPY docker-entrypoint.sh /usr/local/bin/
90+
91+
RUN ln -s usr/local/bin/docker-entrypoint.sh / # backwards compat
92+
93+
RUN chmod +x /usr/local/bin/docker-entrypoint.sh /docker-entrypoint-initdb.d/pg_cron.sh
94+
RUN mkdir -p /var/lib/postgresql && \
95+
chown -R postgres:postgres /var/lib/postgresql && \
96+
chown -R postgres:postgres /usr/local/bin/docker-entrypoint.sh && \
97+
rm -rf /pg_cron
98+
99+
ENTRYPOINT ["docker-entrypoint.sh"]
100+
STOPSIGNAL SIGINT
101+
EXPOSE 5432
102+
CMD ["postgres"]

‎15.3/postgis/Dockerfile

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# vim:set ft=dockerfile:
2+
3+
FROM cimg/postgres:15.3
4+
5+
LABEL maintainer="Community & Partner Engineering Team <community-partner@circleci.com>"
6+
7+
ENV POSTGIS_VER=3.2.4
8+
RUN apt-get update && apt-get install -y --no-install-recommends \
9+
libgdal-dev \
10+
libgeos-dev \
11+
libjson-c-dev \
12+
libmysqlclient-dev \
13+
libproj-dev \
14+
libprotobuf-c-dev \
15+
libxml2-dev \
16+
protobuf-c-compiler \
17+
&& \
18+
rm -rf /var/lib/apt/lists/* && \
19+
curl -sSL "https://download.osgeo.org/postgis/source/postgis-${POSTGIS_VER}.tar.gz" | tar -xz && \
20+
cd postgis-${POSTGIS_VER} && \
21+
./configure && \
22+
make && \
23+
make install

‎GEN-CHECK

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
GEN_CHECK=(12.13 11.18)
1+
GEN_CHECK=(15.3 14.8 13.11 12.15 11.20)

‎build-images.sh

+10-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,13 @@
11
#!/usr/bin/env bash
22
# Do not edit by hand; please use build scripts/templates to make changes
33

4-
docker build --file 12.13/Dockerfile -t cimg/postgres:12.13 -t cimg/postgres:12.13 --platform linux/amd64 .
5-
docker build --file 12.13/postgis/Dockerfile -t cimg/postgres:12.13-postgis -t cimg/postgres:12.13-postgis --platform linux/amd64 .
6-
docker build --file 11.18/Dockerfile -t cimg/postgres:11.18 -t cimg/postgres:11.18 --platform linux/amd64 .
7-
docker build --file 11.18/postgis/Dockerfile -t cimg/postgres:11.18-postgis -t cimg/postgres:11.18-postgis --platform linux/amd64 .
4+
docker build --file 15.3/Dockerfile -t cimg/postgres:15.3 -t cimg/postgres:15.3 --platform linux/amd64 .
5+
docker build --file 15.3/postgis/Dockerfile -t cimg/postgres:15.3-postgis -t cimg/postgres:15.3-postgis --platform linux/amd64 .
6+
docker build --file 14.8/Dockerfile -t cimg/postgres:14.8 -t cimg/postgres:14.8 --platform linux/amd64 .
7+
docker build --file 14.8/postgis/Dockerfile -t cimg/postgres:14.8-postgis -t cimg/postgres:14.8-postgis --platform linux/amd64 .
8+
docker build --file 13.11/Dockerfile -t cimg/postgres:13.11 -t cimg/postgres:13.11 --platform linux/amd64 .
9+
docker build --file 13.11/postgis/Dockerfile -t cimg/postgres:13.11-postgis -t cimg/postgres:13.11-postgis --platform linux/amd64 .
10+
docker build --file 12.15/Dockerfile -t cimg/postgres:12.15 -t cimg/postgres:12.15 --platform linux/amd64 .
11+
docker build --file 12.15/postgis/Dockerfile -t cimg/postgres:12.15-postgis -t cimg/postgres:12.15-postgis --platform linux/amd64 .
12+
docker build --file 11.20/Dockerfile -t cimg/postgres:11.20 -t cimg/postgres:11.20 --platform linux/amd64 .
13+
docker build --file 11.20/postgis/Dockerfile -t cimg/postgres:11.20-postgis -t cimg/postgres:11.20-postgis --platform linux/amd64 .

‎push-images.sh

+10-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
#!/usr/bin/env bash
22
# Do not edit by hand; please use build scripts/templates to make changes
3-
docker push cimg/postgres:12.13
4-
docker push cimg/postgres:12.13-postgis
5-
docker push cimg/postgres:11.18
6-
docker push cimg/postgres:11.18-postgis
3+
docker push cimg/postgres:15.3
4+
docker push cimg/postgres:15.3-postgis
5+
docker push cimg/postgres:14.8
6+
docker push cimg/postgres:14.8-postgis
7+
docker push cimg/postgres:13.11
8+
docker push cimg/postgres:13.11-postgis
9+
docker push cimg/postgres:12.15
10+
docker push cimg/postgres:12.15-postgis
11+
docker push cimg/postgres:11.20
12+
docker push cimg/postgres:11.20-postgis

0 commit comments

Comments
 (0)
Please sign in to comment.