Skip to content

Commit 2946d35

Browse files
committed
Disable upstream PGDG apt source before update
Upstream catmaid/catmaid-standalone bakes the apt.postgresql.org PGDG repo. PGDG retired focal-pgdg when Ubuntu 20.04 hit standard EOL, so the Release file is gone and apt-get update aborts with 'does not have a Release file', failing the whole build. Postgres is already installed in the base image, so we don't need PGDG to be reachable at build time. Delete the PGDG source file before running update. r-base resolves fine from focal main once PGDG is out of the way.
1 parent 6c2518b commit 2946d35

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

Dockerfile

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,14 @@ RUN chmod -R 777 /opt/VFB
3232

3333
RUN chmod +x /opt/VFB/*.sh
3434

35-
RUN apt-get update && apt-get install -y r-base
35+
# Upstream catmaid/catmaid-standalone bakes the PostgreSQL Global
36+
# Development Group (PGDG) apt repo, but PGDG retired focal-pgdg when
37+
# Ubuntu 20.04 hit standard EOL — its Release file is gone, so apt-get
38+
# update aborts. Postgres is already installed in the base image, so we
39+
# just disable the PGDG source before running update.
40+
RUN rm -f /etc/apt/sources.list.d/pgdg.list /etc/apt/sources.list.d/postgresql.list \
41+
&& apt-get update \
42+
&& apt-get install -y r-base
3643

3744
ENV INSTANCE_MEMORY=65000
3845

0 commit comments

Comments
 (0)