Welcome to Semarchy.
This tutorial shows you how to set up Semarchy xDM 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 xDM in this tutorial.
The Semarchy xDM architecture includes the following components:
In this tutorial, you will use a Docker Compose file that creates a container that runs Semarchy xDM and a PostgreSQL database:
The Semarchy xDM Docker image is using an official tomcat base image composed of the latest:
tomcat:9.0-jdk11-openjdk
)The PostgreSQL image is 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 depending on your operating system:
In the next step, you will use Docker Compose to configure and run a Docker container.
You will now configure your Docker container and run it using Docker Compose.
docker-compose.yml
file in the quick-install/docker
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/semarchy-appserver/environment/SEMARCHY_SETUP_TOKEN
(recommended): The setup token used as an authentication method at the first startup before creating the Semarchy repository.services/semarchy-appserver/environment/XDM_REPOSITORY_USERNAME
and XDM_REPOSITORY_PASSWORD:
credentials used by xDM to access the repository database schema.create-schemas.sql
script located in the same folder as the Docker Compose file. This script is called by Docker Compose to create the xDM repository database schema as well as all the schemas required to follow the xDM Tutorials. docker-compose.yml
and create-schemas.sql
files.docker compose up --attach semarchy-appserver --no-log-prefix
INFO [main] org.apache.catalina.startup.Catalina.start Server startup in [12274] milliseconds
Semarchy xDM and its local database are now running in a Docker container. In the next step, you will connect to xDM and configure the repository.
In this step, you will install the xDM instance.
SEMARCHY_SETUP_TOKEN
environment variable in the services/semarchy-appserver/environment
section of your Docker Compose file (if you have not modified it previously, the default value is mySecretValue) and click LOG IN:
xDM is now up and running.
In the next step, you will finalize the installation by granting access rights for some of the tables of the Semarchy repository you have just created.
Now that the repository has been initialized, you must grant access to some of the tables that have just been created: the repository read-only user needs SELECT
privileges on the profiling tables to render the xDM Discovery profiles.
To connect to the database running on your Docker container, you need to set up a SQL client.
If you have not installed any SQL client yet, you can install DBeaver, a free universal client. Download DBeaver Community Edition, which is sufficient to follow the Integration tutorials track.
semarchy-database/environment/POSTGRES_USER
parameter in the create-schemas.sql
script you used during the previous step (default value is postgres).semarchy-database/environment/POSTGRES_PASSWORD
parameter in the create-schemas.sql
script you used during the previous step (default value is postgres)./*******************************************************************************
** Oracle database post-installation scripts
** Semarchy xDM Tutorials
** Copy and paste the SQL DDL scripts and use them in the tutorial.
** Copyright (c) 2021 Semarchy
*******************************************************************************/
/************************************************
Grant select privileges on the profiling tables
************************************************/
GRANT USAGE ON SCHEMA semarchy_repository TO semarchy_repository_ro;
GRANT SELECT ON TABLE
semarchy_repository.PRF_PROFILING,
semarchy_repository.PRF_TABLE,
semarchy_repository.PRF_COLUMN,
semarchy_repository.PRF_DIST_VALS,
semarchy_repository.PRF_DIST_PATTERNS
TO semarchy_repository_ro;
Great job! xDM Discovery is now ready to be used on your xDM instance.
Great job going through this tutorial! You have successfully installed xDM on Docker. Let's summarize:
Now that you have set up xDM, you can request a license key.
The next step is to proceed to two different tutorial tracks:
Go back to the main menu to find these tutorials.