diff --git a/.env b/.env index d23765be..e2ffda56 100644 --- a/.env +++ b/.env @@ -1,8 +1,8 @@ SORMAS_POSTGRES_PASSWORD=password SORMAS_POSTGRES_USER=sormas_user -SORMAS_DOCKER_VERSION=2.49.1-rc1 -SORMAS_VERSION=1.88.1 +SORMAS_DOCKER_VERSION=2.50.0-rc1 +SORMAS_VERSION=1.89.0 # only needed for CI build systems SORMAS_DEMIS_VERSION=1.34.0 diff --git a/README.md b/README.md index bd67f9f1..10090673 100644 --- a/README.md +++ b/README.md @@ -17,6 +17,32 @@ For production usage, ONLY checkout from the release tags, because only these contain working and tested images! +--- +**PostgreSQL upgrade notes** + +The following tips are for people who use the project's Docker images to host a SORMAS (PostgreSQL) database in their deployment. + +With the release of v2.50 the default database engine version will change, PostgreSQL 10.18 will be replaced with PostgreSQL 14.9 + +Before using this update, you must migrate the data structures of the current PostgreSQL instance yourself. + +Bearing in mind that each deployment may be different, below are some steps on how to perform such an update (please bear in mind that these instructions will need to be adapted to individual deployment conditions). + +1. You need to run a temporary container with PostgreSQL version 14.9 and indicate the local file system as the data storage location (please adjust the volume '/custom/mount' according to own environment) +``` +docker run --name postgres_149 -v /custom/mount:/var/lib/postgresql/data -e POSTGRES_PASSWORD=mysecretpassword -e DB_NAME=sormas -d postgres:14.9 +``` + +2. Run a 'pg_dumpall' command, pipe the output to feed the psql command within new container (please adjust the name 'current_postgresql_instance' to the ones used withing own environment). +``` +docker exec -it current_postgresql_instance pg_dumpall -U postgres | docker exec -i postgres_149 psql -U postgres +``` + +3. Stop the whole Docker application stack including temporary 'postgres_149' container +4. Secure the initial (current_postgresql_instance) data folder (copy / archive) +5. Copy the data related to postgres_149 volume as it was configured within current configuration of application stack +6. You can start the application stack and use new 'postgresql' images (please keep in mind, that the underlying data was changes and it's required from now to use news postgres image) + --- **SORMAS** (Surveillance Outbreak Response Management and Analysis System) is an open source eHealth system - consisting of separate web and mobile apps - that is geared towards optimizing the processes used in monitoring the spread of infectious diseases and responding to outbreak situations. diff --git a/apache2/Dockerfile b/apache2/Dockerfile index c5d295fd..d8cfee64 100644 --- a/apache2/Dockerfile +++ b/apache2/Dockerfile @@ -1,7 +1,7 @@ FROM httpd:2.4-alpine as build ARG SORMAS_SERVER_URL -ARG SORMAS_VERSION=1.88.1 +ARG SORMAS_VERSION=1.89.0 ARG MOD_AUTH_OPENIDC_VERSION=2.4.11.3 ENV SORMAS_VERSION=$SORMAS_VERSION @@ -32,7 +32,7 @@ RUN cd /usr/src/apache2/mod_auth_openidc-${MOD_AUTH_OPENIDC_VERSION}/ && ls -la FROM httpd:2.4-alpine ARG SORMAS_SERVER_URL -ARG SORMAS_VERSION=1.88.1 +ARG SORMAS_VERSION=1.89.0 ENV SORMAS_VERSION=$SORMAS_VERSION ARG SORMAS_URL=https://github.com/sormas-foundation/SORMAS-Project/releases/download/ diff --git a/keycloak/Dockerfile b/keycloak/Dockerfile index 8b57047b..494070fa 100644 --- a/keycloak/Dockerfile +++ b/keycloak/Dockerfile @@ -6,7 +6,7 @@ USER root RUN microdnf update && microdnf install -y wget unzip ARG SORMAS_URL=https://github.com/sormas-foundation/SORMAS-Project/releases/download/ -ARG SORMAS_VERSION=1.88.1 +ARG SORMAS_VERSION=1.89.0 RUN cd /tmp && \ wget ${SORMAS_URL}v${SORMAS_VERSION}/sormas_${SORMAS_VERSION}.zip -O sormas.zip && \ diff --git a/letsencrypt/Dockerfile b/letsencrypt/Dockerfile index 1b607114..f21f927d 100644 --- a/letsencrypt/Dockerfile +++ b/letsencrypt/Dockerfile @@ -4,7 +4,7 @@ FROM lsiobase/nginx:3.11 ARG CERTBOT_VERSION=1.3.0 ARG SORMAS_URL=https://github.com/sormas-foundation/SORMAS-Project/releases/download/ -ARG SORMAS_VERSION=1.88.1 +ARG SORMAS_VERSION=1.89.0 ENV SORMAS_VERSION=$SORMAS_VERSION LABEL maintainer="aptalca" diff --git a/postgres/Dockerfile b/postgres/Dockerfile index 34883f5e..4116e4f7 100644 --- a/postgres/Dockerfile +++ b/postgres/Dockerfile @@ -1,4 +1,4 @@ -FROM postgres:10.18-alpine +FROM postgres:14.9-alpine3.17 RUN apk update --no-cache && \ apk upgrade --no-cache && \ diff --git a/sormas/Dockerfile b/sormas/Dockerfile index 06d41255..4cdd4cfd 100644 --- a/sormas/Dockerfile +++ b/sormas/Dockerfile @@ -13,8 +13,7 @@ ARG JVM_MAX=4096m ARG SORMAS_URL=https://github.com/sormas-foundation/SORMAS-Project/releases/download/ EXPOSE 6080 -ARG SORMAS_VERSION=1.88.1 - +ARG SORMAS_VERSION=1.89.0 ENV SORMAS_VERSION=$SORMAS_VERSION ENV MAIL_FROM=root@localhost