gigascience / gigadb-website

Source code for running GigaDB
http://gigadb.org
GNU General Public License v3.0
9 stars 15 forks source link

fix: upgrade database Dockerfiles from buster to bullseye #2049

Closed rija closed 1 month ago

rija commented 1 month ago

Pull request for issue: #2048

This is a pull request for the following functionalities:

How to test?

On local dev environment

Check out my branch from this PR and start your local server in the cloned project

./up.sh

Before this PR all the following commands will throw an error hinting at Postgresql not supporting Debian Buster 10 anymore. With this PR, all the following commands should succeed.

main GigaDB app:

docker-compose build --no-cache test application console

file url updater:

docker-compose run --rm --build updater composer install

readme generator:

docker-compose run --rm --build  --rm tool composer install

on AWS

Push this branch to your Gitlab pipeline, it should complete green

How have functionalities been implemented?

Specifying in the Dockerfile the bullseye package from Postgresql package repository is not enough. We also need the Dockerfile to be using Debian Bullseye as Postgresql package has system dependencies that should match OS version.

Any issues with implementation?

n/a

Any changes to automated tests?

n/a

Any changes to documentation?

n/a

Any technical debt repayment?

Some tests data for Files URL Updater were saved on my personal files storage service. Removed that need.

Any improvements to CI/CD pipeline?

Previously, several containers were not cached and got rebuilt everytime a job run. This is now fixed.