diff --git a/Project.toml b/Project.toml index c25fb93..3ec63af 100644 --- a/Project.toml +++ b/Project.toml @@ -1,6 +1,6 @@ name = "LambdaMaker" uuid = "8b137802-21d4-43b8-8610-b92ef2bbc330" -version = "0.1.2" +version = "0.1.3" [deps] Mustache = "ffc61752-8dc7-55ee-8c37-f3e9cdd09e70" diff --git a/template_files/Dockerfile b/template_files/Dockerfile index 2956fc0..f230713 100644 --- a/template_files/Dockerfile +++ b/template_files/Dockerfile @@ -1,8 +1,8 @@ FROM public.ecr.aws/lambda/provided:al2 -ARG FOLDER=1.6 -ARG JULIA_VERSION=1.6.2 -ARG SHA256="3eb4b5775b0df1ad38f6c409e989501ab445c95bcb01ab02bd60f5bd1e823240" +ARG FOLDER=1.8 +ARG JULIA_VERSION=1.8.5 +ARG SHA256="e71a24816e8fe9d5f4807664cbbb42738f5aa9fe05397d35c81d4c5d649b9d05" WORKDIR /usr/local @@ -29,7 +29,8 @@ ENV JULIA_DEPOT_PATH /var/task/.julia # Instantiate project and precompile packages COPY Manifest.toml . COPY Project.toml . -RUN /usr/local/julia/bin/julia --project=. -e "using Pkg; Pkg.instantiate(); Pkg.API.precompile()" +# LD_LIBRARY_PATH is cleared due to https://github.com/JuliaLang/julia/issues/46409 +RUN LD_LIBRARY_PATH="" /usr/local/julia/bin/julia --project=. -e "using Pkg; Pkg.instantiate(); Pkg.API.precompile()" # Copy application code COPY . . diff --git a/template_files/bootstrap b/template_files/bootstrap index 8a2998c..81ffe21 100755 --- a/template_files/bootstrap +++ b/template_files/bootstrap @@ -2,4 +2,4 @@ # This script is called by the lambda execution environment when it receives the very first invocation request. cd /var/task -/usr/local/julia/bin/julia --project=. handle_requests.jl +LD_LIBRARY_PATH="" /usr/local/julia/bin/julia --project=. handle_requests.jl diff --git a/template_files/template.yml b/template_files/template.yml index dc18510..bc3f62e 100644 --- a/template_files/template.yml +++ b/template_files/template.yml @@ -13,7 +13,7 @@ Resources: Metadata: Dockerfile: Dockerfile DockerContext: . - DockerTag: julia1.6-v1 + DockerTag: julia1.8-v1 Outputs: JuliaFunctionLambdaArn: