Executing ESB artifacts on Docker - 7.3

Talend Software Development Life Cycle Best Practices Guide

EnrichVersion
7.3
EnrichProdName
Talend Big Data
Talend Data Fabric
Talend Data Integration
Talend Data Management Platform
Talend Data Services Platform
Talend ESB
Talend MDM Platform
EnrichPlatform
Talend Administration Center
Talend Artifact Repository
Talend CommandLine
Talend JobServer
Talend Studio
task
Administration and Monitoring
Deployment
Design and Development

Procedure

  1. Open a command prompt or terminal and execute the following command to run the DemoRESTRoute artifact.
    $ docker run -d -p <MACHINE_PORT>:8065 --name DemoRESTRoute <STUDIO_PROJECT>/demorestroute
    						009335e9edb0cd2d01682bfa92fd4a19e7fe567a7b7247463aa835b3acb9e878
    where
    • <MACHINE_PORT> corresponds to the port used to bind the host port to the container port
    • <STUDIO_PROJECT> corresponds to the Talend Studio project name that is the same as the Git project name. Project names must be in upper case.
  2. Execute the docker container ls command to list the containers and check that the Docker container is running.

    Example

    $ docker container ls
    						CONTAINER ID        IMAGE                            COMMAND                  CREATED             STATUS              PORTS                    NAMES
    						42b4f16477bd        <STUDIO_PROJECT>/demorestroute   "./DemoRESTRoute_run…"   4 seconds ago       Up 4 seconds        0.0.0.0:8090->8065/tcp   DemoRESTRoute
  3. Access the endpoint in a browser, an XML document is returned.

    Example

    http://localhost:<MACHINE_PORT>/services/customers
  4. Execute the docker container rm command to clean the Docker container after deploying the artifact.

    Example

    $ docker container rm -f DemoRESTRoute