OpenShiftInAction / chapter6

4 stars 26 forks source link

Dev template fails #5

Open HelenCousins opened 5 years ago

HelenCousins commented 5 years ago

oc new-app --template="dev/dev-todo-app-flask-mongo-gogs"

does not work: The logs for po/install-gogs (in error state) end

/tmp/installgogs.sh: line 80: /tmp/data.json: Read-only file system ++ curl -o /dev/null -sL -w '%{http_code}' -H 'Content-Type: application/json' -u gogs:password -X POST http://192.168.3.223:3000/api/v1/repos/migrate -d @/tmp/data.json

The template says to mount install-gogs rw, but it appears to be ro from this log?

I am an admin on our system, so I don't think it's a permissions issue, but I can't see where that volume is being provisioned. I feel like I must have missed a step, but I'm not at all sure what.

lz006 commented 5 years ago

same issue here

s-vincent commented 5 years ago

Hi,

With recent version of OpenShift, the template no longer works as is. See https://forums.manning.com/posts/list/43288.page.

In attachment you have full json template with modification based on comment from Manning forum. dev-todo-app-flask-mongo-gogs.json.txt

maslick commented 5 years ago

@s-vincent thanks for the working json :)