Skip to content

Commit ea4555f

Browse files
committed
feat: wip advance to ubuntu 24.04
1 parent 0dfeaae commit ea4555f

24 files changed

+82
-82
lines changed

.github/workflows/ami-release-nix.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ jobs:
3636
include:
3737
- runner: arm-runner
3838
arch: arm64
39-
ubuntu_release: focal
40-
ubuntu_version: 20.04
39+
ubuntu_release: noble
40+
ubuntu_version: 24.04
4141
mcpu: neoverse-n1
4242
runs-on: ${{ matrix.runner }}
4343
timeout-minutes: 150
@@ -121,7 +121,7 @@ jobs:
121121
122122
- name: Upload nix flake revision to s3 staging
123123
run: |
124-
aws s3 cp /tmp/pg_binaries.tar.gz s3://${{ secrets.ARTIFACTS_BUCKET }}/upgrades/postgres/supabase-postgres-${{ steps.process_release_version.outputs.version }}/20.04.tar.gz
124+
aws s3 cp /tmp/pg_binaries.tar.gz s3://${{ secrets.ARTIFACTS_BUCKET }}/upgrades/postgres/supabase-postgres-${{ steps.process_release_version.outputs.version }}/24.04.tar.gz
125125
126126
- name: configure aws credentials - prod
127127
uses: aws-actions/configure-aws-credentials@v4
@@ -140,7 +140,7 @@ jobs:
140140
141141
- name: Upload nix flake revision to s3 prod
142142
run: |
143-
aws s3 cp /tmp/pg_binaries.tar.gz s3://${{ secrets.PROD_ARTIFACTS_BUCKET }}/upgrades/postgres/supabase-postgres-${{ steps.process_release_version.outputs.version }}/20.04.tar.gz
143+
aws s3 cp /tmp/pg_binaries.tar.gz s3://${{ secrets.PROD_ARTIFACTS_BUCKET }}/upgrades/postgres/supabase-postgres-${{ steps.process_release_version.outputs.version }}/24.04.tar.gz
144144
145145
- name: Create release
146146
uses: softprops/action-gh-release@v1

.github/workflows/publish-nix-pgupgrade-bin-flake-version.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ jobs:
6464

6565
- name: Upload pg_upgrade scripts to s3 staging
6666
run: |
67-
aws s3 cp /tmp/pg_upgrade_bin.tar.gz s3://${{ secrets.ARTIFACTS_BUCKET }}/upgrades/postgres/supabase-postgres-${{ steps.process_release_version.outputs.version }}/20.04.tar.gz
67+
aws s3 cp /tmp/pg_upgrade_bin.tar.gz s3://${{ secrets.ARTIFACTS_BUCKET }}/upgrades/postgres/supabase-postgres-${{ steps.process_release_version.outputs.version }}/24.04.tar.gz
6868
6969
- name: Slack Notification on Failure
7070
if: ${{ failure() }}
@@ -111,7 +111,7 @@ jobs:
111111

112112
- name: Upload pg_upgrade scripts to s3 prod
113113
run: |
114-
aws s3 cp /tmp/pg_upgrade_bin.tar.gz s3://${{ secrets.PROD_ARTIFACTS_BUCKET }}/upgrades/postgres/supabase-postgres-${{ steps.process_release_version.outputs.version }}/20.04.tar.gz
114+
aws s3 cp /tmp/pg_upgrade_bin.tar.gz s3://${{ secrets.PROD_ARTIFACTS_BUCKET }}/upgrades/postgres/supabase-postgres-${{ steps.process_release_version.outputs.version }}/24.04.tar.gz
115115
116116
- name: Slack Notification on Failure
117117
if: ${{ failure() }}

.github/workflows/test-pg-upgrade.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ jobs:
5050
- name: Download pg_upgrade_scripts and binaries
5151
run: |
5252
aws s3 cp s3://${{ secrets.ARTIFACTS_BUCKET }}/upgrades/postgres/supabase-postgres-${{ steps.process_release_version.outputs.version }}/pg_upgrade_scripts.tar.gz scripts/pg_upgrade_scripts.tar.gz
53-
aws s3 cp s3://${{ secrets.ARTIFACTS_BUCKET }}/upgrades/postgres/supabase-postgres-${{ steps.process_release_version.outputs.version }}/20.04.tar.gz scripts/pg_upgrade_bin.tar.gz
53+
aws s3 cp s3://${{ secrets.ARTIFACTS_BUCKET }}/upgrades/postgres/supabase-postgres-${{ steps.process_release_version.outputs.version }}/24.04.tar.gz scripts/pg_upgrade_bin.tar.gz
5454
5555
- run: docker context create builders
5656
- uses: docker/setup-buildx-action@v2

