Skip to content

Commit

Permalink
Updating README with new path
Browse files Browse the repository at this point in the history
  • Loading branch information
etsauer committed Feb 16, 2018
1 parent 561d1db commit 9640874
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions basic-spring-boot/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ This quickstart can be deployed quickly using Ansible. Here are the steps.
2. Log into an OpenShift cluster, then run the following command.
```
$ oc login
$ ansible-playbook -i container-pipelines/basic-spring-boot/inventory/ casl-ansible/playbooks/openshift-cluster-seed.yml
$ ansible-playbook -i ./applier/inventory/ /path/to/casl-ansible/playbooks/openshift-cluster-seed.yml
```

At this point you should have 3 projects deployed (`basic-spring-boot-dev`, `basic-spring-boot-stage`, and `basic-spring-boot-prod`) with our [Spring Rest](https://github.com/redhat-cop/spring-rest.git) demo application deployed to all 3.
Expand All @@ -30,15 +30,15 @@ The following breaks down the architecture of the pipeline deployed, as well as

The components of this pipeline are divided into two templates.

The first template, `files/builds/template.yml` is what we are calling the "Build" template. It contains:
The first template, `applier/templates/build.yml` is what we are calling the "Build" template. It contains:

* A `jenkinsPipelineStrategy` BuildConfig
* An `s2i` BuildConfig
* An ImageStream for the s2i build config to push to

The build template contains a default source code repo for a java application compatible with this pipelines architecture (https://github.com/redhat-cop/spring-rest).

The second template, `files/deployments/template.yml` is the "Deploy" template. It contains:
The second template, `applier/templates/deployment.yml` is the "Deploy" template. It contains:

* A tomcat8 DeploymentConfig
* A Service definition
Expand Down Expand Up @@ -77,7 +77,7 @@ For the purposes of this demo, we are going to create three stages for our appli
In the spirit of _Infrastructure as Code_ we have a YAML file that defines the `ProjectRequests` for us. This is as an alternative to running `oc new-project`, but will yeild the same result.

```
$ oc create -f projects/projects.yml
$ oc create -f applier/projects/projects.yml
projectrequest "basic-spring-boot-dev" created
projectrequest "basic-spring-boot-stage" created
projectrequest "basic-spring-boot-prod" created
Expand All @@ -99,7 +99,7 @@ service "jenkins" created

### 4. Instantiate Pipeline

A _deploy template_ is provided at `deploy/template.yml` that defines all of the resources required to run our Tomcat application. It includes:
A _deploy template_ is provided at `applier/templates/deployment.yml` that defines all of the resources required to run our Tomcat application. It includes:

* A `Service`
* A `Route`
Expand All @@ -111,34 +111,34 @@ This template should be instantiated once in each of the namespaces that our app

Deploy the deployment template to all three projects.
```
$ oc process -f deploy/template.yml --param-file=deploy/dev/params | oc apply -f-
$ oc process -f applier/templates/deployment.yml --param-file=applier/params/deployment-dev | oc apply -f-
service "spring-rest" created
route "spring-rest" created
imagestream "spring-rest" created
deploymentconfig "spring-rest" created
rolebinding "jenkins_edit" configured
$ oc process -f deploy/template.yml --param-file=deploy/stage/params | oc apply -f-
$ oc process -f applier/templates/deployment.yml --param-file=applier/params/deployments-stage | oc apply -f-
service "spring-rest" created
route "spring-rest" created
imagestream "spring-rest" created
deploymentconfig "spring-rest" created
rolebinding "jenkins_edit" created
$ oc process -f deploy/template.yml --param-file=deploy/prod/params | oc apply -f-
$ oc process -f applier/templates/deployment.yml --param-file=applier/params/deployment-prod | oc apply -f-
service "spring-rest" created
route "spring-rest" created
imagestream "spring-rest" created
deploymentconfig "spring-rest" created
rolebinding "jenkins_edit" created
```

A _build template_ is provided at `build/template.yml` that defines all the resources required to build our java app. It includes:
A _build template_ is provided at `applier/templates/build.yml` that defines all the resources required to build our java app. It includes:

* A `BuildConfig` that defines a `JenkinsPipelineStrategy` build, which will be used to define out pipeline.
* A `BuildConfig` that defines a `Source` build with `Binary` input. This will build our image.

Deploy the pipeline template in dev only.
```
$ oc process -f build/template.yml --param-file build/dev/params | oc apply -f-
$ oc process -f applier/templates/build.yml --param-file applier/params/build-dev | oc apply -f-
buildconfig "spring-rest-pipeline" created
buildconfig "spring-rest" created
```
Expand Down

0 comments on commit 9640874

Please sign in to comment.