Docker

Requirements

The following example shows how to set up SMARTUNIFIER using Docker Volumes mount to local paths on the machine.

  1. Create the following directories:

conf

Manager configuration files, keystore and database

mkdir -p /opt/amorph/smartunifier/manager/conf
repository

Storing compiled artifacts

mkdir -p /opt/amorph/smartunifier/manager/repository
versioning (optional)

Storing of component sources, not required when using an external git server like gitea.

mkdir -p /opt/amorph/smartunifier/manager/versioning
logs (optional)

Storing of logs files from the manager

mkdir -p /opt/amorph/smartunifier/manager/log
  1. Copy the conf and the repository folder from the SMARTUNIFIER installation package into the newly created corresponding volumes:

cp -r conf/* /opt/amorph/smartunifier/manager/conf
cp -r repository/* /opt/amorph/smartunifier/manager/repository

Note

Edit the application.conf in /opt/amorph/smartunifier/manager/conf and remove the lines ‘javaHome = “jre”’

nano /opt/amorph/smartunifier/manager/conf/application.conf
  1. Create Docker Volumes mounted to the directories just created:

docker volume create --driver local \
 --opt type=bind \
 --opt device=/opt/amorph/smartunifier/manager/conf \
 --opt o=bind smartunifier_conf

docker volume create --driver local \
 --opt type=none \
 --opt device=/opt/amorph/smartunifier/manager/repository \
 --opt o=bind smartunifier_repository

docker volume create --driver local \
 --opt type=none \
 --opt device=/opt/amorph/smartunifier/manager/versioning \
 --opt o=bind smartunifier_versioning

docker volume create --driver local \
 --opt type=none \
 --opt device=/opt/amorph/smartunifier/manager/log \
 --opt o=bind smartunifier_logs

Start Up

Go to the SMARTUNIFIER package and open the docker directory with the console.

  1. Build docker image

docker-compose build
  1. Start the manager with attached console

docker-compose run smartunifier
  1. Enter Master password and admin user credentials on request

Note

Remove the default user set up in the credentials.properties file in order to set the master password and to create a new admin user.

After the setup is done, a credentials file containing the master password can be used to start the manager without having to input the password.

docker-compose up -d