clojure-graalvm-aws-lambda-template
clojure-graalvm-aws-lambda-template copied to clipboard
Leiningen template for AWS Lambda custom runtime with GraalVM native image compiled Clojure projects.
Results
4
clojure-graalvm-aws-lambda-template issues
Sort by
recently updated
recently updated
newest added
Error Docker build
[{"_id":"636e390f1e434437e73eda00","body":"Step 7\/35 : RUN clojure -A:native-image\r\n ---> Running in 26cc3f3205fd\r\nCleaning target\r\nCreating target\/classes\r\n Compiling lambda.core\r\nCreating target\/app\r\nSLF4J: Failed to load class \"org.slf4j.impl.StaticLoggerBinder\".\r\nSLF4J: Defaulting to no-operation (NOP) logger implementation\r\nSLF4J: See http:\/\/www.slf4j.org\/codes.html#StaticLoggerBinder for further details.\r\nERROR! Error: Image build request failed with exit status 137\r\n\r\nThe command '\/bin\/sh -c clojure -A:native-image' returned a non-zero code: 1\r\nmake: *** [deploy-lambda-via-container] Error 1","issue_id":1667210501255,"origin_id":657181252,"user_origin_id":25872525,"create_time":1594535144,"update_time":1594537953,"id":1668167951337,"updated_at":"2022-11-11T11:59:11.336000Z","created_at":"2022-11-11T11:59:11.336000Z"},{"_id":"636e390f1e434437e73eda01","body":"Probably out of memory. How much RAM do you have?","issue_id":1667210501255,"origin_id":657273191,"user_origin_id":230044,"create_time":1594586921,"update_time":1594586921,"id":1668167951340,"updated_at":"2022-11-11T11:59:11.340000Z","created_at":"2022-11-11T11:59:11.340000Z"},{"_id":"636e390f1e434437e73eda02","body":"@dainiusjocas running on a MBP\r\n<img width=\"193\" alt=\"Screen Shot 2020-07-13 at 12 05 25 PM\" src=\"https:\/\/user-images.githubusercontent.com\/25872525\/87326780-34d16a00-c501-11ea-9001-ef527aabeb00.png\">\r\n\r\n","issue_id":1667210501255,"origin_id":657648588,"user_origin_id":25872525,"create_time":1594656360,"update_time":1594656360,"id":1668167951343,"updated_at":"2022-11-11T11:59:11.342000Z","created_at":"2022-11-11T11:59:11.342000Z"},{"_id":"636e390f1e434437e73eda03","body":"Give the docker service more memory, like 8gb and try again","issue_id":1667210501255,"origin_id":657665562,"user_origin_id":230044,"create_time":1594658322,"update_time":1594658322,"id":1668167951345,"updated_at":"2022-11-11T11:59:11.345000Z","created_at":"2022-11-11T11:59:11.345000Z"},{"_id":"636e390f1e434437e73eda04","body":"Oh, I see another issue, the fork of cambada is no longer available. This means that the either you or someone at @tokenmill should fix the issue. Or of course, we should use another GraalVM native image builder","issue_id":1667210501255,"origin_id":657667521,"user_origin_id":230044,"create_time":1594658551,"update_time":1594658551,"id":1668167951347,"updated_at":"2022-11-11T11:59:11.347000Z","created_at":"2022-11-11T11:59:11.347000Z"},{"_id":"636e390f1e434437e73eda05","body":"@dainiusjocas thanks for spotting this. It is now fixed.","issue_id":1667210501255,"origin_id":658179498,"user_origin_id":171114,"create_time":1594733337,"update_time":1594733337,"id":1668167951350,"updated_at":"2022-11-11T11:59:11.350000Z","created_at":"2022-11-11T11:59:11.350000Z"},{"_id":"636e390f1e434437e73eda06","body":"@dainiusjocas I am new to docker. \r\nI ran the command `docker build --target builder -t graalvm-compiler -m 8g .` which is still giving me the same error.\r\nHere is the complete log: \r\n`FLaSH:hello-world flash$ docker build --target builder -t graalvm-compiler -m 8g .\r\nSending build context to Docker daemon 52.22kB\r\nStep 1\/10 : FROM tokenmill\/clojure:graalvm-ce-19.0.0-tools-deps-1.10.0.442 as builder\r\n ---> e9772afd2ed8\r\nStep 2\/10 : RUN mkdir -p \/usr\/src\/app\r\n ---> Using cache\r\n ---> a5a42a551944\r\nStep 3\/10 : WORKDIR \/usr\/src\/app\r\n ---> Using cache\r\n ---> 1fc800d0ead5\r\nStep 4\/10 : COPY deps.edn \/usr\/src\/app\/\r\n ---> Using cache\r\n ---> fd8fe54be7b8\r\nStep 5\/10 : RUN clojure -R:native-image\r\n ---> Using cache\r\n ---> 5d3fe8e0b4ce\r\nStep 6\/10 : COPY . \/usr\/src\/app\r\n ---> d5a32cc49f18\r\nStep 7\/10 : RUN clojure -A:native-image\r\n ---> Running in 55b8a49ec61c\r\nCleaning target\r\nCreating target\/classes\r\n Compiling lambda.core\r\nCreating target\/app\r\nSLF4J: Failed to load class \"org.slf4j.impl.StaticLoggerBinder\".\r\nSLF4J: Defaulting to no-operation (NOP) logger implementation\r\nSLF4J: See http:\/\/www.slf4j.org\/codes.html#StaticLoggerBinder for further details.\r\nERROR! Error: Image build request failed with exit status 137\r\n\r\nThe command '\/bin\/sh -c clojure -A:native-image' returned a non-zero code: 1\r\nFLaSH:hello-world flash$`","issue_id":1667210501255,"origin_id":658538697,"user_origin_id":25872525,"create_time":1594787377,"update_time":1594787489,"id":1668167951356,"updated_at":"2022-11-11T11:59:11.356000Z","created_at":"2022-11-11T11:59:11.356000Z"},{"_id":"636e390f1e434437e73eda07","body":"@zmedelis the update u made was not published to clojars? \r\n`lein new clojure-graalvm-aws-lambda your-lambda` seems to pull in the same old change","issue_id":1667210501255,"origin_id":658542539,"user_origin_id":25872525,"create_time":1594788297,"update_time":1594788297,"id":1668167951359,"updated_at":"2022-11-11T11:59:11.358000Z","created_at":"2022-11-11T11:59:11.358000Z"},{"_id":"636e390f1e434437e73eda08","body":"I finally was able to run using\r\n`docker build --target builder -t graalvm-compiler -m 8g -c 2 --memory-swap -1 .`","issue_id":1667210501255,"origin_id":658562271,"user_origin_id":25872525,"create_time":1594792657,"update_time":1594792657,"id":1668167951361,"updated_at":"2022-11-11T11:59:11.360000Z","created_at":"2022-11-11T11:59:11.360000Z"}]
Error docker building in https://github.com/xfthhxk/cambada ``` Step 5/35 : RUN clojure -R:native-image ---> Running in c63c08282b6d Downloading: org/clojure/clojure/1.10.1/clojure-1.10.1.pom from https://repo1.maven.org/maven2/ Downloading: http-kit/http-kit/2.3.0/http-kit-2.3.0.pom from https://repo.clojars.org/ Downloading: metosin/jsonista/0.2.4/jsonista-0.2.4.pom from https://repo.clojars.org/ Cloning: https://github.com/xfthhxk/cambada...