Closed loeweh closed 8 years ago
when you run make binary
, here's what's happening:
docker build
on the Dockerfile that's in the root of the unik project
. this copies everything in the unik
directory into a docker container that has go
jq
make
and go-bindata
installed.-v _build/:/opt/build
, which means the local <unik_project_dir>/_build
directory will be mapped to /opt/build
inside the containergo build
runs inside the container/opt/build
which should place it on the host in _build
.the step that is failing is #4. it may be that the docker daemon doesn't have permission to create files in the _build
directory. Can you try to manually create _build
(inside the root unik directory) and chmod a+w
to it?
Hi ilackarms, got the problem: selinux. after $ sudo setenfrorce 0 it worked :-).
Regards
Heiko
Hi Unik,
when trying to make the unik binary (even as root) I get the error:
github.com/emc-advanced-dev/unik/cmd github.com/emc-advanced-dev/unik mv: cannot create regular file '/opt/build/unik': Permission denied Makefile:253: recipe for target 'binary' failed make: *\ [binary] Error 1
I did a mkdir -p /opt/build
Any ideas?
Regards
Heiko