Skip to content
This repository was archived by the owner on Mar 24, 2026. It is now read-only.

fix: broken postgres dockerfile - #6052

Closed
billywhizz wants to merge 1 commit into
TechEmpower:masterfrom
billywhizz:master
Closed

billywhizz wants to merge 1 commit into
TechEmpower:masterfrom
billywhizz:master

Conversation

@billywhizz

@billywhizz billywhizz commented Oct 4, 2020 •

Copy link
Copy Markdown
Contributor

Fixes #6050

@billywhizz billywhizz changed the title fix: broken postgres dockerfile fix: broken postgres dockerfile, closes #6050 Oct 4, 2020
@billywhizz billywhizz changed the title fix: broken postgres dockerfile, closes #6050 fix: broken postgres dockerfile Closes #6050 Oct 4, 2020
@billywhizz billywhizz changed the title fix: broken postgres dockerfile Closes #6050 fix: broken postgres dockerfile Oct 4, 2020

@sebastienros sebastienros left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Definitely better than my PR, thanks

@NateBrady23

Copy link
Copy Markdown
Member

Hmm saw this after @sebastienros's PR

@jcheron

jcheron commented Oct 5, 2020 •

Copy link
Copy Markdown
Contributor

the package list must be updated, otherwise we get a 404 error:

RUN echo "deb http://apt.postgresql.org/pub/repos/apt $(lsb_release  -sc || cat /etc/*-release|grep -oP  'CODENAME=\K\w+$'|head -1)-pgdg main" > /etc/apt/sources.list.d/pgdg.list

It is also necessary to remove the hard-coded reference to the local pgdg.list

@billywhizz

billywhizz commented Oct 6, 2020 •

Copy link
Copy Markdown
Contributor Author

@jcheron i am not seeing a 404 error when i build from this dockerfile. can you explain a bit more what you are seeing? @nbrady-techempower i was thinking it would be better to stick on v12 of postgres until you make an official decision on migrating to 13 and folks have a chance to make any changes they need to. happy for you to close this PR if you think is not working/needed.

this is the log file from my local build of this dockerfile: https://gist.github.com/billywhizz/73ba054007413ad8b8514b5f1a3beecb

@jcheron

jcheron commented Oct 6, 2020

Copy link
Copy Markdown
Contributor

@jcheron i am not seeing a 404 error when i build from this dockerfile. can you explain a bit more what you are seeing?
@billywhizz
this one:
image

@billywhizz

Copy link
Copy Markdown
Contributor Author

@jcheron this is not happening for me. i have tried on my laptop and on a remote machine with a clean docker. it builds fine for me as you can see from the log i posted above.

@jcheron

jcheron commented Oct 7, 2020 •

Copy link
Copy Markdown
Contributor

@billywhizz
It's ok after cleaning up my docker images!

@billywhizz

Copy link
Copy Markdown
Contributor Author

i'm closing this as it seems the other PR to upgrade to v 13 of postgres has been merged

@billywhizz billywhizz closed this Oct 8, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

postgres.dockerfile doesn't build

4 participants