Adds DevConsole instructions
BIN
build-config.png
Normal file
After Width: | Height: | Size: 34 KiB |
BIN
create-project.png
Normal file
After Width: | Height: | Size: 287 KiB |
BIN
db-params.png
Normal file
After Width: | Height: | Size: 240 KiB |
BIN
db.png
Normal file
After Width: | Height: | Size: 302 KiB |
BIN
mysql-ephimeral.png
Normal file
After Width: | Height: | Size: 292 KiB |
Before Width: | Height: | Size: 194 KiB |
BIN
output-ui.png
Normal file
After Width: | Height: | Size: 356 KiB |
BIN
petclinic-deploy.png
Normal file
After Width: | Height: | Size: 162 KiB |
BIN
petclinic-url.png
Normal file
After Width: | Height: | Size: 75 KiB |
56
readme.md
|
@ -1,3 +1,7 @@
|
||||||
|
# Sprint PetClinic and OpenShift
|
||||||
|
|
||||||
|
## Local Development
|
||||||
|
|
||||||
```
|
```
|
||||||
mvn package
|
mvn package
|
||||||
|
|
||||||
|
@ -51,10 +55,56 @@ http://localhost:8080
|
||||||

|

|
||||||
|
|
||||||
|
|
||||||
For OpenShift
|
## For OpenShift:
|
||||||
|
|
||||||

|
### Dev Console
|
||||||
|
|
||||||
Edit the DeploymentConfig for the application pod
|
Create a new OpenShift `Project` with `spring-petclinic-devconsole` name.
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
Then move to Developer perspective:
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
And create a new MySQL instance by clicking the `+Add` button and choose `Database` type:
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
Choose MySQL Ephimeral:
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
and Push `Instantiate Template`.
|
||||||
|
|
||||||
|
Then fill the wizard with the following parameters:
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
Push the `Create` button.
|
||||||
|
|
||||||
|
Let's deploy the Pet Clinic app.
|
||||||
|
|
||||||
|
And create a new MySQL instance by clicking the `+Add` button and choose `From Git` type:
|
||||||
|
|
||||||
|
Fill the Git repo with the following value `https://github.com/burrsutter/spring-petclinic` and select the project as Java project:
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
Push the link to `Build Configuration`:
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
Add the following environment variables for the application Pod:
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
|
Finally push the `Create` button and wait until the Build is done and the Pod is up and running (dark blue around the deployment bubble).
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
Push the Open URL button to view the Pet Clinic app:
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
### Odo
|
BIN
switch-perspective.png
Normal file
After Width: | Height: | Size: 311 KiB |