Skip to content
This repository was archived by the owner on Dec 18, 2023. It is now read-only.

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

README.md

Docker scripts for the TranSMART API server and database

Docker Build Status

Run

Install docker-compose and run

docker-compose up

This starts a PostgreSQL database and the TranSMART API server, which will create minimal database schemas, see transmart-schemas.

The application uses Keycloak for authentication. The following environment variables can be used to configure Keycloak:

Variable Default value
KEYCLOAK_SERVER_URL https://keycloak-dwh-test.thehyve.net/auth
KEYCLOAK_REALM transmart-dev
KEYCLOAK_CLIENT_ID transmart-client

Ports

The image exposes the following ports:

Value Type Description
9081 tcp The TranSMART API Server
9432 tcp PostgreSQL database server

Connect to the database using:

psql -h localhost -p 9432 -U biomart_user

The application is available at http://localhost:9081.

Development

Build

TRANSMART_VERSION=$(gradle properties | grep '^version: ' - | awk '{print $2}')
docker build -t transmart-api-server transmart-api-server

Publish

Publish the image to Docker Hub:

docker login
TRANSMART_VERSION="17.2.15"
docker tag transmart-api-server "thehyve/transmart-api-server:${TRANSMART_VERSION}"
docker push "thehyve/transmart-api-server:${TRANSMART_VERSION}"