This is still very much in progress.
Before you start, please make sure that the following tools are installed:
- node + yarn
- docker + docker-compose
- vault (https://www.vaultproject.io/downloads.html)
To use the sysupport/timed part, clone the timed-backend repository on the same level as customer-center:
git clone git@github.com:adfinis-sygroup/timed-backend.git
make install
docker-compose up
# setup LDAP structure
make setup-ldap
# sometimes the setup gets stuck with the message:
# Restarting bind9 daemon: ...done.
# Just interrupt it and run:
docker exec customercenter_ucs1_1 /usr/ucs/scripts/fill-dummy-data.sh
# apply DB migrations
make knex-migrations
# fill vault with dummy data
make setup-vault
# finish setup of the timed backend
make setup-timed
Copy and rename the config.example.js
to config.js
and configure the needed endpoints.
Unclear parts of the configuration will have a comment with further information.
Run docker-compose up
(inital setup) or docker-compose start
.
Clone the repository and execute the following commands on your production system:
git pull
make deploy
To authenticate against LDAP, we used the Passport LDAP authentication strategy