Merge branch 'master' into patch-2

pull/83/head
行旅途 2021-06-07 10:50:12 +08:00 committed by GitHub
commit d82ee1576f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 7 additions and 7 deletions

View File

@ -54,7 +54,7 @@ RUN apk add --no-progress --no-cache \
s6 \
&& cd /tmp \
&& ln -s /usr/bin/php8 /usr/bin/php \
&& curl -s http://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer \
&& curl --progress-bar http://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer \
&& curl -L --progress-bar https://github.com/xxxxxliil/db-live-test/releases/download/0.0.1/db-live-test.php -o /usr/local/bin/db-live-test \
&& sed -i 's/memory_limit = .*/memory_limit = ${PHP_MEMORY_LIMIT}/' /etc/php8/php.ini \
&& chmod +x /usr/local/bin/composer \

View File

@ -10,7 +10,7 @@
- **latest** [(Dockerfile)](https://github.com/mondediefr/docker-flarum/blob/master/Dockerfile)
- **stable** [(Dockerfile)](https://github.com/mondediefr/docker-flarum/blob/master/Dockerfile)
- **1.0.0** [(Dockerfile)](https://github.com/mondediefr/docker-flarum/blob/1.0.0/Dockerfile)
- **1.0.2** [(Dockerfile)](https://github.com/mondediefr/docker-flarum/blob/1.0.2/Dockerfile)
- **0.1.0-beta.16** [(Dockerfile)](https://github.com/mondediefr/docker-flarum/blob/0.1.0-beta.16/Dockerfile)
- **0.1.0-beta.15** [(Dockerfile)](https://github.com/mondediefr/docker-flarum/blob/0.1.0-beta.15/Dockerfile)
@ -20,7 +20,7 @@
- Lightweight & secure image
- Based on Alpine Linux 3.13
- **nginx** and **PHP 8.0**
- Latest [Flarum Core](https://github.com/flarum/core) (v1.0.0)
- Latest [Flarum Core](https://github.com/flarum/core) (v1.0.2)
- MySQL/Mariadb driver
- OPCache extension configured

View File

@ -1,6 +1,6 @@
# Guide for upgrade your flarum container
### Upgrade to v0.1.0-beta.16 from v0.1.0
### 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.
@ -12,14 +12,14 @@ version: "3"
services:
flarum:
image: mondedie/flarum:1.0.0
image: mondedie/flarum:1.0.2
...
```
2 - Pull the last docker images
```sh
docker pull mondedie/flarum:1.0.0
docker pull mondedie/flarum:1.0.2
docker-compose stop flarum
docker-compose rm flarum
docker-compose up -d flarum

View File

@ -106,7 +106,7 @@ if [ -e '/flarum/app/public/assets/rev-manifest.json' ] || [ -e '/flarum/app/pub
while read line; do
extension="${extension}${line} "
done < /flarum/app/extensions/list
cmd="composer require --update-with-all-dependencies ${extension}"
cmd="composer require ${extension}"
eval "COMPOSER_CACHE_DIR=${CACHE_DIR} su-exec ${UID}:${GID} ${cmd}"
echo "[INFO] Install extra bundled extensions: DONE"
else