.github/workflows/testinfra-nix.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ jobs:
3030
include:
3131
- runner: arm-runner
3232
arch: arm64
33-
ubuntu_release: focal
34-
ubuntu_version: 20.04
33+
ubuntu_release: noble
34+
ubuntu_version: 24.04
3535
mcpu: neoverse-n1
3636
runs-on: ${{ matrix.runner }}
3737
timeout-minutes: 150

Dockerfile

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ ARG wal_g_release=2.0.1
4242
####################
4343
# Setup Postgres PPA
4444
####################
45-
FROM ubuntu:focal as ppa
45+
FROM ubuntu:noble as ppa
4646
# Redeclare args for use in subsequent stages
4747
ARG postgresql_major
4848
RUN apt-get update && apt-get install -y --no-install-recommends \
@@ -55,7 +55,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
5555
# gpg --export --armor $NEW_POSTGRESQL_GPG_KEY > postgresql.gpg.key
5656
COPY postgresql.gpg.key /tmp/postgresql.gpg.key
5757
RUN apt-key add /tmp/postgresql.gpg.key && \
58-
echo "deb https://apt-archive.postgresql.org/pub/repos/apt focal-pgdg-archive main" > /etc/apt/sources.list.d/pgdg.list
58+
echo "deb https://apt-archive.postgresql.org/pub/repos/apt noble-pgdg-archive main" > /etc/apt/sources.list.d/pgdg.list
5959

