Skip to content

Commit acaf400

Browse files
feat(graalvm,dockerfile): Change the default version of GraalVM to the latest stable one
fix #9
1 parent 44ebc0d commit acaf400

File tree

6 files changed

+12
-20
lines changed

6 files changed

+12
-20
lines changed

Makefile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,12 @@ setup: use-nvm
2323
@bash -c "chmod +x resources/fnative && sudo cp resources/fnative /usr/local/bin/"
2424
@printf "\n ${GREEN} Sucessfully installed fnative utility... ${NC}\n"
2525

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+
2632
release: use-nvm
2733
@sh ./resources/github-tag.sh $(VERSION)
2834

examples/hello-lambda/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ dry-api:
2626

2727
native-compile:
2828
@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"
3030
@mv -f hello-lambda bootstrap
3131
@zip latest bootstrap
3232

resources/Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
FROM oracle/graalvm-ce:19.0.0
2+
RUN gu install native-image

resources/fnative

100755100644
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ RED='\033[1;31m'
77
NC='\033[0m'
88

99
FIERY_NATIVE_VERSION="0.0.1"
10-
DEFAULT_VERSION=oracle/graalvm-ce:1.0.0-rc16
10+
DEFAULT_VERSION=fierycod/graalvm-native-image:latest
1111
VERSION=""
1212
VOLUME_PATH=""
1313
CONTAINER_NAME="fnative_$(openssl rand -hex 10)"

resources/log4j2.xml

Lines changed: 0 additions & 15 deletions
This file was deleted.

src/fierycod/holy_lambda/core.clj

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@
158158
;; (~lambda in# out# ctx#))))
159159
(throw (Exception. "Lambada style is not supported for now. Check source code!"))
160160

161-
;; default
161+
;; When arity does not match
162162
(throw (Exception. "Invalid arity..")))))
163163

164164
(defn- native->aws-context
@@ -219,8 +219,7 @@
219219
:errorType (-> err (.getClass) (.getCanonicalName))}
220220
response (http "POST" url payload)]
221221
(if (success-codes (:status response))
222-
;; When response is "ok" then do nothing
223-
nil
222+
nil ;; When response is "ok" then do nothing
224223
(do (fatal "AWS did not accept the response. Error message:" (:body response))
225224
(exit!)))))
226225

0 commit comments

Comments
 (0)