### Installer Init Migrate Command Example Source: https://docs.mendix.com/private-mendix-platform/quickstart Example of running the 'installer init migrate' command to upload images to a private registry, including prompts for user password and confirmation. ```bash ./installer init migrate -r [registry] -u user -e [repositoryName] Please enter user password: ****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************** Confirm password: ****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************** the config checksum is empty The image destination[REDACTED] svix-server:v0.75.0 The image destiation [REDACTED] mendix-private-platform:1.4.0.80d447b1 the config checksum is empty The image destiation [REDACTED] mxpc-test:1.0 the config checksum is empty The image destiation [REDACTED] privatecloud-license-manager:0.3.0 svix-server_v0.75.0 => [REDACTED] svix-server:v0.75.0 - ok mendix-private-platform_1.4.0.80d447b1 => [REDACTED] mendix-private-platform:1.4.0.80d447b1 - ok mxpc-test_1.0 => [REDACTED] mxpc-test:1.0 - ok privatecloud-license-manager_0.3.0 => [REDACTED] privatecloud-license-manager:0.3.0 - ok ``` -------------------------------- ### Installing Private Cloud Components Source: https://docs.mendix.com/private-mendix-platform/quickstart Command to install the Private Cloud components using the installer. ```bash ./installer component -n= ``` -------------------------------- ### Installer Command Source: https://docs.mendix.com/private-mendix-platform/quickstart The command to run for installing the Private Mendix Platform. ```bash ./installer platform -n= ``` -------------------------------- ### Install Build Agent Command Source: https://docs.mendix.com/private-mendix-platform/quickstart Command to copy images for the Build Agent installation. ```bash cp -r mxplatform-kube-agent/images/* /pmp-binary-linux/images ``` -------------------------------- ### Installer Init Migrate Help Source: https://docs.mendix.com/private-mendix-platform/quickstart Displays help information for the 'installer init migrate' command, which is used to migrate Mendix Private Platform related images to your own registry. ```bash ./installer init migrate --help Migrate Mendix Private Platform related image to your own registry Usage: installer init migrate [flags] Flags: -h, --help help for migrate -r, --registryurl string registry url (required) -e, --repo string Repository name -u, --username string Username (required) for your private registry ``` -------------------------------- ### Database Setup for Authenticator Source: https://docs.mendix.com/private-mendix-platform/quickstart Commands to create the 'Authenticator' database and a user with necessary privileges. ```sql CREATE Database ; // granted with Login permissions to the DB and CRUD tables, extends installation CREATE ROLE WITH LOGIN; ALTER ROLE WITH PASSWORD ''; ALTER ROLE VALID UNTIL 'infinity'; GRANT ALL PRIVILEGES ON DATABASE to ; \c GRANT ALL ON SCHEMA public to ; ``` -------------------------------- ### Database Setup for Collector Source: https://docs.mendix.com/private-mendix-platform/quickstart Commands to create the 'Collector' database and a user with necessary privileges. ```sql //preare the database for collector services; Create database ; //prepare the roles, the role need has permission to the database CREATE ROLE WITH LOGIN; ALTER ROLE WITH PASSWORD ''; ALTER ROLE VALID UNTIL 'infinity'; GRANT ALL PRIVILEGES ON DATABASE to ; \c ; GRANT ALL ON SCHEMA public to ; ``` -------------------------------- ### NATS Installation using Helm Source: https://docs.mendix.com/private-mendix-platform/quickstart Commands to add the NATS Helm repository, update it, and install NATS with cluster enabled. ```bash > helm repo add nats https://nats-io.github.io/k8s/helm/charts/ > helm repo update > helm repo list NAME URL nats https://nats-io.github.io/k8s/helm/charts/ > helm install nats nats/nats --set cluster.enabled=true,cluster.name=nats -n ``` -------------------------------- ### Base Installation - Standard Mode Source: https://docs.mendix.com/private-mendix-platform/quickstart Command to install the Mendix Operator in Standard mode. ```bash ./mxpc-cli installer -n= ``` -------------------------------- ### Copying Images for Installer Source: https://docs.mendix.com/private-mendix-platform/quickstart Command to copy images from the unzipped Private Mendix Platform archive to the installer's images directory. ```bash cp -r mx-private-cloud/images/* /pmp-binary-linux/images ``` -------------------------------- ### Base Installation - Global Mode Source: https://docs.mendix.com/private-mendix-platform/quickstart Command to install the Mendix Operator in Global mode. Requires a Global namespace. ```bash ./mxpc-cli installer --global -n= ``` -------------------------------- ### Svix Server Dockerfile CMD Source: https://docs.mendix.com/private-mendix-platform/quickstart Command to run the Svix server, including options for waiting and running migrations. ```shell USER appuser CMD \ set -ex ; \ if [ ! -z "$WAIT_FOR" ]; then \ WAIT_FOR_ARG="--wait-for 15"; \ fi ; \ exec svix-server --run-migrations $WAIT_FOR_ARG ``` -------------------------------- ### Proof - Integrity Control via Infrastructure-as-Code Source: https://docs.mendix.com/private-mendix-platform/nist-controls/sa-10 Example of storing infrastructure definitions and platform deployment manifests in VCS. ```text Version-controlled master copies - All infrastructure definitions (Terraform) and platform deployment manifests are stored in VCS like GitLab, serving as the "master copies" for the system. This prevents unauthorized modification or destruction of security-relevant materials. ``` -------------------------------- ### Specify Mendix Operator Version Source: https://docs.mendix.com/private-mendix-platform/quickstart Command to specify a different Mendix Operator version during installation. ```bash ./installer operator init -v="version number" ```