Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Panel

Copy the respective product pack in the .zip format to the packs folder, which is in the /etc/puppet/modules/wso2installer/files/<SERVER_NAME> directory. 
Example: When configuring ESB navigate to the /etc/puppet/modules/wso2installer/files/wso2esb481/packs directory.

Info

You can download the product pack from the respective products product download page.

Example: Download ESB from here.

...

Panel
  1. Navigate to the <PRIVATE-PAAS-CARTRIDGES>/wso2esb/4.8.1/docker directory.

    Code Block
    cd <PRIVATE-PAAS-CARTRIDGES>/wso2esb/4.8.1/docker
  2. Run the build.sh file to build the Docker image.

    Info

    This will copy the plugins and the template module to the Docker image.

    Code Block
    ./build.sh
  3. List the Docker images.

    Code Block
    docker images

    Example response format: If you have successfully build the Docker image, you will get the following as a the response:

    Code Block
    wso2/das        3.0.0              ac57800e96c2        2 minutes ago         777.6 MB
  4. Save the new image to a .tar file.

    Code Block
    docker save <NEW_IMAGE_NAME> > <LOCATION_OF_OF_TAR_FILE>

    For example:

    Code Block
    docker save myppaasimage > /tmp/myppaasimage.tar
  5. Copy the Docker image to the Kubernetes minion nodes.

    Code Block
    scp <IMAGE_NAME>.tar core@<NODE_IP>:

    Example:

    Code Block
    scp myppaasimage.tar core@172.17.8.102:
    Info

    Execute the kubectl get nodes command to get the IP address of the Kubernetes nodes.

  6. SSH into the Kubernetes node using one of the following commands:

    Code Block
    ssh core@<NODE_IP> or vagrant ssh node-01
  7. Load the .tar file to the Kubernetes node.

    Code Block
    docker load < <LOCATION_OF_OF_TAR_FILE>

    Example:

    Code Block
    docker load < /tmp/myppaasimage.tar
Info

If there is more than one Kubernetes node, repeat step 4, 5 and 6 for the remaining nodes.

...

Panel

Configure the following parameters in the cartridge JSON file:

  1. Ensure that the imageId under the iaasProvider matches is the same as the Docker image IDyou created, If you are running Private PaaS on Kubernetes.
  2. Update the datasource configurations, i.e DB URLs, username and password, under properties.

    Info

    Update datasource configurations for all cartridge JSON files that run on all IaaS, except the Mock IaaS.

    Expand
    titleDatasource configurations
    Code Block
    {
      "name": "payload_parameter.CONFIG_PARAM_REGISTRY_DB_URL",
      "value": "jdbc:mysql://192.168.30.7:3306/stratos_reg_db?autoReconnect=true"
    },
    {
      "name": "payload_parameter.CONFIG_PARAM_REGISTRY_DB_USER_NAME",
      "value": "<USER_NAME>"
    },
    {
      "name": "payload_parameter.CONFIG_PARAM_REGISTRY_DB_PASSWORD",
      "value": "<PASSWORD>"
    },
    {
      "name": "payload_parameter.CONFIG_PARAM_CONFIG_DB_URL",
      "value": "jdbc:mysql://192.168.30.7:3306/config_db_esb?autoReconnect=true"
    },
    {
      "name": "payload_parameter.CONFIG_PARAM_CONFIG_DB_USER_NAME",
      "value": "<USER_NAME>"
    },
    {
      "name": "payload_parameter.CONFIG_PARAM_CONFIG_DB_PASSWORD",
      "value": "<PASSWORD>"
    },
    {
      "name": "payload_parameter.CONFIG_PARAM_USER_MGT_DB_URL",
      "value": "jdbc:mysql://192.168.30.7:3306/stratos_user_db?autoReconnect=true"
    },
    {
      "name": "payload_parameter.CONFIG_PARAM_USER_MGT_DB_USER_NAME",
      "value": "<USER_NAME>"
    },
    {
      "name": "payload_parameter.CONFIG_PARAM_USER_MGT_DB_PASSWORD",
      "value": "<PASSWORD>"
    }

    Example:

    Code Block
    {
      "name": "payload_parameter.CONFIG_PARAM_REGISTRY_DB_URL",
      "value": "jdbc:mysql://192.168.30.7:3306/stratos_reg_db?autoReconnect=true"
    },
    {
      "name": "payload_parameter.CONFIG_PARAM_REGISTRY_DB_USER_NAME",
      "value": "root"
    },
    {
      "name": "payload_parameter.CONFIG_PARAM_REGISTRY_DB_PASSWORD",
      "value": "root"
    },
    {
      "name": "payload_parameter.CONFIG_PARAM_CONFIG_DB_URL",
      "value": "jdbc:mysql://192.168.30.7:3306/config_db_esb?autoReconnect=true"
    },
    {
      "name": "payload_parameter.CONFIG_PARAM_CONFIG_DB_USER_NAME",
      "value": "root"
    },
    {
      "name": "payload_parameter.CONFIG_PARAM_CONFIG_DB_PASSWORD",
      "value": "root"
    },
    {
      "name": "payload_parameter.CONFIG_PARAM_USER_MGT_DB_URL",
      "value": "jdbc:mysql://192.168.30.7:3306/stratos_user_db?autoReconnect=true"
    },
    {
      "name": "payload_parameter.CONFIG_PARAM_USER_MGT_DB_USER_NAME",
      "value": "root"
    },
    {
      "name": "payload_parameter.CONFIG_PARAM_USER_MGT_DB_PASSWORD",
      "value": "root"
    }

...

Step 6: Running the product as service on Private PaaS

Panel
  1. Navigate to the preferred WSO2 products application sample directorythe application directory of the preferred WSO2 product.

    Code Block
    cd <PRIVATE_PAAS_CARTRIDGES_HOME>/<SERVER_NAME>/<VERSION>/samples/applications/<SERVER_NAME>-<VERSION>-application/scripts/<IAAS>

    Example:

    Code Block
    cd <PRIVATE_PAAS_CARTRIDGES_HOME>/wso2das/3.0.0/samples/applications/wso2das-300-application/scripts/mock
  2. Deploy the application.

    Code Block
    ./deploy.sh

...