micronaut-projects / micronaut-core

Micronaut Application Framework
http://micronaut.io
Apache License 2.0
6.09k stars 1.07k forks source link

Unable to run a native image on GCP - App engine standard environment #3487

Open pohorelec opened 4 years ago

pohorelec commented 4 years ago

I am unable to run micronaut build via graal VM into google app engine (standard environment). When I try to use Cloud Run everything works as expected.

Exception:

/bin/sh: 1: exec: ./native-image-name: Exec format error

app.yml:

runtime: java11
service: my-service-name
...

native-image.properties

Args = -H:IncludeResources=logback.xml|application.yml|application-*.yml|bootstrap.yml|public/.*|views/.* \
       -H:IncludeResourceBundles=messages \
       -H:Name=my-app-name \
       -H:Class=foo.bar.MyApplication

Did I miss something in some of configuration above?

pohorelec commented 4 years ago

Is there any graalvm working example running for gcloud app engine standard enironment (java11)? I could not find any. It would be great if you provide one in your examples repository.

mmarquezv commented 4 years ago

I'm looking for that sample too!