Skip to content

Commit

Permalink
No longer create a custom sysimage
Browse files Browse the repository at this point in the history
  • Loading branch information
tomyun committed Apr 22, 2024
1 parent 2ce5149 commit 8751e11
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions .binder/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -140,21 +140,9 @@ RUN julia -e 'import Pkg; Pkg.add("MKL_jll"); using MKL_jll;'
# install Cropbox-related packages
RUN julia -e 'using Pkg; pkg"add CropRootBox Garlic LeafGasExchange SimpleCrop";'

# create a system image with Cropbox built-in
ENV CROPBOX_IMG=${CROPBOX_DIR}/cropbox.so
RUN julia -e 'import Pkg; Pkg.add("PackageCompiler"); using PackageCompiler; create_sysimage(:Cropbox; sysimage_path="'${CROPBOX_IMG}'", precompile_execution_file="'${REPO_DIR}'/.binder/precompile.jl", cpu_target=PackageCompiler.default_app_cpu_target());' || exit 1

# update IJulia kernel with custom system image
RUN julia -e 'using IJulia; installkernel("Julia", "--project='${HOME}'", "--sysimage='${CROPBOX_IMG}'");'

# clean up as root
USER root

# create a wrapper for Julia REPL with custom system image
RUN rm /usr/local/bin/julia && \
echo -e '#!/bin/bash\n/opt/julia-'${JULIA_VERSION}'/bin/julia -J'${CROPBOX_IMG} '"$@"' > /usr/local/bin/julia && \
chmod +x /usr/local/bin/julia

RUN chown -R ${NB_USER}:users ${HOME} && \
chown -R ${NB_USER}:users ${JULIA_DEPOT_PATH}

Expand Down

0 comments on commit 8751e11

Please sign in to comment.