Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- oc new-app postgresql-persistent --name=postgresql-gogs -lname=postgresql-gogs --param DATABASE_SERVICE_NAME=postgresql-gogs --param POSTGRESQL_DATABASE=gogs --param POSTGRESQL_USER=gogs --param POSTGRESQL_PASSWORD=gogs --param VOLUME_CAPACITY=4Gi
- oc new-app --docker-image=openshiftdemos/gogs -e GOGS_VERSION=0.11.29 --name=gogs -lapp=gogs
- oc create -f gogs-pvc.yaml
- oc volume dc/gogs --add --overwrite --name=gogs-data --mount-path=/data --type=pvc --claim-name=gogs-data
- oc expose svc gogs
- oc create configmap gogs --from-file=app.ini
- oc volume dc/gogs --add --overwrite --name=app-ini -m /etc/gogs/conf -t configmap --configmap-name=gogs
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement