docker-lambda icon indicating copy to clipboard operation
docker-lambda copied to clipboard

How to pass system properties such as -Djavax.net.ssl.keyStore to docker lambda:java8

Open dotekien opened this issue 6 years ago • 1 comments

dotekien avatar Jun 07 '18 19:06 dotekien

@dotekien I managed to do this. It's relatively easy. You create your own docker file extending 'lambci/lambda:java8' image and the specify the following line, 'ENTRYPOINT java -Dyour.java.option -jar /var/runtime/lib/LambdaJavaRTEntry-1.0.jar' as demonstrated in the following link : https://github.com/lambci/docker-lambda/blob/master/java8/run/Dockerfile

Nonetheless, I now have more difficult issue. How would you supply 'java options' to your Lambda handler executed by 'LambdaJavaRTEntry-1.0.jar'? 'LambdaJavaRTEntry-1.0.jar' can get java options as shown in my example. How can I pass them to my handler?

cosmir17 avatar Jun 14 '19 22:06 cosmir17