TIBCO provides a number of advanced Docker samples on its GitHub repository. You can load these samples into Studio like other samples:
Select the Include community samples check box:
(If you have never accessed the community samples on this computer for any TIBCO Streaming release, you see the following link instead:
See Using the GitHub Content for further notes on using this feature.)
Click the Pull from remote repositories now link to make sure you have the latest sample versions and to configure your local clone to use the branch appropriate for this Studio release.
In the search field, enter
dockerto narrow the list to the Docker related samples. At this writing, this results in the following:
Select a sample such as
Docker: 2-node EventFlowand click .
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 README.md files, but in the app project's
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 Maven-install the fragment first.
For example, for the
2-node EventFlowsample, in the Project Explorer view, select the
ef-2node-eventflowfolder. Right-click and select > as described in Maven-Install the Fragment. Only then can you can generate the image from the
2-node-appfolder as described in Build and Install the Docker Image.