Open mkpankov opened 5 years ago
This should be fixed in master/testing version. Still not released though :( Which version do you use?
I initially used stable version from Ubuntu repo, then switched to testing and it went away.
When does testing become stable?
Same problem with setupping mysql:
containers:
mysql:
setup:
- !Ubuntu xenial
- !UbuntuUniverse
- !Sh |
set -ex
addgroup --system --gid 200 mysql
adduser --uid 200 --system --home /data --no-create-home \
--shell /bin/bash --group --gecos "MySQL user" \
mysql
- !Install
- mysql-server-5.7
- mysql-client-5.7
- !Remove /var/lib/mysql
- !EnsureDir /data
environ: &db_config
DB_DATABASE: dbname
DB_USERNAME: dbusername
DB_PASSWORD: dbuserpassword
DB_HOST: 127.0.0.1
DB_PORT: 3307
DB_DATA_DIR: /data
volumes:
/data: !Persistent
name: mysql
owner-uid: 200
owner-gid: 200
init-command: _mysql-init
/run: !Tmpfs
subdirs:
mysqld: { mode: 0o777 }
commands:
mysql: !Command
container: mysql
run: |
mysql -u$DB_USERNAME\
--default-character-set=utf8\
-p$DB_PASSWORD\
-h$DB_HOST\
-P$DB_PORT\
$DB_DATABASE
Getting error:
ERROR 2019-06-27T08:34:25Z: vagga::builder: Error building container "mysql": step Ubuntu("xenial") failed: Error writing "/vagga/root/run/shm": File exists (os error 17)
ERROR 2019-06-27T08:34:25Z: vagga::wrapper: Error executing _build: Builder exited with code 1
Command <Command "/proc/self/exe" "__wrapper__" "_build" "mysql"; environ[3]; uid_map=[UidMap { inside_uid: 0, outside_uid: 1000, count: 1 }, UidMap { inside_uid: 1, outside_uid: 100000, count: 65535 }]; gid_map=[GidMap { inside_gid: 0, outside_gid: 1000, count: 1 }, GidMap { inside_gid: 1, outside_gid: 100000, count: 65535 }]> exited with code 124