You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 12, 2024. It is now read-only.
I spent some time today trying to get up and running with the flexible environment on App Engine and I noticed the custom runtime did not work as expected. I was trying to get Java 11 running in the Flexible environment. When I used this as my Dockerfile, from the readme:
FROM gcr.io/google-appengine/openjdk
COPY your-application.jar $APP_DESTINATION
I ended up getting an error message from gcloud app deploy, stating that the application container had crashed. After some trial and error, I found that this Dockerfile worked instead:
FROM openjdk:11
ADD your-application.jar
ENTRYPOINT ["java","-jar","./app.jar"]
Without the ENTRYPOINT command, the container crashed.
Would someone be able to update the documentation, and maybe explain why the Dockerfile in the readme didn't work for me?
The text was updated successfully, but these errors were encountered:
psahgal
changed the title
Provided sample Dockerfile does not work with App Engine - flexible environment
Sample Dockerfile does not work with App Engine - flexible environment
Feb 1, 2021
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I spent some time today trying to get up and running with the flexible environment on App Engine and I noticed the custom runtime did not work as expected. I was trying to get Java 11 running in the Flexible environment. When I used this as my Dockerfile, from the readme:
I ended up getting an error message from
gcloud app deploy
, stating that the application container had crashed. After some trial and error, I found that this Dockerfile worked instead:Without the
ENTRYPOINT
command, the container crashed.Would someone be able to update the documentation, and maybe explain why the Dockerfile in the readme didn't work for me?
The text was updated successfully, but these errors were encountered: