Docker Samples on GitHub

TIBCO provides a number of advanced Docker samples on its GitHub repository. You can load these samples into Studio like other samples:

  1. Invoke File>Import Samples and Community Content.

  2. Select the Include community samples check box:

  3. Click the Pull from remote repositories now link to make sure you have the latest versions.

  4. In the search field, enter docker to narrow the list to the Docker related samples. At this writing, this results in the following:

  5. Select a sample such as Docker: 2-node EventFlow and click Import Now.

Consider the following notes on these samples.

  • These samples come into Studio as a compound project with the fragment project and application project in subordinate folders:

  • Instructions are generally found, not in the files, but in the app project's src/site/markdown/ file.

  • The EventFlow module in the fragment project is generally empty. A StreamBase Application generated from the app project will install and run in Docker, but there is nothing to connect to in the container. You are free to copy any tested and known working EventFlow module to replace the empty module, preserving its module name.

  • These samples are generally configured to be built by running mvn install at the command prompt. However, they do work in Studio if you remember to install the fragment first.

    For example, for the 2-node EventFlow sample, in the Project Explorer view, select the ef-2node-eventflow folder. Right-click and select Run As>Build... as described in Maven-Install the Fragment. Only then can you can generate the image from the 2-node-app folder as described in Build the Docker Image.