Skip to content
This repository has been archived by the owner on Mar 21, 2022. It is now read-only.

How to use s2i in different location. #73

Open
Robb-Greathouse opened this issue Jan 18, 2021 · 1 comment
Open

How to use s2i in different location. #73

Robb-Greathouse opened this issue Jan 18, 2021 · 1 comment

Comments

@Robb-Greathouse
Copy link

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
Copy link
Author

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant