Open tineo opened 4 years ago
Step 7/35 : RUN clojure -A:native-image ---> Running in 26cc3f3205fd Cleaning target Creating target/classes Compiling lambda.core Creating target/app SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder". SLF4J: Defaulting to no-operation (NOP) logger implementation SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details. ERROR! Error: Image build request failed with exit status 137
The command '/bin/sh -c clojure -A:native-image' returned a non-zero code: 1 make: *** [deploy-lambda-via-container] Error 1
Probably out of memory. How much RAM do you have?
@dainiusjocas running on a MBP
Give the docker service more memory, like 8gb and try again
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
@dainiusjocas thanks for spotting this. It is now fixed.
@dainiusjocas I am new to docker.
I ran the command docker build --target builder -t graalvm-compiler -m 8g .
which is still giving me the same error.
Here is the complete log:
`FLaSH:hello-world flash$ docker build --target builder -t graalvm-compiler -m 8g .
Sending build context to Docker daemon 52.22kB
Step 1/10 : FROM tokenmill/clojure:graalvm-ce-19.0.0-tools-deps-1.10.0.442 as builder
---> e9772afd2ed8
Step 2/10 : RUN mkdir -p /usr/src/app
---> Using cache
---> a5a42a551944
Step 3/10 : WORKDIR /usr/src/app
---> Using cache
---> 1fc800d0ead5
Step 4/10 : COPY deps.edn /usr/src/app/
---> Using cache
---> fd8fe54be7b8
Step 5/10 : RUN clojure -R:native-image
---> Using cache
---> 5d3fe8e0b4ce
Step 6/10 : COPY . /usr/src/app
---> d5a32cc49f18
Step 7/10 : RUN clojure -A:native-image
---> Running in 55b8a49ec61c
Cleaning target
Creating target/classes
Compiling lambda.core
Creating target/app
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
ERROR! Error: Image build request failed with exit status 137
The command '/bin/sh -c clojure -A:native-image' returned a non-zero code: 1 FLaSH:hello-world flash$`
@zmedelis the update u made was not published to clojars?
lein new clojure-graalvm-aws-lambda your-lambda
seems to pull in the same old change
I finally was able to run using
docker build --target builder -t graalvm-compiler -m 8g -c 2 --memory-swap -1 .
Error docker building in https://github.com/xfthhxk/cambada