Based on https://github.com/SinusBot/docker.git with modifications to run under openshift with any non-root uid
Tested on OpenShift 4.2
Install the template:
- in current project:
oc create -f openshift-template.yaml
- for the entire cluster:
oc create -f openshift-template.yaml -n openshift
- show parameter:
oc process sinusbot-openshift-template --parameters
- create from template:
oc process sinusbot-openshift-template -p WEBPANEL_DOMAIN=sinusbot.apps.yourclouster.local -p NAME=sinusbot -p NAMESPACE=sinus-openshift
- trigger build:
oc start-build sinusbot-openshift-build
- wait until build is complete
oc get builds -w
- trigger the deployment
deployment.apps/sinusbot
oc delete all,pvc,cm,secret -l app=NAME,template=sinusbot-openshift-template -n YOUR-NAMESPACE
Update of youtube-dl is moved to the Dockerfile. So you can update is by rebuilding the Image
- trigger build:
oc start-build sinusbot-openshift-build