Skip to content

Commit

Permalink
Update postgres Docker tag to v16
Browse files Browse the repository at this point in the history
Signed-off-by: Sora Morimoto <[email protected]>
  • Loading branch information
smorimoto committed Sep 16, 2023
1 parent f1c37a3 commit 25d2f72
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
ARG PG_VERSION=15.3
ARG PG_MAJOR_VERSION=15
ARG PG_VERSION=16.0
ARG PG_MAJOR_VERSION=16
ARG VERSION=custom

FROM golang:1.20
FROM golang:1.21

WORKDIR /go/src/github.com/fly-apps/fly-postgres
COPY . .
Expand Down
9 changes: 4 additions & 5 deletions Dockerfile-timescaledb
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
ARG PG_VERSION=15.3
ARG PG_MAJOR_VERSION=15
ARG PG_VERSION=16.0
ARG PG_MAJOR_VERSION=16
ARG VERSION=custom

FROM golang:1.20
FROM golang:1.21

WORKDIR /go/src/github.com/fly-apps/fly-postgres
COPY . .
Expand All @@ -17,7 +17,6 @@ RUN CGO_ENABLED=0 GOOS=linux go build -v -o /fly/bin/start ./cmd/start
COPY ./bin/* /fly/bin/

FROM wrouesnel/postgres_exporter:latest AS postgres_exporter

FROM postgres:${PG_VERSION}
ENV PGDATA=/data/postgresql
ARG VERSION
Expand All @@ -31,7 +30,7 @@ LABEL fly.pg-version=${PG_VERSION}
LABEL fly.pg-manager=repmgr

RUN apt-get update && apt-get install --no-install-recommends -y \
ca-certificates iproute2 postgresql-$PG_MAJOR_VERSION-repmgr curl bash dnsutils vim haproxy socat procps ssh gnupg rsync barman-cli barman cron \
ca-certificates iproute2 postgresql-$PG_MAJOR_VERSION-repmgr curl bash dnsutils vim socat procps ssh gnupg rsync barman-cli barman cron \
&& apt autoremove -y

RUN echo "deb https://packagecloud.io/timescale/timescaledb/debian/ $(cat /etc/os-release | grep VERSION_CODENAME | cut -d'=' -f2) main" > /etc/apt/sources.list.d/timescaledb.list \
Expand Down

0 comments on commit 25d2f72

Please sign in to comment.