appengine-custom-runtimes-samples icon indicating copy to clipboard operation
appengine-custom-runtimes-samples copied to clipboard

Ruby example fails to start.

Open DanielJoyce opened this issue 5 years ago • 2 comments

latest: digest: sha256:4916f24ae6e371c929207e86cd6de1548c887fe2b1257cabf254e9cad0a3fa0b size: 3038
DONE
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Updating service [derp] (this may take several minutes)...failed.                                                                                                                           
ERROR: (gcloud.app.deploy) Error Response: [4] Your deployment has failed to become healthy in the allotted time and therefore was rolled back. If you believe this was an error, try adjusting the 'app_start_timeout_sec' setting in the 'readiness_check' section.

Does it really work without a CMD in the docker file?

DanielJoyce avatar Feb 27 '19 20:02 DanielJoyce

Adding the following

CMD ["bundle", "exec", "ruby", "app.rb"]

to the ruby example allows it to start

DanielJoyce avatar Feb 27 '19 21:02 DanielJoyce

We also need to move off of the unsupported gcr.io/google-appengine/ruby base image, and onto a usable base image such as one of the official Ruby images from dockerhub.

dazuma avatar May 20 '19 16:05 dazuma