Resource management service.
Features:
- You can add resources via data/resources.json
- You can book resource for some time
- You can release resource
- You can extend reservation time for resource
- You can get in line for resource
- You can set up notifications (now only in mattermost)
- You can edit resources
- Copy
docker-compose.yml
to target folder. - Create folder
data
inside target folder. - Put into
data
fileresources.json
with initial resources. Example:
{
"groups" : [
{
"name": "resource-group 1",
"resources": [
{
"name": "resource-1"
},
{
"name": "resource-1"
}
]
},
{
"name": "resource-group 2",
"resources": [
{
"name": "resource-1"
},
{
"name": "resource-1"
}
]
}
]
}
- Create folder for certificates
https
inside target - Inside
https
: a. Bash:openssl req -new -x509 -newkey rsa:2048 -keyout <hostname>.key -out <hostname>.cer -days 365 -subj /CN=<hostname>
b. Bash:openssl pkcs12 -export -out certificate.pfx -inkey <hostname>.key -in <hostname>.cer
- Add application in SSO (gitlab, github, etc). Set callback url for application:
https://<hostname>:443/login-collback
. - Specify
gitlab__clientId
andgitlab__clientSecret
indocker-compose.yml
from your SSO application - Set actual other
gitlab
parameters indocker-compose.yml
- Set actual
notifications
parameters indocker-compose.yml
(or remove mattermost section) - Bash:
docker-compose up -d
You can add additional parameters to environment variables in docker-compose.yml:
booking__MaxBookingPeriodInMinutes
default 1440booking__MinBookingPeriodInMinutes
default 20notifications__hostname
is used for resource display name in notifications, default "localhost"notifications__notifyBeforeEndingOfReservationInMinutes
default 10notifications__mattermost__hook
is used for notifications to mattermost