6060
####################
6161
# Download pre-built postgres
@@ -64,22 +64,22 @@ FROM ppa as pg
6464
ARG postgresql_release
6565
# Download .deb packages
6666
RUN apt-get update && apt-get install -y --no-install-recommends --download-only \
67-
postgresql-${postgresql_major}=${postgresql_release}-1.pgdg20.04+1 \
67+
postgresql-${postgresql_major}=${postgresql_release}-1.pgdg24.04+1 \
6868
&& rm -rf /var/lib/apt/lists/*
6969
RUN mv /var/cache/apt/archives/*.deb /tmp/
7070

7171
FROM ppa as pg-dev
7272
ARG postgresql_release
7373
# Download .deb packages
7474
RUN apt-get update && apt-get install -y --no-install-recommends --download-only \
75-
postgresql-server-dev-${postgresql_major}=${postgresql_release}-1.pgdg20.04+1 \
75+
postgresql-server-dev-${postgresql_major}=${postgresql_release}-1.pgdg24.04+1 \
7676
&& rm -rf /var/lib/apt/lists/*
7777
RUN mv /var/cache/apt/archives/*.deb /tmp/
7878

7979
####################
8080
# Install postgres
8181
####################
82-
FROM ubuntu:focal as base
82+
FROM ubuntu:noble as base
8383
# Redeclare args for use in subsequent stages
8484
ARG TARGETARCH
8585
ARG postgresql_major
@@ -188,7 +188,7 @@ FROM ppa as postgis
188188
ARG postgis_release
189189
# Download pre-built packages
190190
RUN apt-get update && apt-get install -y --no-install-recommends --download-only \
191-
postgresql-${postgresql_major}-postgis-3=${postgis_release}+dfsg-1.pgdg20.04+1 \
191+
postgresql-${postgresql_major}-postgis-3=${postgis_release}+dfsg-1.pgdg24.04+1 \
192192
&& rm -rf /var/lib/apt/lists/*
193193
RUN mv /var/cache/apt/archives/*.deb /tmp/
194194

@@ -220,7 +220,7 @@ FROM ppa as pgrouting
220220
ARG pgrouting_release
221221
# Download pre-built packages
222222
RUN apt-get update && apt-get install -y --no-install-recommends --download-only \
223-
postgresql-${postgresql_major}-pgrouting=${pgrouting_release}-1.pgdg20.04+1 \
223+
postgresql-${postgresql_major}-pgrouting=${pgrouting_release}-1.pgdg24.04+1 \
224224
&& rm -rf /var/lib/apt/lists/*
225225
RUN mv /var/cache/apt/archives/*.deb /tmp/
226226

@@ -695,7 +695,7 @@ FROM base as pgroonga
695695
# Latest available is 3.0.3
696696
ARG pgroonga_release
697697
# Download pre-built packages
698-
ADD "https://packages.groonga.org/ubuntu/groonga-apt-source-latest-focal.deb" /tmp/source.deb
698+
ADD "https://packages.groonga.org/ubuntu/groonga-apt-source-latest-noble.deb" /tmp/source.deb
699699
RUN apt-get update && apt-get install -y --no-install-recommends \
700700
ca-certificates \
701701
/tmp/source.deb \
@@ -857,13 +857,13 @@ RUN /tmp/download_supautils.sh && rm /tmp/download_supautils.sh
857857
####################
858858
FROM base as walg
859859
ARG wal_g_release
860-
# ADD "https://github.com/wal-g/wal-g/releases/download/v${wal_g_release}/wal-g-pg-ubuntu-20.04-${TARGETARCH}.tar.gz" /tmp/wal-g.tar.gz
860+
# ADD "https://github.com/wal-g/wal-g/releases/download/v${wal_g_release}/wal-g-pg-ubuntu-24.04-${TARGETARCH}.tar.gz" /tmp/wal-g.tar.gz
861861
RUN arch=$([ "$TARGETARCH" = "arm64" ] && echo "aarch64" || echo "$TARGETARCH") && \
862862
apt-get update && apt-get install -y --no-install-recommends curl && \
863-
curl -kL "https://github.com/wal-g/wal-g/releases/download/v${wal_g_release}/wal-g-pg-ubuntu-20.04-${arch}.tar.gz" -o /tmp/wal-g.tar.gz && \
863+
curl -kL "https://github.com/wal-g/wal-g/releases/download/v${wal_g_release}/wal-g-pg-ubuntu-24.04-${arch}.tar.gz" -o /tmp/wal-g.tar.gz && \
864864
tar -xvf /tmp/wal-g.tar.gz -C /tmp && \
865865
rm -rf /tmp/wal-g.tar.gz && \
866-
mv /tmp/wal-g-pg-ubuntu*20.04-$arch /tmp/wal-g
866+
mv /tmp/wal-g-pg-ubuntu*24.04-$arch /tmp/wal-g
867867

868868
####################
869869
# Collect extension packages
@@ -903,7 +903,7 @@ COPY --from=supautils /tmp/*.deb /tmp/
903903
####################
904904
# Download gosu for easy step-down from root
905905
####################
906-
FROM ubuntu:focal as gosu
906+
FROM ubuntu:noble as gosu
907907
ARG TARGETARCH
908908
# Install dependencies
909909
RUN apt-get update && apt-get install -y --no-install-recommends \

Dockerfile-15

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ ARG index_advisor_release=0.2.0
3939
ARG supautils_release=2.2.0
4040
ARG wal_g_release=2.0.1
4141

42-
FROM ubuntu:focal as base
42+
FROM ubuntu:noble as base
4343

4444
RUN apt update -y && apt install -y \
4545
curl \
@@ -119,13 +119,13 @@ ENV PGDATA=/var/lib/postgresql/data
119119
####################
120120
FROM base as walg
121121
ARG wal_g_release
122-
# ADD "https://github.com/wal-g/wal-g/releases/download/v${wal_g_release}/wal-g-pg-ubuntu-20.04-${TARGETARCH}.tar.gz" /tmp/wal-g.tar.gz
122+
# ADD "https://github.com/wal-g/wal-g/releases/download/v${wal_g_release}/wal-g-pg-ubuntu-24.04-${TARGETARCH}.tar.gz" /tmp/wal-g.tar.gz
123123
RUN arch=$([ "$TARGETARCH" = "arm64" ] && echo "aarch64" || echo "$TARGETARCH") && \
124124
apt-get update && apt-get install -y --no-install-recommends curl && \
125-
curl -kL "https://github.com/wal-g/wal-g/releases/download/v${wal_g_release}/wal-g-pg-ubuntu-20.04-aarch64.tar.gz" -o /tmp/wal-g.tar.gz && \
125+
curl -kL "https://github.com/wal-g/wal-g/releases/download/v${wal_g_release}/wal-g-pg-ubuntu-24.04-aarch64.tar.gz" -o /tmp/wal-g.tar.gz && \
126126
tar -xvf /tmp/wal-g.tar.gz -C /tmp && \
127127
rm -rf /tmp/wal-g.tar.gz && \
128-
mv /tmp/wal-g-pg-ubuntu*20.04-aarch64 /tmp/wal-g
128+
mv /tmp/wal-g-pg-ubuntu*24.04-aarch64 /tmp/wal-g
129129

130130
# ####################
131131
# # Download gosu for easy step-down from root

Dockerfile-158

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ ARG index_advisor_release=0.2.0
3939
ARG supautils_release=2.2.0
4040
ARG wal_g_release=2.0.1
4141

42-
FROM ubuntu:focal as base
42+
FROM ubuntu:noble as base
4343

4444
RUN apt update -y && apt install -y \
4545
curl \
@@ -119,13 +119,13 @@ ENV PGDATA=/var/lib/postgresql/data
119119
####################
120120
FROM base as walg
121121
ARG wal_g_release
122-
# ADD "https://github.com/wal-g/wal-g/releases/download/v${wal_g_release}/wal-g-pg-ubuntu-20.04-${TARGETARCH}.tar.gz" /tmp/wal-g.tar.gz
122+
# ADD "https://github.com/wal-g/wal-g/releases/download/v${wal_g_release}/wal-g-pg-ubuntu-24.04-${TARGETARCH}.tar.gz" /tmp/wal-g.tar.gz
123123
RUN arch=$([ "$TARGETARCH" = "arm64" ] && echo "aarch64" || echo "$TARGETARCH") && \
124124
apt-get update && apt-get install -y --no-install-recommends curl && \
125-
curl -kL "https://github.com/wal-g/wal-g/releases/download/v${wal_g_release}/wal-g-pg-ubuntu-20.04-aarch64.tar.gz" -o /tmp/wal-g.tar.gz && \
125+
curl -kL "https://github.com/wal-g/wal-g/releases/download/v${wal_g_release}/wal-g-pg-ubuntu-24.04-aarch64.tar.gz" -o /tmp/wal-g.tar.gz && \
126126
tar -xvf /tmp/wal-g.tar.gz -C /tmp && \
127127
rm -rf /tmp/wal-g.tar.gz && \
128-
mv /tmp/wal-g-pg-ubuntu*20.04-aarch64 /tmp/wal-g
128+
mv /tmp/wal-g-pg-ubuntu*24.04-aarch64 /tmp/wal-g
129129

130130
# ####################
131131
# # Download gosu for easy step-down from root

Dockerfile-orioledb-17

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ ARG index_advisor_release=0.2.0
3939
ARG supautils_release=2.2.0
4040
ARG wal_g_release=2.0.1
4141

42-
FROM ubuntu:focal as base
42+
FROM ubuntu:noble as base
4343

4444
RUN apt update -y && apt install -y \
4545
curl \
@@ -118,13 +118,13 @@ ENV PGDATA=/var/lib/postgresql/data
118118
####################
119119
FROM base as walg
120120
ARG wal_g_release
121-
# ADD "https://github.com/wal-g/wal-g/releases/download/v${wal_g_release}/wal-g-pg-ubuntu-20.04-${TARGETARCH}.tar.gz" /tmp/wal-g.tar.gz
121+
# ADD "https://github.com/wal-g/wal-g/releases/download/v${wal_g_release}/wal-g-pg-ubuntu-24.04-${TARGETARCH}.tar.gz" /tmp/wal-g.tar.gz
122122
RUN arch=$([ "$TARGETARCH" = "arm64" ] && echo "aarch64" || echo "$TARGETARCH") && \
123123
apt-get update && apt-get install -y --no-install-recommends curl && \
124-
curl -kL "https://github.com/wal-g/wal-g/releases/download/v${wal_g_release}/wal-g-pg-ubuntu-20.04-aarch64.tar.gz" -o /tmp/wal-g.tar.gz && \
124+
curl -kL "https://github.com/wal-g/wal-g/releases/download/v${wal_g_release}/wal-g-pg-ubuntu-24.04-aarch64.tar.gz" -o /tmp/wal-g.tar.gz && \
125125
tar -xvf /tmp/wal-g.tar.gz -C /tmp && \
126126
rm -rf /tmp/wal-g.tar.gz && \
127-
mv /tmp/wal-g-pg-ubuntu*20.04-aarch64 /tmp/wal-g
127+
mv /tmp/wal-g-pg-ubuntu*24.04-aarch64 /tmp/wal-g
128128

129129
# ####################
130130
# # Download gosu for easy step-down from root

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Unmodified Postgres with some useful plugins. Our goal with this repo is not to
44

55
## Primary Features
66
- ✅ Postgres [15](https://www.postgresql.org/about/news/postgresql-15-released-2526/).
7-
- ✅ Ubuntu 20.04 (Focal Fossa).
7+
- ✅ Ubuntu 24.04 (noble Fossa).
88
-[wal_level](https://www.postgresql.org/docs/current/runtime-config-wal.html) = logical and [max_replication_slots](https://www.postgresql.org/docs/current/runtime-config-replication.html) = 5. Ready for replication.
99
-[Large Systems Extensions](https://github.com/aws/aws-graviton-getting-started#building-for-graviton-and-graviton2). Enabled for ARM images.
1010

amazon-arm64-nix.pkr.hcl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
variable "ami" {
22
type = string
3-
default = "ubuntu/images/hvm-ssd/ubuntu-focal-20.04-arm64-server-*"
3+
default = "ubuntu/images/hvm-ssd/ubuntu-noble-24.04-arm64-server-*"
44
}
55

66
variable "profile" {
@@ -115,7 +115,7 @@ source "amazon-ebssurrogate" "source" {
115115
#secret_key = "${var.aws_secret_key}"
116116
force_deregister = var.force-deregister
117117

118-
# Use latest official ubuntu focal ami owned by Canonical.
118+
# Use latest official ubuntu noble ami owned by Canonical.
119119
source_ami_filter {
120120
filters = {
121121
virtualization-type = "hvm"

0 commit comments

Comments
 (0)