This project uses Quarkus Funqy to deploy a function to AWS Lambda as well as OpenShift Serverless.
If you want to learn more about FUNQY AMAZON LAMBDA BINDING, please visit its website: https://quarkus.io/guides/funqy-amazon-lambda .
You can run your application in dev mode that enables live coding using:
./mvnw quarkus:dev
Add the following configuration in application.properties
quarkus.funqy.export=greeter
Add the following configuration in application.properties
quarkus.container-image.build=true
quarkus.container-image.group=serverless-funqy
quarkus.container-image.registry=image-registry.openshift-image-registry.svc:5000
quarkus.kubernetes.deployment-target=knative
quarkus.kubernetes-client.trust-certs=true
quarkus.kubernetes.deploy=true
quarkus.openshift.expose=true
quarkus.openshift.labels.app.openshift.io/runtime=quarkus
// Only native compliation
quarkus.native.container-build=true
quarkus.native.builder-image=quay.io/quarkus/ubi-quarkus-mandrel:20.1-java11
The application can be packaged using:
./mvnw package -DskipTests
If you want to package a native executable, append -Pnative
in the above maven command line.
Run the manage.sh
that is generated when you run mvn clean package -DskipTests
:
LAMBDA_ROLE_ARN=<YOUR_ARN> sh target/manage.sh create