This guide will show you how to deploy a sample application to HPE Helion Stackato. There is also an accompanying video.
To get started you will need:
- a Mac, Windows or Linux machine.
- the latest version of Virtual Box from https://www.virtualbox.org/wiki/Downloads.
- a copy of the HPE Helion Stackato virtual box image from https://bit.ly/hpestackato that you have installed and configured using this guide.
- git installed
The Steps are as follows:
- Download the HPE Helion Stackato client
- Clone a sample http://github.com/Pilchuck/scalene
- “push” the application
Download the HPE Helion Stackato client
The first task is to download the Stackato client. To do this, you will need to make sure your virtualbox microcloud is started, and then navigate to the URL for the web console. If you followed the install guide, it will be something along the lines of http://10.0.0.92.xip.io.
Once connected, login with the administrator account you created previously, then choose Support from the menu and select Get HPE Helion Stackato client. This will take you to a download page where you can download your OS specific version of the command line client.
Once the download is complete, you need to copy the stackato command line client to a folder that is in your path. You can also copy it to a folder and add it to your path. This will let you run the command line from anywhere.
To test the command line enter:
This should display the version information.
Clone a sample app
Now that the client is installed, it’s time to grab an application to deploy. Let’s use a simple digital marketing site that was written in Ruby.
To grab a copy simply clone the repository using git:
git clone http://github.com/Pilchuck/scalene
This should pull down the files, and pop them in a scalene folder. Execute the following.
If you take a look at the files in that folder, you will see its a pretty typical ruby on rails application. The one exception is the manifest.yml file. This is a special file that is used by HPE Helion Stackato to determine how to deploy your application. We will deal with more on manifests in a later post, but for now simply take a look at the file. Some of the entries should be self-explanatory.
“push” the application
Now you are ready to deploy or push the application to the microcloud. Before you can do this, you need to connect and login. Use the following commands:
stackato target 10.0.0.92.xip.io
where 10.0.0.92.xip.io is the url for your microcloud
stackato login adminuser
where adminuser is the actual username you created when you configured your microcloud.
Those commands should give you something like this.
Now you can deploy the application using the following command:
stackato push -n
The -n performs the operation without asking any questions. Values from the manifest will be used as well as default values for those not specified.
Once the application has been deployed, you can navigate your browser to the web console and click [Applications->Scalene]. Here you can view information about the application you just deployed. To see the application running click the button, View App.
You can also view the application in the command line using:
stackato open scalene
Check out our other articles in the series.