Skip to content

Commit a743570

Browse files
feat(sqs-example): Add reproducible error in sqs-example for GraalVM team
1 parent 0d34c17 commit a743570

File tree

14 files changed

+63
-34
lines changed

14 files changed

+63
-34
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
/target
22
packaged.yaml
3+
server
34
native-packaged.yaml
45
*.zip
56
bootstrap

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
# Holy Lambda
22

3-
[![Clojars Project](https://img.shields.io/clojars/v/fierycod/holy-lambda.svg)](https://clojars.org/fierycod/holy-lambda)
3+
[![Clojars Project](https://img.shields.io/clojars/v/fierycod/holy-lambda.svg?logo=clojure&logoColor=white)](https://clojars.org/fierycod/holy-lambda)
4+
[![Downloads](https://jarkeeper.com/fierycod/holy-lambda/downloads.svg)](https://jarkeeper.com/fierycod/holy-lambda)
5+
[![Dependencies Status](https://jarkeeper.com/fierycod/holy-lambda/status.svg)](https://jarkeeper.com/fierycod/holy-lambda)
46
[![Open Source Love](https://badges.frapsoft.com/os/v1/open-source.svg?v=103)](https://github.com/ellerbrock/open-source-badges/)
57
[![MIT Licence](https://badges.frapsoft.com/os/mit/mit.svg?v=103)](https://opensource.org/licenses/mit-license.php)
68

config.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# Clojure CircleCI 2.0 configuration file
2+
#
3+
# Check https://circleci.com/docs/2.0/language-clojure/ for more details
4+
#
5+
version: 2
6+
jobs:
7+
build:
8+
docker:
9+
- image: circleci/clojure:lein-2.7.1
10+
working_directory: ~/holy-lambda
11+
12+
environment:
13+
LEIN_ROOT: "true"
14+
# Customize the JVM maximum heap limit
15+
JVM_OPTS: -Xmx3200m
16+
17+
steps:
18+
- checkout
19+
- restore_cache:
20+
keys:
21+
- v1-dependencies-{{ checksum "project.clj" }}
22+
# fallback to using the latest cache if no exact match is found
23+
- v1-dependencies-
24+
- run: lein deps
25+
- save_cache:
26+
paths:
27+
- ~/.m2
28+
key: v1-dependencies-{{ checksum "project.clj" }}
File renamed without changes.

examples/hello-lambda/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ native-compile:
3232
--enable-url-protocols=http,https \
3333
--no-server -J-Xmx3G -J-Xms3G \
3434
--initialize-at-build-time"
35-
@mv -f hello-lambda bootstrap
36-
@zip latest bootstrap
35+
@mv -f hello-lambda server
36+
@zip latest server bootstrap
3737

3838
native-dry-api:
3939
@sam local start-api --template ./native-template.yml --skip-pull-image

examples/hello-lambda/reflect.json

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

examples/hello-lambda/resources/.gitkeep

Whitespace-only changes.

examples/hello-lambda/resources/native-deps/.gitkeep

Whitespace-only changes.

examples/sqs-example/Makefile

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@ LAMBDA_NAME=ReceiveStringLambdaFunction
1111
EVENT_PAYLOAD_FILE=./sample-receive-event.json
1212

1313
prepare-dependencies:
14-
@cp /usr/lib/jvm/java-1.8.0-openjdk/jre/lib/amd64/libsunec.so ./dependencies/
14+
@cp /usr/lib64/libcrypt.so resources/native-deps
15+
@cp /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.212.b04-0.fc30.x86_64/jre/lib/amd64/libsunec.so resources/native-deps
1516

1617
make-bucket:
1718
@aws s3 mb s3://$(BUCKET_NAME)
@@ -34,14 +35,14 @@ native-compile:
3435
--report-unsupported-elements-at-runtime \
3536
--no-fallback \
3637
--enable-url-protocols=http,https \
37-
--no-server -J-Xmx3G -J-Xms3G \
38-
--initialize-at-build-time \
39-
-H:+PrintClassInitialization \
40-
--enable-all-security-services \
41-
-H:ReflectionConfigurationFiles=reflect.json \
42-
-H:DynamicProxyConfigurationFiles=dynamic-proxies.json"
43-
@mv -f sqs-example bootstrap
44-
@zip -j latest bootstrap dependencies/libsunec.so
38+
--no-server -J-Xmx3G -J-Xms3G \
39+
--initialize-at-build-time \
40+
-H:ReflectionConfigurationFiles=reflect.json \
41+
-H:DynamicProxyConfigurationFiles=dynamic-proxies.json \
42+
--allow-incomplete-classpath \
43+
--enable-all-security-services"
44+
@mv -f sqs-example server
45+
@zip -j latest bootstrap server resources/native-deps/*
4546

4647
native-dry-api:
4748
@sam local start-api --template ./native-template.yml --skip-pull-image

examples/sqs-example/project.clj

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
(defproject sqs-example "0.1.0-SNAPSHOT"
2-
:dependencies [[org.clojure/clojure "1.10.1-RC1"]
2+
:dependencies [[org.clojure/clojure "1.10.1"]
33
[fierycod/holy-lambda "0.0.2"]
4-
[commons-logging/commons-logging "1.2"]
5-
[log4j/log4j "1.2.17"]
6-
[com.amazonaws/aws-java-sdk-sqs "1.11.560"]]
4+
[com.amazonaws/aws-java-sdk-bom "1.11.568" :extension "pom" :scope "import"]
5+
[com.amazonaws/aws-java-sdk-sqs "1.11.568"]]
76
:global-vars {*warn-on-reflection* true}
87
:main ^:skip-aot sqs-example.core
98
:profiles {:uberjar {:aot :all}}

0 commit comments

Comments
 (0)