Local Setup
Overview
You can deploy XSK locally using Docker or Tomcat server.
Steps
-
Deploy as a Docker container or on Tomcat server.
Prerequisites
Install Docker.
-
Pull the XSK Docker image:
docker pull dirigiblelabs/xsk:latest
-
Start the container:
docker run --name xsk \ --rm -p 8080:8080 -p 8081:8081 \ dirigiblelabs/xsk:latest
docker run --name xsk \ -v <your-local-directory>:/usr/local/tomcat/target \ --rm -p 8080:8080 -p 8081:8081 \ dirigiblelabs/xsk:latest
docker run --name xsk \ -e DIRIGIBLE_DATABASE_PROVIDER="custom" \ -e DIRIGIBLE_DATABASE_CUSTOM_DATASOURCES="HANA" \ -e DIRIGIBLE_DATABASE_DATASOURCE_NAME_DEFAULT="HANA" \ -e HANA_DRIVER="com.sap.db.jdbc.Driver" \ -e HANA_URL="jdbc:sap://<hanaHost>?encrypt=true&validateCertificate=false" \ -e HANA_USERNAME="<hanaUsername>" \ -e HANA_PASSWORD="<hanaPassword>" \ --rm -p 8080:8080 -p 8081:8081 \ dirigiblelabs/xsk:latest
Note
- Replace the
<hanaHost>
placeholder with the HANA Cloud host that you're going to use. - Replace the
<hanaUsername>
placeholder with the HANA Cloud username that you're going to use. - Replace the
<hanaPassword>
placeholder with the HANA Cloud password that you're going to use.
Windows
For setup on Windows OS, issues may appear with the way the environment variables (
-e XXX=YYY
) are provided. Either they should be properly escaped, or they could be supplied as*.env
file:docker run --name xsk \ --env-file env-variables.env \ --rm -p 8080:8080 -p 8081:8081 \ dirigiblelabs/xsk:latest
docker run --name xsk \ --rm \ -p 8080:8080 \ -p 8000:8000 \ -p 8081:8081 \ -e DIRIGBLE_JAVASCRIPT_GRAALVM_DEBUGGER_PORT="0.0.0.0:8081" \ -e JPDA_ADDRESS="0.0.0.0:8000" \ -e JPDA_TRANSPORT="dt_socket" \ dirigiblelabs/xsk:latest \ /bin/sh /usr/local/tomcat/bin/catalina.sh jpda run
Prerequisites
- Java 11 or Java 13 installed (default, required during runtime).
- Java 8 JRE/JDK installed (additional, required for compatability reasons).
-
Download
ROOT.war
for Tomcat from: https://github.com/SAP/xsk/releases/latestNote
For local test & development purposes, we recommend the server distribution.
-
Configure the Users store under
$CATALINA_HOME/conf/tomcat-users.xml
:<tomcat-users> <role rolename="Developer"/> <role rolename="Operator"/> <role rolename="Everyone"/> <user username="dirigible" password="dirigible" roles="Developer,Operator,Everyone"/> </tomcat-users>
-
Copy the XSK's
ROOT.war
to$TOMCAT/webapps
folder. -
Provide the Java 8 JRE/JDK path.
export JAVA8_HOME=<pathToJava8>
Note
Replace the
<pathToJava8>
placeholder with the actual path to your Java 8 installation (e.g./usr/lib/jvm/java-8-openjdk-amd64/
). -
Configure connection to HANA Cloud instance.
export HANA_DRIVER=com.sap.db.jdbc.Driver export HANA_URL=jdbc:sap://<hanaHost>?encrypt=true&validateCertificate=true export HANA_USERNAME=<hanaUsername> export HANA_PASSWORD=<hanaPassword>
Note
- Replace the
<hanaHost>
placeholder with the HANA Cloud host that you're going to use. - Replace the
<hanaUsername>
placeholder with the HANA Cloud username that you're going to use. - Replace the
<hanaPassword>
placeholder with the HANA Cloud password that you're going to use.
- Replace the
-
Start the Tomcat server.
-
-
Open a web browser and go to: http://localhost:8080/
Note
The default user name and password are
dirigible/dirigible
. -
Stop the container:
docker stop dirigible