From 6ad4e2083443013582b58df71f8508076e5820ea Mon Sep 17 00:00:00 2001 From: Uladzimir Tsykun Date: Mon, 9 Jan 2023 03:33:25 +0100 Subject: [PATCH] Added upgrade notices --- README.md | 6 ++++-- UPGRADE.md | 50 ++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 54 insertions(+), 2 deletions(-) create mode 100644 UPGRADE.md diff --git a/README.md b/README.md index 3342fc9e..78cfe59f 100644 --- a/README.md +++ b/README.md @@ -9,9 +9,11 @@ Packeton - Private PHP package repository for vendors Fork of [Packagist](https://github.com/composer/packagist). The Open Source alternative of [Private Packagist for vendors](https://packagist.com), that based on [Satis](https://github.com/composer/satis) and [Packagist](https://github.com/composer/packagist). -### Legacy Symfony 3.4 version +### Legacy Symfony 3.4 version -[See docs](../1.4/README.md) +[Legacy docs](../1.4/README.md) + +Update to 2.0. [UPGRADE.md](./UPGRADE.md) Features -------- diff --git a/UPGRADE.md b/UPGRADE.md new file mode 100644 index 00000000..76285f6d --- /dev/null +++ b/UPGRADE.md @@ -0,0 +1,50 @@ +# UPGRADE + +## UPGRADE FROM 1.4 to 2.0 + +- Require PHP 8.1+ +- Symfony LTS has been changed from `3.4` to `5.4` +- Application composer HOME was changed to `%kernel.project_dir%/var/.composer` + +#### Run migrations +There are no major BC breaks in the database structure. + +Run the command to show SQL changes: + +``` +bin/console doctrine:schema:update --dump-sql +``` + +Run the command to execute migrations: + +``` +bin/console doctrine:schema:update --force +``` + +*Note* +Now composer v2 metadata is supported. The app also supports composer v1 too. +No additional action required. + +### Docker UPGRADE + +- Image has been renamed from [okvpn/packeton](https://hub.docker.com/r/okvpn/packeton) to [packeton/packeton](https://hub.docker.com/r/packeton/packeton) +- Volume directory structure was changed: + - /data/composer - composer home + - /data/redis - redis data + - /data/zipball - dist path + - /data/ssh - ssh for www-data path + +Before: + +``` + - .docker/redis:/var/lib/redis + - .docker/zipball:/var/www/packagist/app/zipball + - .docker/composer:/var/www/.composer + - .docker/ssh:/var/www/.ssh +``` + +After: + +``` + - .docker:/data +```