optashift-employee-rostering build fails on opensh

2019-06-01 02:58发布

问题:

Trying to build the optashift-employee-rostering project

I followed the instructions in the readme file to build the app from this repo, but it fails every time. When I try it locally on my Windows 10 with Docker and the "oc.exe" tool, it simply hangs and the oc fails to open even the openshift local console (the one on localhost).

I've created an account on openshift (Starter: US East (Virginia) For individual learning and experimenting.) When I do it in openshift online, it fails the build but doesn't tell me the reason. Here are the logs: http://pasted.co/47eed571

How can I deploy this app to openshift or to some other cloud (Google Cloud/Microsoft Azure etc.)

回答1:

OpenShift Online (= free edition) has less than 1GB of RAM for the build pods, which isn't enough to build it (GWT compilations needs more). That leads to error code 137 during GWT compilation.

But OpenShift Online is enough to run it.

Workaround: Build the war locally with ./provision.sh deploy employee-rostering --binary as explained here in the readme. I hope that GWT and OpenShift play along better in the future.