tailhook / vagga

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

Fails on build from source #490

Closed janbaudisch closed 6 years ago

janbaudisch commented 6 years ago

Architecture: x86_64 OS: Solus Rust triple: x86_64-unknown-linux-gnu

I built vagga from source:

VAGGA_VERSION=0.8.0 cargo build --release

When trying to run anything, vagga exits with the following (from redis example):

ERROR:vagga::wrapper: Error executing _build: Could not run versioner: error when executing: No such file or directory (os error 2)
Command <Command "/proc/self/exe" "__wrapper__" "_build" "ubuntu"; environ[3]; uid_map=[UidMap { inside_uid: 0, outside_uid: 1000, count: 1 }, UidMap { inside_uid: 1, outside_uid: 689824, count: 65535 }]; gid_map=[GidMap { inside_gid: 0, outside_gid: 1000, count: 1 }, GidMap { inside_gid: 1, outside_gid: 689824, count: 65535 }]> exited with code 124

/etc/sub[ug]id should also be setup correctly:

$ grep $(id -un) /etc/sub[ug]id
/etc/subgid:me:689824:65536
/etc/subuid:me:689824:65536

I just don't really know where to begin with resolving this...

janbaudisch commented 6 years ago

Alright, I just realized just building from source won't do the trick. I used the provided binary from the documentation, installed it using the provided script and now it works. Obviously I did not have the necessary programs installed vagga needs.

tailhook commented 6 years ago

Yes, the supported way to build vagga is make . Apart from building vagga itself it also downloads busybox and apk. Of course, even better way is vagga make :)

janbaudisch commented 6 years ago

Yeah, but that gets difficult when your distro doesn't provide vagga :D