simple gitter authenticated webapp with script hooks
586
This is a simple webapp authenticates with gitter oauth (github/gitlab/twitter). Once authentication is done, it calles out a bash script. The default one:
On gitter's developer site create new app
Use redirect url as: http://gitter.yuorcustom.domain/login/callback
Store the newly generated oauth key and oauth secret in a secret:
kubectl create secret generic gitter \
--from-literal=GITTER_OAUTH_KEY=$GITTER_OAUTH_KEY \
--from-literal=GITTER_OAUTH_SECRET=$GITTER_OAUTH_SECRET
Now you can create all the k8s resources:
export workshopNamespace
export domain=mydomain.com
curl -sL https://raw.githubusercontent.com/lalyos/gitter-scripter/master/gitter-template.yaml \
| envsubst \
| kubectl apply -f -
muhaha
docker pull lalyos/gitter-scripter:latest