Adds DevConsole instructions

This commit is contained in:
Alex Soto 2020-10-14 16:20:30 +02:00
parent d058030150
commit 70a46a139f
11 changed files with 53 additions and 3 deletions

BIN
build-config.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 34 KiB

BIN
create-project.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 287 KiB

BIN
db-params.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 240 KiB

BIN
db.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 302 KiB

BIN
mysql-ephimeral.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 292 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 194 KiB

BIN
output-ui.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 356 KiB

BIN
petclinic-deploy.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 162 KiB

BIN
petclinic-url.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 75 KiB

View file

@ -1,3 +1,7 @@
# Sprint PetClinic and OpenShift
## Local Development
``` ```
mvn package mvn package
@ -51,10 +55,56 @@ http://localhost:8080
![Screenshot](screenshot.png) ![Screenshot](screenshot.png)
For OpenShift ## For OpenShift:
![MySQL Template](mysql-template-settings.png) ### Dev Console
Edit the DeploymentConfig for the application pod Create a new OpenShift `Project` with `spring-petclinic-devconsole` name.
![Create Project](create-project.png)
Then move to Developer perspective:
![Dev Perspective](switch-perspective.png)
And create a new MySQL instance by clicking the `+Add` button and choose `Database` type:
![Add DB](db.png)
Choose MySQL Ephimeral:
![MySQL Ephimeral](mysql-ephimeral.png)
and Push `Instantiate Template`.
Then fill the wizard with the following parameters:
![MySQL Template](db-params.png)
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:
![Pet Clinic Deploy](petclinic-deploy.png)
Push the link to `Build Configuration`:
![Build Configuration](build-config.png)
Add the following environment variables for the application Pod:
![DC Env Vars](app-env-vars.png) ![DC Env Vars](app-env-vars.png)
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).
![Pet Clinic Deployment](petclinic-deploy.png)
Push the Open URL button to view the Pet Clinic app:
![Pet Clinic UI](output-ui.png)
### Odo

BIN
switch-perspective.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 311 KiB