Skip to content

Commit

Permalink
updates
Browse files Browse the repository at this point in the history
  • Loading branch information
1ma committed Oct 28, 2024
1 parent 7ed7309 commit fbd3cb6
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 9 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/build-images.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,8 @@ jobs:
- { context: "postgres", tags: "1maa/postgres:13-alpine", build-arg: "POSTGRES_VERSION=13.16" }
- { context: "postgres", tags: "1maa/postgres:14-alpine", build-arg: "POSTGRES_VERSION=14.13" }
- { context: "postgres", tags: "1maa/postgres:15-alpine", build-arg: "POSTGRES_VERSION=15.8" }
- { context: "postgres", tags: "1maa/postgres:16-alpine" }
- { context: "postgres", tags: "1maa/postgres:16-alpine", build-arg: "POSTGRES_VERSION=16.4" }
- { context: "postgres", tags: "1maa/postgres:17-alpine" }
- { context: "sftp", tags: "1maa/sftp:latest" }
steps:
- uses: actions/checkout@v4
Expand Down
2 changes: 1 addition & 1 deletion php/8.1/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
FROM 1maa/alpine:latest AS build

ARG PHP_VERSION=8.1.29
ARG PHP_VERSION=8.1.30
ARG SECP256K1_NOSTR_EXT_VERSION=v0.1.3

ENV CFLAGS="-Os -march=x86-64"
Expand Down
2 changes: 1 addition & 1 deletion php/8.2/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
FROM 1maa/alpine:latest AS build

ARG PHP_VERSION=8.2.23
ARG PHP_VERSION=8.2.24
ARG SECP256K1_NOSTR_EXT_VERSION=v0.1.3

ENV CFLAGS="-Os -march=x86-64"
Expand Down
2 changes: 1 addition & 1 deletion php/8.3/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
FROM 1maa/alpine:latest AS build

ARG PHP_VERSION=8.3.11
ARG PHP_VERSION=8.3.12
ARG SECP256K1_NOSTR_EXT_VERSION=v0.1.3

ENV CFLAGS="-Os -march=x86-64"
Expand Down
15 changes: 10 additions & 5 deletions postgres/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,17 +1,22 @@
FROM alpine:3.20 AS builder

ARG POSTGRES_VERSION=16.4
ARG POSTGRES_VERSION=17.0

WORKDIR /tmp

ADD https://ftp.postgresql.org/pub/source/v${POSTGRES_VERSION}/postgresql-${POSTGRES_VERSION}.tar.gz .

RUN apk add --no-cache \
bison \
build-base \
docbook-xml \
docbook-xsl \
flex \
libxml2-dev \
libxslt-dev \
linux-headers \
openssl-dev \
perl \
readline-dev \
zlib-dev \
&& tar zxof postgresql-${POSTGRES_VERSION}.tar.gz \
Expand All @@ -25,16 +30,16 @@ RUN apk add --no-cache \
--with-ssl=openssl \
--without-icu

RUN make -C postgresql-${POSTGRES_VERSION} world -j$(nproc) \
RUN make -C postgresql-${POSTGRES_VERSION} world \
&& make -C postgresql-${POSTGRES_VERSION} install-world \
&& rm -rf /tmp/pgsql/share/doc \
&& rm -rf /tmp/pgsql/share/man


FROM 1maa/alpine:latest AS postgis
FROM 1maa/alpine:3.20 AS postgis

ARG PGTAP_VERSION=1.3.3
ARG POSTGIS_VERSION=3.4.2
ARG POSTGIS_VERSION=3.5.0

WORKDIR /tmp

Expand Down Expand Up @@ -95,7 +100,7 @@ COPY --from=postgis /usr/local/bin/shp2pgsql /usr/local/bin
COPY --from=postgis /usr/local/lib/postgis-3.so /usr/local/lib
COPY --from=postgis /usr/local/lib/postgis_raster-3.so /usr/local/lib
COPY --from=postgis /usr/local/lib/postgis_topology-3.so /usr/local/lib
COPY --from=postgis /usr/local/share/contrib/postgis-3.4 /usr/local/share/contrib/postgis-3.4
COPY --from=postgis /usr/local/share/contrib/postgis-3.5 /usr/local/share/contrib/postgis-3.5
COPY --from=cleanup /tmp /usr/local/share/extension

COPY docker-entrypoint.sh /usr/local/bin
Expand Down

0 comments on commit fbd3cb6

Please sign in to comment.