Closed murphybytes closed 5 years ago
also, Idk if this is important, but the files in bin get created with root privileges (which is a bit scary)...
Turns out, if you change permissions to the bin directory and try to build again, it will complete. I had to change permissions 3 times in order for it to complete building. Not sure how to modify the make files (I think you are also calling the build/build.sh).
Also, follow the dockerfile suggested in the repository:
FROM alpine
COPY bin/1/amd64/kuard /kuard
ENTRYPOINT ["/kuard"]
Not sure what is going on in the original, but the idea here is to run stuff in the docker container as the user UID/GID and have that then be passed on to the binaries that are being created. This is to exactly prevent the issue of the binaries being created with UID/GID as root.
I just pushed a new update with up to date javascript libraries (was getting security warnings from github) and with some reworked makefiles.
If y'all could give it a make clean
and try again I'd love to hear if things are working better.
I've updated the README and the Makefile pretty extensively. I'm going to close this as there is a lot different. Let me know if you are still having issues.
When I tried to build kuard as described in the book, the build failed. Details follow, with Go version, OS and Docker information as well as the verbose build output.