Skip to content

JKE Banking Full Stack Deployment

Tim Pouyer edited this page Oct 18, 2017 · 2 revisions

Install the JKE Sample

Open your browser to the Web Terminal. Login as the demo user with password labstack and execute the following commands:

docker run --rm stackinabox/demo-jke

To deploy and run the demo follow these steps:

  1. Open your browser to the Blueprint Designer and login with demo/labstack.
  2. Click on the Repositories link on the left-side of the page. Once the Repositories page loads click on the drop-down next to the Repository text at the top of the page and click the Clone Repository button at the bottom of the drop-down menu.
  3. In the Repository URL field enter https://github.com/stackinabox/jke-blueprint.git and click Submit. Once the repo is cloned you can click on the Blueprints tab on the left side of the page - the icon looks like a box and the tool tip says Blueprints when you hover your mouse over it. You should now see a folder called jke-blueprint along with a default and demo folder.
  4. Click the triangle to the left of jke-blueprint to expand the folder. Now you can open the JKE Blueprint by clicking on the jke.yml under the jke-blueprint folder.
  5. Click on the blue Provision button at the top of the page. The Provision Blueprint to new Environment dialog will pop up. Enter the following values for the fields presented in the dialog.
- `Environment Name`: DEV
- `Agent Parameters`: leave alone
- `Image Parameters`:
  - `Flavor`: `m1.small`
  - `Key Name`: `demo_key`
  - `Web Server Image`: `ubuntu-1404-amd64`
  - `Database Server Image`: `ubuntu-1404-amd64`
- `Network Parameters`:
  - `Availability Zone`: `nova`
  - `Private Network`: `private`
  - `Public Network`: `public`
  1. Click on the blue Provision button at the bottom of the dialog
  2. Click on the Environments tab on the left of the page. It looks like the letter E. You will see a table displaying the known environments that have been deployed via the Blueprint Designer that you have access to. You should see and entry in the table with the DEV Environment name and the jke Applied Blueprint.
  3. Click on the DEV link under the Environment column corresponding to the jke Applied Blueprint. This will load the Environment page for the blueprint you just provisioned. Wait here until all entries in the table show the green check circle icon with the text Create Complete beside it.
  4. Click on the Outputs link to the left of the page. This will bring you to the blueprints defined outputs page. These are dynamically generated as part of provisioning the blueprint and help with finding the correct IP address of an application in a cloud environment that uses auto-assigned floating IPs.
  5. Right-click on the link next to the application_url output value in the table to open the link in a new window/tab. This will open the JKE Banking application and load the landing page into your browser.
  6. Login to the JKE Banking application using the username jbrown and the password jbrown
  7. You can delete the provisioned blueprint for the JKE Banking application by going back to the Blueprint Designer Environments page at: http://designer.stackinabox.io/landscaper/view/environment and clicking the red trash can icon under the Actions column on the right side of the page corresponding to the DEV environment you just provisioned.
  8. Congrats! You just provisioned a blueprint.

Clone this wiki locally