Welcome to Semarchy.
This tutorial shows you how to set up Semarchy xDI on Docker to run the tutorials available on the Semarchy website.
If you have not already done so, click the button below to download resources such as the sample files that you will use to set up xDI in this tutorial.
Before starting, download the Docker Compose samples with the link below. The archive contains sample files that are used in this tutorial.
The Semarchy xDI architecture includes the following components:
In this tutorial, you will use two Docker Compose files:
The Semarchy xDI Runtime Docker image uses an official Tomcat base image composed of the latest:
The Semarchy xDI Analytics Docker image uses an official Tomcat base image composed of the latest:
The PostgreSQL images are using the official PostgreSQL Docker image.
In the next step, you will start by installing Docker if you have not done so already.
Follow the instructions provided on the Docker website to download and install Docker Desktop for your operating system:
In the next step, you will use Docker Compose to configure and run a Docker container.
A module is generated for each driver in Semarchy xDI Designer. We will add the PostgreSQL module for each xDI component in the quick-install folder.
The quick-install folder is located in the xdi-tutorials-main folder that you downloaded and unzipped at the Introduction stage.
In this tutorial, we will use the following syntax conventions at the command line:
Source folder | Target folder |
<xdi-designer-folder>\runtime\modules\PostgreSQL | <docker-quick-install>\docker\xdi-runtime\docker-compose\shared-resources\modules\BACKEND-DATABASE * * If this folder does not exist, you will need to create it. |
<docker-quick-install>\docker\xdi-analytics\docker-compose\shared-resources\tomcat-additional-libraries | |
<docker-quick-install>\docker\xdi-analytics\docker-compose\shared-resources\analytics-webapp-home\jdbc |
You will now configure your xDI Runtime Docker container and run it using Docker Compose.
docker-compose.yml
file in the xdi-runtime\docker-compose
folder of the tutorial resources you have downloaded at the beginning of this tutorial. This YAML file defines the services, networks, and volumes to run and use in your Docker container.services/ports:
Runtime HTTP portservices/environment/XDI_RUNTIME_SESSIONLOG_DB_JDBC_USER
and XDI_RUNTIME_SESSIONLOG_DB_JDBC_PASSWORD:
credentials used by xDI Runtime to access the runtime database.docker-compose.yml
file.docker compose -f docker-compose.yml up -d
- Network docker-compose_semarchy-net Created 0.0s
- Container docker-compose-semarchy-xdi-runtime-backend-database-1 Healthy 6.1s
- Container semarchy-xdi-runtime Started 6.4s16.9s
docker cp <xdi-designer-folder>/runtime/modules <docker container id>:/opt/semarchy/xdi-runtime/modules
You can test the connection to this runtime from Semarchy xDI Designer. In xDI Designer, you should set the parameters of the runtime with the HTTP port, user, and password defined in the configuration file: docker-compose.yml
and engineParameters.xml
.
xDI Runtime is now up and running.
You can stop the docker-compose using the command below (or through the GUI of Docker Desktop):
docker compose -f docker-compose.yml stop
In the next step, you will configure and run your xDI Runtime Docker container.
You will now configure your xDI Analytics Docker container and run it using Docker Compose.
docker-compose.yml
file according to your configuration. docker-compose.yml
file in the xdi-analytics\docker-compose\docker-compose
folder of the tutorial resources you have downloaded at the beginning of this tutorial. This YAML file defines the services, networks, and volumes to run and use in your Docker container.services/ports:
xDI Analytics portservices/environment/XDI_ANALYTICS_DEFAULT_ADMIN_USERNAME
and XDI_ANALYTICS_DEFAULT_ADMIN_PASSWORD:
default administrator login to connect to xDI Analytics.docker-compose.yml
file.docker compose -f docker-compose.yml up -d
- Container docker-compose-semarchy-xdi-analytics-backend-database-1 Healthy 6.0s
- Container semarchy-xdi-analytics Started 6.4s 6.4s16.9s
Semarchy xDI Analytics and its local database are now running in a Docker container.
You can check it in Docker Desktop:
xDI Analytics is now up and running.
Great job! The xDI Stack is now ready to be used. You can try to deploy and monitor the metadata, mappings, and processes you develop through xDI Designer.
For example, you can link the previously installed runtime to Docker.
To do this, right-click on "Runtime" menu, select "Manage Runtimes" and click on the "Add" button:
Enter the following parameters:
http://host.docker.internal
engineParameters.xml
file located in the xdi-tutorials-main\quick-install\docker\xdi-runtime\docker-compose\shared-resources\properties
folderSave by clicking on the floppy disk icon at the top of the screen.
Then, click on the "Test" button under the configuration. If the parameters are right, you will have the following message "Connection to provided data source was successful!".
Great job going through this tutorial! You have successfully installed an xDI Stack on Docker. Let's summarize:
Now that you have set up an xDI stack, you can manage your production.
The next step is to proceed to five different tutorial tracks:
Go back to the main menu to find these tutorials.