Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/petenorth/angular-5-example
Example Angular 5 CLI project with deployment to Openshift via a Jenkins pipeline
https://github.com/petenorth/angular-5-example
angular5 jenkins jenkins-pipeline nginx openshift
Last synced: 1 day ago
JSON representation
Example Angular 5 CLI project with deployment to Openshift via a Jenkins pipeline
- Host: GitHub
- URL: https://github.com/petenorth/angular-5-example
- Owner: petenorth
- Archived: true
- Created: 2018-01-04T13:57:45.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2020-11-16T10:29:06.000Z (about 4 years ago)
- Last Synced: 2024-09-26T06:32:13.412Z (4 months ago)
- Topics: angular5, jenkins, jenkins-pipeline, nginx, openshift
- Language: TypeScript
- Homepage:
- Size: 208 KB
- Stars: 21
- Watchers: 5
- Forks: 79
- Open Issues: 8
-
Metadata Files:
- Readme: README-s2i.md
Awesome Lists containing this project
README
# Steps to set up s2i based build
Basically this uses a chained s2i image build (https://docs.openshift.com/container-platform/3.7/dev_guide/builds/advanced_build_operations.html#dev-guide-chaining-builds) . It initially creates a s2i build using the nodejs-8-rhel7 image with a custom assemble script which adds a ng build step. Then the resulting dist folder contents within this image are copied into (along with some config files) an nginx image.
* `sudo docker pull registry.access.redhat.com/rhscl/nodejs-8-rhel7`
* `sudo docker pull registry.access.redhat.com/rhscl/nginx-112-rhel7`
* `oc new-build registry.access.redhat.com/rhscl/nodejs-8-rhel7~https://github.com/petenorth/angular-5-example.git --name='angular-5-example-s2i'`
* `oc create imagestream angular-5-example-nginx`
* `oc create -f openshift/chained-s2i.yml`