Join us on May 14-15, 2019 at Forrester Digital Transformation & Innovation 2019 in Chicago, USA.
Google Cloud Platform is Google's cloud computing and hosting platform. The Compute Engine is a part of the Google Cloud Platform that runs virtual machines (VM) on Google's high performance, scalable infrastructure.
As an open source platform to easily build enterprise web apps for cloud and mobile, Joget Workflow is a good complement for the Google Cloud Platform.
This article describes the steps required to deploy Joget Workflow on a Linux VM using the Compute Engine. You can also use other OS platforms (e.g. Windows, OSX, etc) by adapting the commands accordingly.
Step 1: Signup for Google Cloud Platform
Signup for the Google Cloud Platform at https://console.cloud.google.com/freetrial
Step 2: Install the Cloud SDK
Install the Cloud SDK on your PC following the instructions in https://cloud.google.com/sdk/docs/quickstarts
In the Quickstart, you must complete the section "Before you begin" and "Initialize the SDK". After which, you may see the following messages.
Not setting default zone/region (this feature makes it easier to use [gcloud compute] by setting an appropriate default value for the --zone and --region flag).
See https://cloud.google.com/compute/docs/gcloud-compute section on how to set default compute region and zone manually. If you would like [gcloud init] to be able to do this for you the next time you run it, make sure the Compute Engine API is enabled for your project on the https://console.developers.google.com/apis page.
You must also enable "Google Compute Engine API" at https://console.developers.google.com/apis for the project (created automatically for you if you have none) in order to continue with the next step.
Step 3: Create a new Linux VM
Once the Cloud SDK is installed and verified to be working, create a new Linux VM using the following commands:
If you are using a low-memory machine type (e.g. f1-micro), then you will need to add swap space:
Step 4: Deploy Joget Workflow in the VM
Run the following commands to download and install Joget Workflow Enterprise Edition:
Deployment may take several minutes (depending on the type of VM) so be patient.
Monitor the logs using:
The deployment is complete once you see the following in the logs:
Press CTRL-C to stop viewing the logs.
Step 5: Add Firewall Rule for Default Apache Tomcat Port 8080
The default installation bundle runs on Apache Tomcat port 8080. Add a firewall rule to allow traffic to access the default Apache Tomcat port 8080:
More information available at https://cloud.google.com/compute/docs/networking#addingafirewall
Step 6: Access Joget Workflow installation
Check the external IP of the VM instance by running the command: