Karnak is a DICOM gateway for data de-identification and DICOM attribute normalization.
Karnak manages a continuous DICOM flow with a DICOM listener as input and a DICOM and/or DICOMWeb as output.
For more information, see the online Karnak user guide
:warning: Security: Karnak is using Logback and is not affected by CVE-2021-44228. CVE-2021-42550 has been fixed since v0.9.9
Prerequisites:
Execute the maven command mvn clean install -P production
in the root directory of the project.
To configure and run Karnak with docker-compose, see karnak-docker.
-Djava.library.path="/tmp/dicom-opencv"
. Note: the tmp folder must be adapted according to your system and dicom-opencv
is mandatory as the last folder.ENVIRONMENT=DEV
DB_PASSWORD=5!KAnN@%98%d
DB_PORT=5433
DB_USER=karnak
DB_NAME=karnak
DB_HOST=localhost
MAINZELLISTE_HOSTNAME=localhost
MAINZELLISTE_HTTP_PORT=8083
MAINZELLISTE_API_KEY=changeThisApiKey
KARNAK_ADMIN=admin
KARNAK_PASSWORD=admin
KARNAK_LOGS_MAX_FILE_SIZE=100MB
KARNAK_LOGS_MIN_INDEX=1
KARNAK_LOGS_MAX_INDEX=10
KARNAK_CLINICAL_LOGS_MAX_FILE_SIZE=100MB
KARNAK_CLINICAL_LOGS_MIN_INDEX=1
KARNAK_CLINICAL_LOGS_MAX_INDEX=10
IDP=undefined
OIDC_CLIENT_ID=undefined
OIDC_CLIENT_SECRET=undefined
OIDC_ISSUER_URI=undefined
Minimum docker-compose version: 1.22
docker
folder located in the root project folder..env.example
into .env
and modify it)docker-compose up -d
docker-compose logs -f
docker-compose down
Minimum docker version: 19.03
Go on the root folder and launch the following command:
docker build -t local/karnak:latest -f Dockerfile .
mvn clean install -P production
docker build -t local/karnak:latest -f src/main/docker/Dockerfile .
See karnak-docker
See all the environment variables
This project is divided in two parts:
An OpenID Connect identity provider can be configured by using the environment variables:
IDP
: when this environment variable has the value 'oidc', the following environment
variables will configure the OpenID Connect identity provider. Any other value will load the in
memory user configuration. OIDC_CLIENT_ID
: client id of the identity provider OIDC_CLIENT_SECRET
: client secret of the identity providerOIDC_ISSUER_URI
: issuer URI of the identity provider