WaveMaker Enterprise Setup on Google Cloud Platform
Prerequisite
- Having access in Google Cloud Platform (GCP) to create Instances and other resources. for more details visit IAM and permissions in GCP.
- Assuming VPC is already created. for creating VPC in GCP visit VPC creation in GCP.
Firewall Rules for Platform and StudioWorkspace Instance / AppDeployment Instance
Applies for Workspace Instance/App Deployment Instance
- For creating firewall rules and more details visit firewall rules in GCP
- For WME setup in GCP require 3 firewall rules ,are
Create firewall rules for developer network access to the Platform Instance
- Provide basic details name and network details for firewall.
- Select target type and source filter type.by using the target we can connect the firewall rule to Instance. example the which Instance have target tag the firewall is connect to that Instance and by using the source we can open ports to specific Instance. example the which Instance have a source tag the ports will be open to that Instance. we provide this tags at network section during the Instance creation.or else you can select your own Target and Source methods.
Create a firewall rule for Platform Instance
Applies for access from the StudioWorkspace Instance / AppDeployment Instance
- Provide basic details name and network details for firewall.
- Select target type and source filter type.by using the target we can connect the firewall rule to Instance. example the which Instance have target tag the firewall is connect to that Instance and by using the source we can open ports to specific Instance. example the which Instance have a source tag the ports will be open to that Instance. we provide this tags at network section during the Instance creation.or else you can select your own Target and Source methods.
Create firewall rule for StudioWorkspace Instance / AppDeployment Instance
Applies for access from the Platform Instance
- Provide basic details name and network details for firewall
- Select target type and source filter type. by using the target we can connect the firewall rule to Instance. example the which Instance have target tag the firewall is connect to that Instance and by using the source we can open ports to specific Instance. example the which Instance have a source tag the ports will be open to that Instance.we provide this tags at network section during the Instance creation.or else you can select your own Target and Source methods.
Creating a Platform Instance
- Select region,zone and provide name for Instance.select machine type with minimum 16 GB memory.
- Select image or snapshot for creating boot disk.select operating system as ubuntu and version as ubuntu 16.04 LTS.
- Provide ssh key details in security for accessing the Instance.
- At disk section create disks for wm-data and wm-runtime with 150 and 50 GiB.
- At network section provide respected network tags of your firewall if you using source and target tags at firewall rules and create Instance.
Creating a StudioWorkspace Instance / AppDeployment Instance
Applies for Studio Instance/App Deployment Instance
- Select region,zone and provide name for Instance.select machine type.
- Select image or snapshot for creating boot disk.select operating system as ubuntu and version as ubuntu 16.04 LTS.
- Provide ssh key details in security for accessing the Instance.
- At disk section create disk for StudioWorkspace Instance / AppDeployment Instance usage with minimum of 100 GiB.
- At network section provide respected network tags of your firewall if you using source and target tags at firewall rules and create Instance.
Mounting Storage volumes in Instances
Mounting Disks in Platform Instance
- For ssh into the Platform Instance use the following command.
- For login use the following command
ssh -i /path/to/ssh-privatekey username@ipaddress
- Check your list of block devices available by using the following command.
lsblk
- New volumes are raw block devices, and you must create a file system on them before you can mount and use them. For creating file systems use following command.
Command : mkfs -t ext4 /dev/<block-device-name_1>
mkfs -t ext4 /dev/<block-device-name_2>
Example :
mkfs -t ext4 /dev/sdd
mkfs -t ext4 /dev/sdc
- Use the mkdir command to create a mount point directory for the volume. The mount point is where the volume is located in the file system tree and where you read and write files to after you mount the volume. for wme-setup create two directories.create directories using the following commands.
mkdir /wm-data /wm-runtime
- Use the following command to mount the volume at the directory.
Command :
mount /dev/<block-device-name_1> /wm-data
mount /dev/<block-device-name_2> /wm-runtime
Example :
mount /dev/sdc /wm-data
mount /dev/sdd /wm-runtime
- To mount an attached Disk on every system reboot, add an entry for the device to the /etc/fstab file.
- Take UUID of disks for identification by using the command.
blkid
- Entry the UUID of the disks in
fstab.use
the following format
UUID=<block-device_1-UUID> /wm-data ext4 defaults ,nofail 0 2
UUID=<block-device_2-UUID> /wm-runtime ext4 defaults ,nofail 0 2
Mounting Disks in StudioWorkspace Instance / AppDeployment Instance
note
Applies for StudioWorkspace Instance/AppDeployment Instance
- For ssh into the platform virtual machine use the following command.
- For login use the following command.
ssh -i /path/to/ssh-privatekey username@ipaddress
- Check your list of block devices available by using the following command.
lsblk
- New volumes are raw block devices, and you must create a file system on them before you can mount and use them. For creating file systems use following command.
Command : mkfs -t ext4 /dev/<block-device-name>
Example : mkfs -t ext4 /dev/sdc
- Use the
mkdir
command to create a mount point directory for the volume. The mount point is where the volume is located in the file system tree and where you read and write files after you mount the volume. For WME-Setup, create two directories using the following commands.
mkdir /data
- Use the following command to mount the volume at the directory.
Command: mount /dev/block-device-name /data
Example: mount /dev/sdc /data
- To mount an attached Disk on every system reboot, add an entry for the device to the /etc/fstab file.
- Take UUID of disks for identification by using the command.
blkid
- Entry the UUID of the disks in
fstab.use
the following format.
UUID=<your-block-device-UUID> /data ext4 defaults ,nofail 0 2
What's next
- Install prerequisites softwares based on OS.
- Start WME Installation process