Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wonder whether the instructions are up-to-date? #3

Open
rrjavadev opened this issue Mar 2, 2021 · 1 comment
Open

Wonder whether the instructions are up-to-date? #3

rrjavadev opened this issue Mar 2, 2021 · 1 comment

Comments

@rrjavadev
Copy link

I have been trying to follow the instructions from https://guides.micronaut.io/mn-serverless-function-aws-lambda-graalvm/guide/index.html. Since I was facing some issues, I have just cloned this full repo, went under /complete directory and tried running deploy.sh. It was taking a very long time to build the image and I finally got the error as follows...

Error: Image build request failed with exit status 137
The command '/bin/sh -c /usr/lib/graalvm/bin/native-image --no-server -cp build/libs/complete-*-all.jar' returned a non-zero code: 137

I am using Mac OS. I thought I had all the necessary software installed in my laptop to execute all the instructions. Any pointers to fix the error would be highly appreciated.

@mprutkov
Copy link

mprutkov commented May 5, 2021

Same situation happened to me. I've tried to use sources from 'complete' directory but they are no longer correct. You don't have to create your own DOCKERFILE or deploy.sh script. I just run maven command ./mvnw package -Dpackaging=docker-native -Dmicronaut.runtime=lambda and it is generating for me function.zip. So documentation should be updated.

By the way, today's maven micronaut compiler plugin works very well. I like to execute only one maven command for all of the steps.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants