Update dev configuration

This commit is contained in:
Arnie 2018-02-27 12:06:51 +01:00
parent 8338490267
commit ec252ee502
3 changed files with 3 additions and 4 deletions

View File

@ -1,4 +1,3 @@
post_max_size = 2000M post_max_size = 2000M
upload_max_filesize = 2000M upload_max_filesize = 2000M
memory_limit = 2000M memory_limit = 2000M
max_file_uploads = 20

View File

@ -3,7 +3,7 @@
SCRIPT_PATH=$( cd "$(dirname "$0")" ; pwd -P ) SCRIPT_PATH=$( cd "$(dirname "$0")" ; pwd -P )
IMAGE_NAME="adminer" IMAGE_NAME="adminer"
IMAGE_VERSION="latest" IMAGE_VERSION="4.6.1"
SERVICE_NAME=adminer SERVICE_NAME=adminer

View File

@ -42,7 +42,7 @@ init() {
} }
# Used for exporting the whole database filesystem # Used for exporting the whole database filesystem
export() { backup() {
stop stop
local user=$(id -u) local user=$(id -u)
@ -59,7 +59,7 @@ export() {
} }
# Used for importing the whole database filesystem # Used for importing the whole database filesystem
import() { restore() {
stop stop
docker run --rm --volumes-from ${SERVICE_NAME} -v ${BACKUP_DIR}:/backup busybox sh -c "rm -rf /var/lib/mysql/* && tar xvf /backup/backup.tar --directory /" docker run --rm --volumes-from ${SERVICE_NAME} -v ${BACKUP_DIR}:/backup busybox sh -c "rm -rf /var/lib/mysql/* && tar xvf /backup/backup.tar --directory /"
start start