Loading sunny/Dockerfile +19 −8 Original line number Diff line number Diff line from savannah.ornl.gov/gravitas/jupyter-notebook:25.2 from jupyter-notebook:latest #run apt-get update -y && \ # apt-get upgrade -y run apt-get update -y && \ apt-get upgrade -y && \ apt-get install -y g++ user jovyan #ENV JULIA_CPU_TARGET="generic;tigerlake,clone_all;znver3,clone_all" ENV JULIA_CPU_TARGET="generic;sandybridge,-xsaveopt,clone_all;haswell,-rdrnd,base(1);x86-64-v4,-rdrnd,base(1)" #ENV JULIA_CPU_TARGET="generic;sandybridge,-xsaveopt,clone_all;haswell,-rdrnd,base(1);x86-64-v4,-rdrnd,base(1)" ENV JULIA_CPU_TARGET="x86-64-v3" run julia -e 'using Pkg; Pkg.Registry.update(); \ Pkg.add([Pkg.PackageSpec(;name="JLLWrappers", version="1.7.0"), \ Pkg.PackageSpec(;name="Sunny", version="0.7.5"), \ Pkg.PackageSpec(;name="WGLMakie"), \ Pkg.PackageSpec(;name="MKL"), \ Pkg.PackageSpec(;name="PackageCompiler"), \ Pkg.PackageSpec(;url="https://github.com/quantumsteve/Bonito.jl",rev="jupyter_base_url")]); \ Pkg.precompile()' using PackageCompiler, IJulia, Sunny, WGLMakie, MKL; \ create_sysimage([:IJulia, :Sunny, :WGLMakie, :MKL], sysimage_path="/home/jovyan/sys_flux_plots.so", cpu_target=ENV["JULIA_CPU_TARGET"]); \ IJulia.installkernel("Julia Sunny WGLMakie", "--sysimage=/home/jovyan/sys_flux_plots.so")' # Move the kernelspec out of ${HOME} to the system share location. # Avoids problems with runtime UID change not taking effect properly # on the .local folder in the jovyan home dir. run mv "${HOME}/.local/share/jupyter/kernels/julia"* "${CONDA_DIR}/share/jupyter/kernels/" run chmod -R go+rx "${CONDA_DIR}/share/jupyter" run rm -rf "${HOME}/.local" run fix-permissions "${JULIA_PKGDIR}" "${CONDA_DIR}/share/jupyter" run chmod -R 777 /opt/julia #ADD jupyter_lab_config.py /home/$NB_USER/.jupyter/ #ADD jupyter_notebook_config.py /home/$NB_USER/.jupyter/ user root COPY examples ./examples run chmod -R 777 examples Loading sunny/jupyter_lab_config.pydeleted 100644 → 0 +0 −871 File deleted.Preview size limit exceeded, changes collapsed. Show changes Loading
sunny/Dockerfile +19 −8 Original line number Diff line number Diff line from savannah.ornl.gov/gravitas/jupyter-notebook:25.2 from jupyter-notebook:latest #run apt-get update -y && \ # apt-get upgrade -y run apt-get update -y && \ apt-get upgrade -y && \ apt-get install -y g++ user jovyan #ENV JULIA_CPU_TARGET="generic;tigerlake,clone_all;znver3,clone_all" ENV JULIA_CPU_TARGET="generic;sandybridge,-xsaveopt,clone_all;haswell,-rdrnd,base(1);x86-64-v4,-rdrnd,base(1)" #ENV JULIA_CPU_TARGET="generic;sandybridge,-xsaveopt,clone_all;haswell,-rdrnd,base(1);x86-64-v4,-rdrnd,base(1)" ENV JULIA_CPU_TARGET="x86-64-v3" run julia -e 'using Pkg; Pkg.Registry.update(); \ Pkg.add([Pkg.PackageSpec(;name="JLLWrappers", version="1.7.0"), \ Pkg.PackageSpec(;name="Sunny", version="0.7.5"), \ Pkg.PackageSpec(;name="WGLMakie"), \ Pkg.PackageSpec(;name="MKL"), \ Pkg.PackageSpec(;name="PackageCompiler"), \ Pkg.PackageSpec(;url="https://github.com/quantumsteve/Bonito.jl",rev="jupyter_base_url")]); \ Pkg.precompile()' using PackageCompiler, IJulia, Sunny, WGLMakie, MKL; \ create_sysimage([:IJulia, :Sunny, :WGLMakie, :MKL], sysimage_path="/home/jovyan/sys_flux_plots.so", cpu_target=ENV["JULIA_CPU_TARGET"]); \ IJulia.installkernel("Julia Sunny WGLMakie", "--sysimage=/home/jovyan/sys_flux_plots.so")' # Move the kernelspec out of ${HOME} to the system share location. # Avoids problems with runtime UID change not taking effect properly # on the .local folder in the jovyan home dir. run mv "${HOME}/.local/share/jupyter/kernels/julia"* "${CONDA_DIR}/share/jupyter/kernels/" run chmod -R go+rx "${CONDA_DIR}/share/jupyter" run rm -rf "${HOME}/.local" run fix-permissions "${JULIA_PKGDIR}" "${CONDA_DIR}/share/jupyter" run chmod -R 777 /opt/julia #ADD jupyter_lab_config.py /home/$NB_USER/.jupyter/ #ADD jupyter_notebook_config.py /home/$NB_USER/.jupyter/ user root COPY examples ./examples run chmod -R 777 examples Loading
sunny/jupyter_lab_config.pydeleted 100644 → 0 +0 −871 File deleted.Preview size limit exceeded, changes collapsed. Show changes