This repository was archived by the owner on Jun 22, 2018. It is now read-only.

Description
Start minimesos
cluster and install MySql using
{
"id": "mysql",
"env": {
"MYSQL_ROOT_PASSWORD": "RNwULK1oySla",
"MYSQL_USER": "wpdb",
"MYSQL_PASSWORD": "e2AtRUUlgLel",
"MYSQL_DATABASE": "wp"
},
"container": {
"type": "DOCKER",
"docker": {
"network": "BRIDGE",
"image": "mysql:5.7.12"
},
"volumes": [
{
"hostPath": "${MINIMESOS_HOST_DIR}/data/mysql",
"containerPath": "/var/lib/mysql",
"mode": "RW"
}
]
},
"cpus": 1,
"mem": 512,
"instances": 1,
"constraints": [
["hostname", "UNIQUE"]
]
}
Container starts, but mysql
fails to create databases - unable to write to disk.
To work-around this, remove ${MINIMESOS_HOST_DIR}
from hostPath
. /data/mysql
directory will get created in docker-machine, and mysql
is able to write