### Example Install Docker 24.0.6 (Ubuntu 20.04) Source: https://github.com/wavemaker/docs/blob/master/learn/on-premise/upgrade/docker-upgrade.md An example command to install Docker version 5:24.0.6-1 on Ubuntu 20.04 (focal). This demonstrates the format for specifying the version string. ```bash sudo apt-get install docker-ce=5:24.0.6-1~ubuntu.20.04~focal docker-ce-cli=5:24.0.6-1~ubuntu.20.04~focal containerd.io -y ``` -------------------------------- ### Example Install Docker 24.0.6 (Ubuntu 22.04) Source: https://github.com/wavemaker/docs/blob/master/learn/on-premise/upgrade/docker-upgrade.md An example command to install Docker version 5:24.0.6-1 on Ubuntu 22.04 (jammy). This illustrates how the version string adapts to different Ubuntu releases. ```bash sudo apt-get install docker-ce=5:24.0.6-1~ubuntu.22.04~jammy docker-ce-cli=5:24.0.6-1~ubuntu.22.04~jammy containerd.io -y ``` -------------------------------- ### Run WME Installer Script Source: https://github.com/wavemaker/docs/blob/master/learn/on-premise/aws/install/initilize-setup.md This command executes the WaveMaker Enterprise installer script. Ensure you have downloaded and extracted the installer before running this command. The script will guide you through the setup process, including network interface and IP address configuration. ```bash bash /usr/local/content/wme/wme-installer//wme-installer.sh ``` -------------------------------- ### Enable and Start Docker Service Source: https://github.com/wavemaker/docs/blob/master/learn/on-premise/aws/install-prerequisites.md Enables the Docker service to start automatically on boot and then starts the Docker service. It also verifies the Docker installation by printing the Docker version. ```bash systemctl enable docker systemctl start docker docker --version ``` -------------------------------- ### Install wget on Ubuntu Source: https://github.com/wavemaker/docs/blob/master/learn/on-premise/aws/install-prerequisites.md Installs the wget utility on Ubuntu systems using apt-get. This is a common prerequisite for downloading files from the command line. ```bash sudo apt-get install wget -y ``` -------------------------------- ### Install wget and python3 on Ubuntu Source: https://github.com/wavemaker/docs/blob/master/learn/on-premise/azure/install-prerequisites.md Installs the wget utility and python3 on Ubuntu systems using the apt-get package manager. These are common prerequisites for various software installations. ```bash sudo apt-get install wget -y ``` ```bash sudo apt-get install python3 -y ``` -------------------------------- ### Install wget Utility Source: https://github.com/wavemaker/docs/blob/master/learn/on-premise/aws/install-prerequisites.md Installs the wget utility, a command-line utility for downloading files from the internet. It is often required to download installation packages or scripts. ```bash yum install wget -y ``` -------------------------------- ### Download WME Installer using wget (Linux) Source: https://github.com/wavemaker/docs/blob/master/learn/on-premise/azure/install/download-copy-installer.md This command downloads the WaveMaker Enterprise installer package from a provided URL. Ensure you have the correct WME installer link from the WaveMaker team. ```bash wget ``` -------------------------------- ### Update Cache and Install wget (Bash) Source: https://github.com/wavemaker/docs/blob/master/learn/on-premise/azure/install-prerequisites.md Updates the package cache and installs the wget utility, which is used for downloading files from the web. This is a prerequisite for many subsequent installation steps. ```bash yum update -y yum install wget -y ``` -------------------------------- ### Start Local Development Server Source: https://github.com/wavemaker/docs/blob/master/README.md This command starts the local development server for the WaveMaker documentation. It typically builds the site and serves it at a specified URL (e.g., http://localhost:3000/learn), allowing for live preview and testing of changes. ```bash npm start ``` -------------------------------- ### Create File System on New Volumes Source: https://github.com/wavemaker/docs/blob/master/learn/on-premise/aws/launching-instances-in-aws.md Format raw block devices with a file system (e.g., ext4) to make them usable. Replace '' with the actual device name identified by `lsblk`. This is crucial before mounting. ```bash Command : mkfs -t ext4 /dev/ mkfs -t ext4 /dev/ Example : mkfs -t ext4 /dev/xvdb mkfs -t ext4 /dev/xvdc ``` ```bash Command : mkfs -t ext4 /dev/ Example : mkfs -t ext4 /dev/xvdb ``` -------------------------------- ### Install Docker Prerequisites on RHEL 7 Source: https://github.com/wavemaker/docs/blob/master/learn/on-premise/upgrade/docker-upgrade.md Installs necessary prerequisites for Docker installation on RHEL 7 systems, including container-selinux, slirp4netns, fuse3-devel, fuse3-libs, and fuse-overlayfs. These packages are essential for Docker to function correctly. ```bash yum install http://mirror.centos.org/centos/7/extras/x86_64/Packages/container-selinux-2.107-1.el7_6.noarch.rpm -y yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo wget http://mirror.centos.org/centos/7/extras/x86_64/Packages/slirp4netns-0.4.3-4.el7_8.x86_64.rpm wget http://mirror.centos.org/centos/7/extras/x86_64/Packages/fuse3-devel-3.6.1-4.el7.x86_64.rpm wget http://mirror.centos.org/centos/7/extras/x86_64/Packages/fuse3-libs-3.6.1-4.el7.x86_64.rpm wget http://mirror.centos.org/centos/7/extras/x86_64/Packages/fuse-overlayfs-0.7.2-6.el7_8.x86_64.rpm sudo yum install slirp4netns-0.4.3-4.el7_8.x86_64.rpm -y sudo yum install fuse3-devel-3.6.1-4.el7.x86_64.rpm -y sudo yum install fuse3-libs-3.6.1-4.el7.x86_64.rpm -y sudo yum install fuse-overlayfs-0.7.2-6.el7_8.x86_64.rpm -y ``` -------------------------------- ### Install MockingBird Helm Chart Source: https://github.com/wavemaker/docs/blob/master/learn/extensions/mockingbird/enterprise/install.md Command to install the MockingBird Platform Helm chart. This command requires the Helm package name and the path to the one-time setup values YAML file. It deploys the chart into the 'mockingbird' namespace. ```bash helm install mockingbird [HELM-PACKAGE] -n mockingbird -f one-time-setup-values.yaml ``` -------------------------------- ### Install and Manage OpenSSH Server (Shell) Source: https://github.com/wavemaker/docs/blob/master/learn/on-premise/vmware-esxi/launching-instances-in-esxi-iso.md Installs the OpenSSH server package on Debian-based systems, starts the SSH service, and checks its current status. This enables secure remote terminal connections. ```shell sudo apt-get install openssh-server -y sudo systemctl start ssh sudo systemctl status ssh ``` -------------------------------- ### List and Format Block Devices in VM Source: https://github.com/wavemaker/docs/blob/master/learn/on-premise/azure/launching-instances-in-azure.md Lists available block devices on the virtual machine and creates an ext4 file system on new, raw block devices. This is a prerequisite for mounting the disks for use by applications. ```bash lsblk ``` ```bash Command : mkfs -t ext4 /dev/ mkfs -t ext4 /dev/ Example : mkfs -t ext4 /dev/sdd mkfs -t ext4 /dev/sdc ``` -------------------------------- ### Create One-Time Setup Values YAML Source: https://github.com/wavemaker/docs/blob/master/learn/extensions/mockingbird/enterprise/install.md YAML configuration for the one-time setup of the MockingBird Platform. It includes placeholders for domain name and static IP, and an optional property for OpenShift deployments. ```yaml global: domainName: [MOCKINGBIRD-DOMAIN] apimock-ingress-nginx: controller: service: loadBalancerIP: [MOCKINGBIRD-STATIC-IP] ``` ```yaml global: domainName: [MOCKINGBIRD-DOMAIN] openshift: "true" apimock-ingress-nginx: controller: service: loadBalancerIP: [MOCKINGBIRD-STATIC-IP] ``` -------------------------------- ### Install Specific Docker Version (Ubuntu) Source: https://github.com/wavemaker/docs/blob/master/learn/on-premise/upgrade/docker-upgrade.md Installs a specific version of Docker CE, Docker CE CLI, and containerd.io. Replace `` with the desired version obtained from `apt-cache madison`. ```bash sudo apt-get install docker-ce= docker-ce-cli= containerd.io -y ``` -------------------------------- ### Create File System on New Volume Source: https://github.com/wavemaker/docs/blob/master/learn/on-premise/azure/launching-instances-in-azure.md Format a raw block device with a file system (e.g., ext4) before it can be mounted. Replace `` with the actual device name. ```bash mkfs -t ext4 /dev/< block-device-name > # Example: mkfs -t ext4 /dev/sdc ``` -------------------------------- ### Install HTTPS Transport for APT (Ubuntu) Source: https://github.com/wavemaker/docs/blob/master/learn/on-premise/upgrade/docker-upgrade.md Installs necessary packages for the APT package manager to securely use repositories over HTTPS. This is a prerequisite for adding Docker's official repository on Ubuntu. ```bash sudo apt-get update sudo apt-get install ca-certificates curl gnupg lsb-release ``` -------------------------------- ### Create Mount Points and Mount Disks in VM Source: https://github.com/wavemaker/docs/blob/master/learn/on-premise/azure/launching-instances-in-azure.md Creates directories to serve as mount points for new volumes and then mounts the specified block devices to these directories. This makes the storage accessible within the VM's file system. ```bash mkdir /wm-data /wm-runtime ``` ```bash Command : mount /dev/ /wm-data mount /dev/ /wm-runtime Example : mount /dev/sdc /wm-data mount /dev/sdd /wm-runtime ``` -------------------------------- ### List Available Docker Versions on Ubuntu Source: https://github.com/wavemaker/docs/blob/master/learn/on-premise/aws/install-prerequisites.md Updates the apt package list and then uses 'apt-cache madison' to display the available versions of Docker CE and Docker CE CLI. This helps in selecting a specific version for installation. ```bash apt-get update apt-cache madison docker-ce apt-cache madison docker-ce-cli ``` -------------------------------- ### Configure WaveMaker Docker Settings Source: https://github.com/wavemaker/docs/blob/master/learn/on-premise/upgrade/docker-upgrade.md Executes shell scripts to configure the installed Docker for WaveMaker. Separate scripts are provided for Ubuntu and RHEL systems. These scripts should be run after Docker installation and user permission configuration. ```bash bash docker_configure.sh bash docker_setup_rhel.sh ``` -------------------------------- ### Complete User Idle Timeout Setup in React Native Source: https://github.com/wavemaker/docs/blob/master/learn/react-native/user-idle-timeout.md A comprehensive example demonstrating the setup of `userIdleTimeout`, including setting the duration, optionally resetting the timeout, and defining the `onUserIdle` callback to display an alert. ```javascript // Set up userIdleTimeout App.userIdleTimeout = 5 * 1000; // 5 seconds // Reset the timeout dynamically if needed // App.resetInactivityTimeout(); // Handle the callback function for idle events App.onUserIdle = function () { const reactnative = require("react-native"); reactnative.Alert.alert( "User is Idle", "User is idle for " + App.userIdleTimeout / 1000 + " seconds", [ { text: "Ask me later", }, { text: "Cancel", style: "cancel", }, { text: "OK", }, ] ); }; ``` -------------------------------- ### Create File System on Block Device Source: https://github.com/wavemaker/docs/blob/master/learn/on-premise/gcp/launching-instances-in-gcp.md Format a raw block device with the ext4 file system. Replace `` with the actual device name (e.g., sdc, sdd). This is a prerequisite for mounting the volume. ```bash mkfs -t ext4 /dev/ mkfs -t ext4 /dev/ Example : mkfs -t ext4 /dev/sdd mkfs -t ext4 /dev/sdc ``` -------------------------------- ### Example Validation Message Structure (JSON) Source: https://github.com/wavemaker/docs/blob/master/learn/how-tos/get-validation-messages-form.md This JSON structure represents an example of validation messages returned from a form. Each object details an invalid field, including its name, error type, a custom message, and its fully qualified form name. ```json [{ "Field":"state", "errorType":["required"], "message":"Enter the address", "formName":"addressForm", "fullyQualifiedFormName":"UserForm.DetailsForm.addressForm" }, { "Field":"city", "errorType":["required"], "Message":"", “formName":"addressForm", "fullyQualifiedFormName":"UserForm.DetailsForm.addressForm" }, { "Field":"name", "errorType":["required"], "message":"Enter the details", "formName":"DetailsForm", "fullyQualifiedFormName":"UserForm.DetailsForm" }, { "Field":"age", "errorType":["required"], "message":"Enter the details", "formName":"DetailsForm", "fullyQualifiedFormName":"UserForm.DetailsForm" }, { "Field":"name", "errorType":["required"], "message":"Enter user name", "formName":"UserForm", "fullyQualifiedFormName":"UserForm" }] ``` -------------------------------- ### List and Install Docker versions on Ubuntu Source: https://github.com/wavemaker/docs/blob/master/learn/on-premise/gcp/install-prerequisites.md Commands to list available Docker CE versions and install a specific version along with its CLI and containerd.io on Ubuntu 20.04 and 22.x. ```bash apt-get update apt-cache madison docker-ce apt-cache madison docker-ce-cli ``` ```bash sudo apt-get install docker-ce= docker-ce-cli= containerd.io example: sudo apt-get install docker-ce=5:24.0.4-1~ubuntu.20.04~focal docker-ce-cli=5:24.0.4-1~ubuntu.20.04~focal containerd.io -y ``` ```bash example: sudo apt-get install docker-ce=5:24.0.4-1~ubuntu.22.04~jammy docker-ce-cli=5:24.0.4-1~ubuntu.22.04~jammy containerd.io -y ``` -------------------------------- ### Stop and Remove Docker on RHEL Source: https://github.com/wavemaker/docs/blob/master/learn/on-premise/upgrade/docker-upgrade.md Commands to stop the current Docker service and list or remove the installed Docker Engine packages on RHEL systems. This is a prerequisite for upgrading Docker. ```bash service docker.socket stop service docker stop yum list docker-ce rpm -e example: rpm -e docker-ce.x86_64 docker-ce-rootless-extras.x86_64 ``` -------------------------------- ### Verify Installer Checksum using FCIV (Windows) Source: https://github.com/wavemaker/docs/blob/master/learn/on-premise/azure/install/download-copy-installer.md This command verifies the integrity of the downloaded installer file (OVA) using its SHA1 checksum on Windows. First, download and configure the FCIV utility, then run this command from the command prompt in the file's directory. ```bash cd FCIV -sha1 pathfilename.ext ``` -------------------------------- ### Rollback MockingBird Setup using Helm Source: https://github.com/wavemaker/docs/blob/master/learn/extensions/mockingbird/enterprise/upgrade.md This command rolls back the MockingBird platform to a previously installed patch or upgrade. It targets the 'mockingbird' namespace and reverts to the last successful deployment. ```bash helm rollback mockingbird -n mockingbird ``` -------------------------------- ### List Available Docker Versions (Ubuntu) Source: https://github.com/wavemaker/docs/blob/master/learn/on-premise/upgrade/docker-upgrade.md Updates the APT package index and lists all available versions of `docker-ce` and `docker-ce-cli` from the configured Docker repository. This helps in selecting the specific version for installation. ```bash sudo apt-get update apt-cache madison docker-ce apt-cache madison docker-ce-cli ```