update(): flarum version to 1.3.0

master
Magicalex 2022-06-05 23:01:08 +02:00
parent 00990c17e5
commit eb63dd9b1e
No known key found for this signature in database
GPG Key ID: A89B48B1788C3CB5
3 changed files with 38 additions and 39 deletions

View File

@ -1,4 +1,4 @@
FROM alpine:3.15 FROM alpine:3.16
LABEL description="Simple forum software for building great communities" \ LABEL description="Simple forum software for building great communities" \
maintainer="Magicalex <magicalex@mondedie.fr>, Hardware <hardware@mondedie.fr>" maintainer="Magicalex <magicalex@mondedie.fr>, Hardware <hardware@mondedie.fr>"

View File

@ -17,15 +17,15 @@
- Multi-platform image: `linux/386`, `linux/amd64`, `linux/arm/v6`, `linux/arm/v7`, `linux/arm64` - Multi-platform image: `linux/386`, `linux/amd64`, `linux/arm/v6`, `linux/arm/v7`, `linux/arm64`
- Lightweight & secure image - Lightweight & secure image
- Based on Alpine Linux 3.15 - Based on Alpine Linux 3.16
- **nginx** and **PHP 8.0** - **nginx** and **PHP 8.0**
- Latest [Flarum Core](https://github.com/flarum/core) (v1.2.0) - Latest [Flarum Framework](https://github.com/flarum/framework) (v1.3.0)
- MySQL/Mariadb driver - MySQL/Mariadb driver
- OPCache extension configured - OPCache extension configured
### Build-time variables ### Build-time variables
- **VERSION** = Version of [flarum/flarum](https://github.com/flarum/flarum) skeleton (default: *v1.2.0*) - **VERSION** = Version of [flarum/flarum](https://github.com/flarum/flarum) skeleton (default: *v1.3.0*)
### Ports ### Ports

View File

@ -1,5 +1,39 @@
# Guide for upgrade your flarum container # Guide for upgrade your flarum container
### Upgrade to v1.3.0 from v1.2.0
: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:1.3.0
...
```
2 - Pull the last docker images
```sh
docker pull mondedie/flarum:1.2.0
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 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 v1.2.0 from v1.0.2 ### Upgrade to v1.2.0 from v1.0.2
:warning: Backup your database, config.php, composer.lock and assets folder :warning: Backup your database, config.php, composer.lock and assets folder
@ -33,38 +67,3 @@ docker exec -ti flarum php /flarum/app/flarum cache:clear
``` ```
After that your upgrade is finish. :tada: :tada: After that your upgrade is finish. :tada: :tada:
### Upgrade to v1.0.2 from v0.1.0-beta.16
: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:1.0.2
...
```
2 - Pull the last docker images
```sh
docker pull mondedie/flarum:1.0.2
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 php /flarum/app/flarum migrate
docker exec -ti flarum php /flarum/app/flarum cache:clear
```
After that your upgrade is finish. :tada: :tada: