catapult icon indicating copy to clipboard operation
catapult copied to clipboard

Running `make clean` after building scf from source results in lots of permission denied errors

Open dragonchaser opened this issue 6 years ago • 3 comments

When running make clean after building scf from scratch on kind it is impossible for the script remove all the contents of scf in the buildkind directory (lots of permission denied errors).

Suggested fix

Spin up a docker container as part of the make clean process and delete files of buildkind/scf/ there or run chmod on this folder and set permissions to 0777 to be able to delete the files on the host system.

dragonchaser avatar Oct 17 '19 07:10 dragonchaser

Thanks for reporting this! make scf-build seems not finished; the end result so far is extracting the built chart into buildir, which gives you kube/ and helm/, but I wonder how helm knows where to find the built images from, we may need to pass them to the host. if make scf-build works, make clean should not have problems.

viccuad avatar Oct 17 '19 10:10 viccuad

Ok, forgot totally about the created buildir/scf/, that's a right concern. I would expect the build process itself to take care of the perms of that folder though.

viccuad avatar Oct 17 '19 10:10 viccuad

make scf-build seems not finished; the end result so far is extracting the built chart into buildir, which gives you kube/ and helm/, but I wonder how helm knows where to find the built images from, we may need to pass them to the host.

The images are built in the docker control plane, so they are already in the cluster (they just need to be refered correctly in the values when installing)

mudler avatar Oct 21 '19 18:10 mudler