File tree Expand file tree Collapse file tree 6 files changed +12
-20
lines changed Expand file tree Collapse file tree 6 files changed +12
-20
lines changed Original file line number Diff line number Diff line change @@ -23,6 +23,12 @@ setup: use-nvm
23
23
@bash -c " chmod +x resources/fnative && sudo cp resources/fnative /usr/local/bin/"
24
24
@printf " \n ${GREEN} Sucessfully installed fnative utility... ${NC} \n"
25
25
26
+ install-fnative :
27
+ @sudo cp -f resources/fnative /usr/local/bin
28
+
29
+ build-docker :
30
+ @docker build . -f resources/Dockerfile -t fierycod/graalvm-native-image
31
+
26
32
release : use-nvm
27
33
@sh ./resources/github-tag.sh $(VERSION )
28
34
Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ dry-api:
26
26
27
27
native-compile :
28
28
@rm -Rf latest.zip
29
- @fnative " -jar target/hello-lambda.jar --report-unsupported-elements-at-runtime --no-fallback --enable-url-protocols=http,https --no-server -J-Xmx3G -J-Xms3G"
29
+ @fnative " -jar target/hello-lambda.jar --report-unsupported-elements-at-runtime --no-fallback --enable-url-protocols=http,https --no-server -J-Xmx3G -J-Xms3G --initialize-at-build-time "
30
30
@mv -f hello-lambda bootstrap
31
31
@zip latest bootstrap
32
32
Original file line number Diff line number Diff line change
1
+ FROM oracle/graalvm-ce:19.0.0
2
+ RUN gu install native-image
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ RED='\033[1;31m'
7
7
NC=' \033[0m'
8
8
9
9
FIERY_NATIVE_VERSION=" 0.0.1"
10
- DEFAULT_VERSION=oracle /graalvm-ce:1.0.0-rc16
10
+ DEFAULT_VERSION=fierycod /graalvm-native-image:latest
11
11
VERSION=" "
12
12
VOLUME_PATH=" "
13
13
CONTAINER_NAME=" fnative_$( openssl rand -hex 10) "
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 158
158
; ; (~lambda in# out# ctx#))))
159
159
(throw (Exception. " Lambada style is not supported for now. Check source code!" ))
160
160
161
- ; ; default
161
+ ; ; When arity does not match
162
162
(throw (Exception. " Invalid arity.." )))))
163
163
164
164
(defn- native->aws-context
219
219
:errorType (-> err (.getClass ) (.getCanonicalName ))}
220
220
response (http " POST" url payload)]
221
221
(if (success-codes (:status response))
222
- ; ; When response is "ok" then do nothing
223
- nil
222
+ nil ; ; When response is "ok" then do nothing
224
223
(do (fatal " AWS did not accept the response. Error message:" (:body response))
225
224
(exit! )))))
226
225
You can’t perform that action at this time.
0 commit comments