This repository provides a Dockerfile and an OpenShift template for KeyBox.
Please note: KeyBox runs without TLS! Terminating TLS is the job of the loadbalancer / reverse proxy in front of it (like the OpenShift router).
Example for running KeyBox in Docker:
docker build -t local/keybox .
docker run --name keybox \
-d \
--user 1000001:root \
-e DB_PASSWORD=blablubb \
-p 8080:8080 \
-v keybox_data:/opt/keybox/jetty/keybox/WEB-INF/classes/keydb \
local/keybox
On startup the KeyBox configuration file KeyBoxConfig.properties
is
generated by dockerize
. The only mandatory paramater is
DB_PASSWORD
or else the container won't start properly.
To see the defaults and available parameters, have a look into
KeyBoxConfig.properties.tpl
.
Create an OpenShift project if not already provided by the service
PROJECT=keybox
oc new-project $PROJECT
oc process -f https://raw.githubusercontent.com/tobru/keybox-openshift/master/keybox-template.yaml | oc -n $PROJECT create -f -
Navigate to the generated URL and login with the KeyBox default credentials. Change the admin password now!
Hint
The template is configured with an emptyDir
storage. You might want to
replace this with a persistent storage volume (PVC) or else you'll lose
your configuration when the Pod restarts.
This repo triggers an automated Docker Hub build and always builds the latest tag from master - there is no release process involved. If a new KeyBox release is available, the Dockerfile needs to be updated and pushed. This will only be done occasionally. So if it's not done in time, feel free to send a PR - this can speed up things.