From 6bb6a2a8456a0e3099c64592d2d42c5ca2a050ab Mon Sep 17 00:00:00 2001 From: Gunslinger <1007708137@qq.com> Date: Sun, 25 Oct 2020 18:19:09 +0800 Subject: [PATCH] Update to 0.1.0-beta.14 (#61) --- Dockerfile | 2 +- README.md | 7 ++++--- UPGRADE.md | 36 ++++++++++++++++++++++++++++++++++++ 3 files changed, 41 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index 94a0efc..a2f84f1 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,7 +3,7 @@ FROM alpine:3.12 LABEL description="Simple forum software for building great communities" \ maintainer="Magicalex , Hardware " -ARG VERSION=v0.1.0-beta.13 +ARG VERSION=v0.1.0-beta.14 ENV GID=991 \ UID=991 \ diff --git a/README.md b/README.md index 14262da..32c1e8e 100644 --- a/README.md +++ b/README.md @@ -10,20 +10,21 @@ - **latest** [(Dockerfile)](https://github.com/mondediefr/docker-flarum/blob/master/Dockerfile) - **stable** [(Dockerfile)](https://github.com/mondediefr/docker-flarum/blob/master/Dockerfile) - - **0.1.0-beta.13** [(Dockerfile)](https://github.com/mondediefr/docker-flarum/blob/master/Dockerfile) + - **0.1.0-beta.13** [(Dockerfile)](https://github.com/mondediefr/docker-flarum/blob/0.1.0-beta.13/Dockerfile) + - **0.1.0-beta.14** [(Dockerfile)](https://github.com/mondediefr/docker-flarum/blob/0.1.0-beta.14/Dockerfile) ### Features - Multi-platform image: `linux/386`, `linux/amd64`, `linux/arm/v6`, `linux/arm/v7`, `linux/arm64` - Lightweight & secure image - Based on Alpine Linux with **nginx** and **PHP 7.3** -- Latest [Flarum Core](https://github.com/flarum/core) (v0.1.0-beta.13) +- Latest [Flarum Core](https://github.com/flarum/core) (v0.1.0-beta.14) - MySQL/Mariadb driver - OPCache extension configured ### Build-time variables -- **VERSION** = Version of [flarum/flarum](https://github.com/flarum/flarum) skeleton (default: *v0.1.0-beta.13*) +- **VERSION** = Version of [flarum/flarum](https://github.com/flarum/flarum) skeleton (default: *v0.1.0-beta.14*) ### Ports diff --git a/UPGRADE.md b/UPGRADE.md index 8acb73c..43e12bb 100644 --- a/UPGRADE.md +++ b/UPGRADE.md @@ -1,5 +1,41 @@ # Guide for upgrade your flarum container +### Upgrade to v0.1.0-beta.14 from v0.1.0-beta.13 + +:warning: Backup your database, config.php, composer.lock and assets folder +:warning: Disable all 3rd party extensions prior to upgrading in panel admin. + +1 - Update your docker-compose file, see an example [here](https://github.com/mondediefr/docker-flarum/tree/master#2---docker-composeyml) + +```yml +version: "3" + +services: + flarum: + image: mondedie/flarum:stable-v0.1.0-beta.14 + ... +``` + +2 - Pull the last docker images + +```sh +docker pull mondedie/flarum:stable-v0.1.0-beta.14 +docker-compose stop flarum +docker-compose rm flarum +docker-compose up -d flarum +``` + +3 - Updating your database and removing old assets & extensions + +```sh +docker exec -ti flarum extension remove --no-update flarum/auth-facebook flarum/auth-github flarum/auth-twitter +docker exec -ti flarum extension require fof/oauth --no-update +docker exec -ti flarum php /flarum/app/flarum migrate +docker exec -ti flarum php /flarum/app/flarum cache:clear +``` + +After that your upgrade is finish. :tada: :tada: + ### Upgrade to v0.1.0-beta.13 from v0.1.0-beta.12 :warning: Backup your database, config.php, composer.lock and assets folder