App Dev Cloud with JBoss Cool Store
We have been discussing why application developers can’t ignore their stack anymore in the App Dev Cloud Stack series.
Last month we brought a full retail example with the JBoss Cool Store running on the OpenShift Enterprise layer of your stack, provided by our Red Hat CDK installation.
Shall we add a real instance of persistent storage, configure a working datasource like Postgresql?
Thanks to Andrew Block, Senior Red Hat Consultant who contributed this project you can explore this solution at your leisure.
Retail in the Cloud with storage
We will be leveraging previous work that installs the Red Hat CDK. The Red Hat CDK is packaged into a RHEL 7 virtual machine that you can start on your machine after installing this project. There are several choices provided with pre-configured installations, but they all include the basic setup for Docker and the tools needed to start leveraging Docker based containers.
The following container must be started after installing this project for you to get started with the JBoss Cool Store retail application with persistent storage:
- OpenShift Enterprise – a containerized version of OpenShift Enterprise can be started that can be accesses through a Web console in your browser or via the OpenShift command line tools. Explore your very own private PaaS developer experience with this container.
|JBoss Cool Store with a Postgresql instance
to provide backing storage in a pod.
Now that the you have the OpenShift Enterprise image up and running, you can start moving the JBoss Cool Store application with persistent storage into the Cloud with the following project:
First complete the installation and start the OpenShift image supplied in the cdk-install-demo.
Install OpenShift Client Tools if you have not done so previously.
Add products to installs directory.
Run ‘init.sh’ or ‘init.bat’ file. ‘init.bat’ must be run with Administrative privileges.
Login to Cool Store to start exploring a retail web shopping project:http://rhcs-coolstore-p-demo.10.1.2.2.xip.io/business-central ( u:erics / p:jbossbrms1! )
Now you are up and running with a fully installed, Cloud ready JBoss Cool Store . If you want to learn how to build the Cool Store from the ground up, check out this online workshop:
For more information around containers, a Cloud stack and why you need to care about this containerized stack for your application development, see the App Dev Cloud Stack series that takes you on a tour of the Red Hat Cloud Suite.Stay tuned for more!