mrgoro / s2i-angular-container Goto Github PK
View Code? Open in Web Editor NEWOpenShift S2I for Angular Applications
OpenShift S2I for Angular Applications
I am still new to openshift, using my free openshift online starter I am not quite sure I am correctly using these s2i scripts with my angular-cli generated app. So far I created the imagestream, copied the Dockerfile and s2i folder into my repo (https://bitbucket.org/lpalnau/pet-zoo).
oc new-app https://bitbucket.org/lpalnau/pet-zoo.git
creates most of the pieces (service, deployment) I'd expect, but it fails to create the build config due to "build strategy Docker is not allowed"
λ oc new-app https://bitbucket.org/lpalnau/pet-zoo.git
--> Found Docker image bb81a09 (6 months old) from Docker Hub for "openshift/base-centos7"
* An image stream will be created as "base-centos7:latest" that will track the source image
* A Docker build using source code from https://bitbucket.org/lpalnau/pet-zoo.git will be created
* The resulting image will be pushed to image stream "pet-zoo:latest"
* Every time "base-centos7:latest" changes a new build will be triggered
* WARNING: this source repository may require credentials.
Create a secret with your git credentials and use 'set build-secret' to assign it to the build config.
* This image will be deployed in deployment config "pet-zoo"
* Port 8080 will be load balanced by service "pet-zoo"
* Other containers can access this service through the hostname "pet-zoo"
* WARNING: Image "openshift/base-centos7" runs as the 'root' user which may not be permitted by your cluster administrator
--> Creating resources ...
imagestream "base-centos7" created
imagestream "pet-zoo" created
error: buildconfigs "pet-zoo" is forbidden: build strategy Docker is not allowed
deploymentconfig "pet-zoo" created
service "pet-zoo" created
--> Failed
Thanks for any help you could provide.
HI thanks very much for your builder. I have been trying to get a build to complete on Openshift but it keeps failing with Generic build failed
When I build with s2i locally s2i build . schuermann/s2i-angular-container myapp
it works flawlessly however when running on Openshift it will always fail halfway though a build. The logs of the build will show lines like
npm info addNameTag [ 'tsutils', 'latest' ]
> --
> | npm info retry fetch attempt 1 at 3:37:34 PM
> | npm info attempt registry request try #1 at 3:37:34 PM
> | npm http fetch GET https://registry.npmjs.org/tsutils/-/tsutils-2.19.1.tgz
> | npm http fetch 200 https://registry.npmjs.org/tsutils/-/tsutils-2.19.1.tgz
>
I can't really tell if this is even an error. other than it appears to retry a download attempt, these lines I can see in the local s2i build aswell.
Any clues on where the issue maybe?
Thanks.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.