nodeshift-archived / ubi8-s2i-web-app

Apache License 2.0
26 stars 28 forks source link

How to use s2i in different location. #73

Open Robb-Greathouse opened 3 years ago

Robb-Greathouse commented 3 years ago

I am trying to deploy an Angular app to OpenShift. Instructions here "https://developers.redhat.com/blog/2018/10/04/modern-web-apps-openshift-part-1/" direct me to use this command:

$ npx nodeshift --strictSSL=false --dockerImage=nodeshift/ubi8-s2i-web-app --imageTag=10.x --build.env OUTPUT_DIR=dist/angular-web-app --expose

However, when I do I get this error:

error: build error: error building at STEP "RUN /usr/libexec/s2i/assemble": exit status 1

I am doing this on a Macbook Pro:

I installed s2i using go and it is located here

~/go/src/github.com/openshift/source-to-image/examples/nginx-centos7/s2i

The assemble command is under s2i/bin

How can I fix this so that the command finds the s2i location? Either by installing s2i to /usr/libexec or pointing the command to the location of s2i under my go directory?

Robb-Greathouse commented 3 years ago

Please note: On a Mac even super user is not allowed to create a symlink in /usr/libexec.