Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update for Julia 1.8 #16

Merged
merged 4 commits into from
May 1, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
9 changes: 5 additions & 4 deletions template_files/Dockerfile
Original file line number Diff line number Diff line change
@@ -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

Expand All @@ -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 . .
Expand Down
2 changes: 1 addition & 1 deletion template_files/bootstrap
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion template_files/template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Resources:
Metadata:
Dockerfile: Dockerfile
DockerContext: .
DockerTag: julia1.6-v1
DockerTag: julia1.8-v1

Outputs:
JuliaFunctionLambdaArn:
Expand Down