This documentation is for WSO2 Enterprise Integrator version 6.5.0 . View documentation for the latest release in the 6.x.x family and the latest release in the 7.x.x family.

All docs This doc

Versions Compared

Key

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

...

  1. Export the integration artifacts into a CAR file.

  2. Create the Dockerfile as shown below. This file contains instructions to download the base Docker image of WSO2 Micro Integrator from DockerHub (community version) or the WSO2 Docker Registry (includes updates), and to copy the integration artifacts to the Micro Integrator.

    Code Block
    titleDockerfile
    FROM <docker_image_name>:1.0.0
    
    COPY <directoy_path>/<capp_name> /home/wso2eiwso2carbon/wso2mi/repository/deployment/server/carbonapps
    Expand
    titleAbout the Dockerfile

    The information specified in the Docker file is as follows:

    FROM

    The 'FROM' tag in the docker file specifies the WSO2 Micro Integrator version that should be downloaded. You can use the updated Docker image or the community version as shown below. The version is 1.0.0 of the WSO2 Micro Integrator. If required, you can use an earlier version by replacing 'latest' with the version number.

    Code Block
    titleExample 1: Docker image with updates
    FROM docker.wso2.com/micro-integrator:1.0.0
    Code Block
    titleExample 2: Docker image without updates (community version)
    FROM wso2/micro-integrator:1.0.0
    COPY

    The 'COPY' tag in the docker file specifies the directory path to your composite application, followed by the location in your Docker instance to which the composite application should be copied.

    Code Block
    titleExample 1
    COPY carbonapps /home/wso2eiwso2carbon/wso2mi/repository/deployment/server/carbonapps

    If you have multiple composite application that you want to deploy in Docker using a single Docker image, add another entry to the Dockerfile. For example:

    Code Block
    titleExample 2
    COPY carbonapps /home/wso2eiwso2carbon/wso2mi/repository/deployment/server/carbonapps
    COPY <sample_carbon_app> /home/wso2eiwso2carbon/wso2mi/repository/deployment/server/carbonapps
  3. Create an immutable Docker image for your integration artifacts on WSO2 Micro Integrator by executing the following command from the location of your Dockerfile.

    Code Block
    docker build -t sample_docker_image .
  4. Start a Docker container by running the Docker image as shown below.

    Code Block
    docker run -d -p 8290:8290 sample_docker_image

...