Skip to main content Skip to complementary content

Executing ESB artifacts on Docker

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

Did this page help you?

If you find any issues with this page or its content – a typo, a missing step, or a technical error – please let us know!