PediatricOpenTargets / OpenPedCan-api

2 stars 7 forks source link

`postgres:11.10` docker image APT repository is removed #84

Open logstar opened 1 year ago

logstar commented 1 year ago

@atlas4213 encountered the following error when building the db docker image from db/db.Dockerfile. This error can be reproduced by running docker-compose build --no-cache db.

Step 2/10 : RUN apt-get update -qq   && apt-get install -y --no-install-recommends     ca-certificates     curl   && rm -rf /var/lib/apt/lists/*
 ---> Running in ...
W: The repository 'http://apt.postgresql.org/pub/repos/apt stretch-pgdg Release' does not have a Release file.
E: Failed to fetch http://apt.postgresql.org/pub/repos/apt/dists/stretch-pgdg/main/binary-amd64/Packages  404  Not Found [IP: 72.32.157.246 80]
E: Some index files failed to download. They have been ignored, or old ones used instead.

The error is caused by the recent removal of Debian stretch (9) from http://apt.postgresql.org/, according to https://wiki.postgresql.org/wiki/Apt.

Note that this error does not affect remote DEV/QA/PRD sites, because they use Amazon Relational Database Service (RDS) rather than the db docker image to host database servers.

To temporarily fix this error:

The permanent fix of this error is open for discussions. Following are some potential ones:

cc @sangeetashukla @kelseykeith @ewafula @chinwallaa

kelseykeith commented 1 year ago

I assume this will need to be addressed while working on creating the CNV database for #81 so that might be a good time to implement and review the solution we decide on.

logstar commented 1 year ago

I assume this will need to be addressed while working on creating the CNV database for #81 so that might be a good time to implement and review the solution we decide on.

Thank you for the suggestion. I agree that #81 might be a good place to fix this error permanently. We could discuss further on the solutions in the next API meeting. To avoid blocking the development of CNV databases, any temporary fix could be applied before a permanent fix is decided and implemented.

logstar commented 1 year ago

Regarding options to permanently fix this issue, adding another debian 9 APT repository in db/db.Dockerfile could also be feasible.