tailhook / vagga

Vagga is a containerization tool without daemons
http://vagga.readthedocs.org
MIT License
1.86k stars 96 forks source link

Fixed ubuntu xenial #504

Closed anti-social closed 5 years ago

anti-social commented 5 years ago

Canonical updated image for ubuntu xenial. They added /run/shm link to the image. This leads to an error:

ERROR 2018-10-30T11:26:29Z: vagga::builder: Error building container "rust-musl": step Ubuntu("xenial") failed: Error writing "/vagga/root/run/shm": File exists (os error 17)
ERROR 2018-10-30T11:26:29Z: vagga::wrapper: Error executing _build: Builder exited with code 1
Command <Command "/proc/self/exe" "__wrapper__" "_build" "rust-musl" "--force"; 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: 100, count: 1 }, GidMap { inside_gid: 1, outside_gid: 100000, count: 65535 }]> exited with code 124

The error caused by next PR: https://github.com/tailhook/vagga/pull/377

tailhook commented 5 years ago

Ah, okay, the problem actually is that untar'ing causes the error. So the solution is to ignore /run when untaring similarly to how we ignore /dev, /sys....

tailhook commented 5 years ago

Pushed a minimal fix to master

anti-social commented 5 years ago

You should also update ubuntu version to be able to build new vagga =)

tailhook commented 5 years ago

Okay. Pulled other two commits and did other upgrades. Working vagga have already been in the binary repository, though.