Skip to content

Commit 5db7496

Browse files
authored
Merge pull request #115 from gaelforget/update_page_202509
Update page 202509
2 parents 0cfae05 + a98a8e8 commit 5db7496

File tree

7 files changed

+1945
-499
lines changed

7 files changed

+1945
-499
lines changed

.github/workflows/DeployPage.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ on:
33
push:
44
branches:
55
- master
6-
- v0p3p17d
6+
- update_page_202509
77
pull_request:
88
jobs:
99
build-and-deploy:
@@ -20,9 +20,9 @@ jobs:
2020
# python-version: '3.8'
2121
# - run: pip install matplotlib
2222
- name: Install Julia
23-
uses: julia-actions/setup-julia@v1
23+
uses: julia-actions/setup-julia@v2
2424
with:
25-
version: 1.9
25+
version: 1
2626
# NOTE
2727
# Adjust the `input=""` on the last line to indicate where
2828
# the source of the package page is (`page/` by default).
@@ -49,7 +49,7 @@ jobs:
4949
Pkg.add.(["Pluto", "PlutoUI", "PlutoSliderServer"]);
5050
Pkg.add.(["YAXArrays", "Zarr", "NetCDF", "EarthDataLab"]);
5151
Pkg.add.(["ArchGDAL","Colors","DiskArrays","Dataverse"]);
52-
Pkg.add.(["OceanStateEstimation","IJulia"]);
52+
Pkg.add.(["Climatology","IJulia"]);
5353
include("src/warmup1.jl");
5454
include("tutorials/run_notebooks.jl");'
5555
- name: Build and Deploy

Dockerfile

Lines changed: 16 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,14 @@
11
FROM jupyter/base-notebook:latest
22

33
USER root
4-
RUN wget https://julialang-s3.julialang.org/bin/linux/x64/1.10/julia-1.10.2-linux-x86_64.tar.gz && \
5-
tar -xvzf julia-1.10.2-linux-x86_64.tar.gz && \
6-
mv julia-1.10.2 /opt/ && \
7-
ln -s /opt/julia-1.10.2/bin/julia /usr/local/bin/julia && \
8-
rm julia-1.10.2-linux-x86_64.tar.gz
94

105
ENV mainpath ./
116
RUN mkdir -p ${mainpath}
127

13-
USER ${NB_USER}
14-
15-
COPY --chown=${NB_USER}:users ./src ${mainpath}/src
16-
COPY --chown=${NB_USER}:users ./src/plutoserver ${mainpath}/plutoserver
17-
18-
RUN cp ${mainpath}/src/setup.py ${mainpath}/setup.py
19-
RUN cp ${mainpath}/src/runpluto.sh ${mainpath}/runpluto.sh
20-
RUN cp ${mainpath}/src/environment.yml ${mainpath}/environment.yml
21-
RUN cp ${mainpath}/src/Project.toml ${mainpath}/Project.toml
22-
23-
ENV USER_HOME_DIR /home/${NB_USER}
24-
ENV JULIA_PROJECT ${USER_HOME_DIR}
25-
ENV JULIA_DEPOT_PATH ${USER_HOME_DIR}/.julia
26-
27-
RUN julia -e "import Pkg; Pkg.Registry.update();"
28-
RUN julia -e "import Pkg; Pkg.instantiate();"
29-
30-
USER root
31-
328
RUN apt-get update && \
339
apt-get install -y --no-install-recommends build-essential && \
3410
apt-get install -y --no-install-recommends vim && \
11+
apt-get install -y --no-install-recommends curl && \
3512
apt-get install -y --no-install-recommends git-all && \
3613
apt-get install -y --no-install-recommends unzip && \
3714
apt-get install -y --no-install-recommends gfortran && \
@@ -43,13 +20,26 @@ RUN apt-get update && \
4320

4421
USER ${NB_USER}
4522

23+
RUN echo 'alias julia="${mainpath}/.juliaup/bin/julia --project=${mainpath}"' >> ~/.bashrc
24+
RUN curl -fsSL https://install.julialang.org | sh -s -- --yes
25+
26+
COPY --chown=${NB_USER}:users ./src ${mainpath}/src
27+
COPY --chown=${NB_USER}:users ./src/plutoserver ${mainpath}/plutoserver
28+
29+
RUN cp ${mainpath}/src/setup.py ${mainpath}/setup.py
30+
RUN cp ${mainpath}/src/runpluto.sh ${mainpath}/runpluto.sh
31+
RUN cp ${mainpath}/src/environment.yml ${mainpath}/environment.yml
32+
RUN cp ${mainpath}/src/Project.toml ${mainpath}/Project.toml
33+
34+
RUN ${mainpath}/.juliaup/bin/julia --project=${mainpath}/src -e "import Pkg; Pkg.update(); Pkg.instantiate();"
35+
4636
RUN jupyter lab build && \
4737
jupyter lab clean && \
4838
pip install ${mainpath} --no-cache-dir && \
4939
rm -rf ~/.cache
5040

51-
RUN julia ${mainpath}/src/warmup1.jl
52-
RUN julia ${mainpath}/src/download_notebooks.jl
41+
RUN ${mainpath}/.juliaup/bin/julia --project=${mainpath}/src ${mainpath}/src/warmup1.jl
42+
RUN ${mainpath}/.juliaup/bin/julia --project=${mainpath}/src ${mainpath}/src/download_notebooks.jl
5343

5444
RUN mkdir .dev
5545
RUN mv build plutoserver.egg-info .dev

0 commit comments

Comments
 (0)