Stuck with weird problem while building image of Service-Catalog on red hat linux, after running make
following error occurs while same make
works perfectly fine on ubuntu. Following is the error
sed "s/GO_VERSION/1.12/g" < build/build-image/Dockerfile | \
docker build -t scbuildimage -f - .
unable to prepare context: unable to evaluate symlinks in Dockerfile path: lstat /root/go_projects/src/github.com/kubernetes-sigs/service-catalog/-: no such file or directory
make: *** [.scBuildImage] Error 1
Its failing while executing following line.
.scBuildImage: build/build-image/Dockerfile $$(shell sh -c "docker inspect scbuildimage" > /dev/null 2>&1 || echo .forceIt)
mkdir -p .cache
mkdir -p .pkg
sed "s/GO_VERSION/$(GO_VERSION)/g" < build/build-image/Dockerfile | \
docker build -t scbuildimage -f - .
touch $@