Updating GitFlic Software from 4.x.x to 4.6.x
Attention!
If you are using GitFlic version 2.x.x, follow the steps in the upgrade from 2.x.x to 3.x.x guide, and then the upgrade from 3.x.x to 4.x.x guide before proceeding with this instruction.
General Information
For native installations, updating GitFlic to version 4.6.0 is performed in the standard way. If you have an existing installation using Docker Compose, follow the steps described below.
If you encounter any difficulties during the update, you can contact us at support@gitflic.ru describing your issue.
Updating GitFlic Software
Download the latest gitflic.jar distribution, stop the service, and copy the file to the /opt/gitflic/bin directory.
cp gitflic.jar /opt/gitflic/bin/gitflic.jar
If GitFlic is deployed in Docker, to update to version 4.6.0 you need to:
-
Update the
docker-compose.yamlfile from the GitFlic 4.6.0 distribution archive. -
Update the Docker image.
To do this, run the following command in the directory with the
docker-compose.yamlfile:docker compose pull -
Run the following command to move the database to the new directory:
docker run --rm -u root -v pg_data:/var/lib/postgresql/data \ registry.gitflic.ru/company/gitflic/postgres:12 \ bash -lc 'set -e; shopt -s dotglob nullglob; \ mkdir -p /var/lib/postgresql/data/pgdata; \ for f in /var/lib/postgresql/data/*; do \ [ "$(basename "$f")" = "pgdata" ] && continue; \ mv "$f" /var/lib/postgresql/data/pgdata/; \ done; \ chown -R postgres:postgres /var/lib/postgresql/data/pgdata' -
Restart the services to apply the updates:
docker compose down docker compose up -d
After this, GitFlic will be updated to version 4.6.0.
Automated translation!
This page has been translated using automated tools. The text may contain inaccuracies.