Step 1 - Create a database
NetRisk is projected to work with MariaDB and the first step is to create a database and a user to connect. We do not include here instructions on how to install or configure MariaDB, but it should be pretty easy to find online.
You will need a database ( you can choose any name here, we selected netriskdb).
To do so, connect to maria db a use:
Copy CREATE DATABASE netriskdb
CHARACTER SET = ' utf8mb4 '
COLLATE = ' utf8mb4_unicode_ci ' ; Now you need to create a user with?
Copy CREATE USER netriskdbuser @localhost IDENTIFIED BY ' supersecretpassword ' ; It is also recomended to increase the max-allowed-packet in my.ini
To do so using docker mount a folder in /etc/mysql/conf.d and add a file finishing with .cnf.
The file should contain:
Copy [mariadb]
max-connections=1000
max_allowed_packet=500M Or add the folling to the command line.
In any case the container should be restarted in the case it already exists.
Step 2 - Install Application - Using Puppet
Our preferred way to install NetRisk is using puppet and the dockerapp_netrisk module that can be found on puppet forge herearrow-up-right .
The module will install the application using docker and download the images.
The best way to configure it is using hiera with these parameters:
Step 3 - Initialize DB
Using the console client, initialize the database with the following command:
Step 4 - Create the first user
Now you need to create your first application user. To do so, use the following command on the console client: