Skip to content
Snippets Groups Projects
Commit 6d422026 authored by Emmanuel Bruno's avatar Emmanuel Bruno
Browse files

upgrades jupyter version.

parent 6eec4d5f
No related branches found
No related tags found
No related merge requests found
name: ci
on:
push:
branches:
- 'releases/v*'
- 'develop'
tags:
- 'v*.*.*'
workflow_dispatch:
jobs:
docker:
runs-on: [self-hosted, Linux, X64]
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set the environment variable
run: echo REPOSITORY_NAME=${GITHUB_REPOSITORY#*\/} >> $GITHUB_ENV
- name: Docker meta
id: meta
uses: docker/metadata-action@v4
with:
images: |
"${{ secrets.DOCKERHUB_USERNAME }}/${{ env.REPOSITORY_NAME }}"
tags: |
type=ref,event=branch
type=ref,event=pr
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
type=semver,pattern={{major}}
- name: Login to DockerHub
if: github.event_name != 'pull_request'
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Build and push
uses: docker/build-push-action@v4
with:
context: .
platforms: linux/amd64,linux/arm64/v8
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
#FROM jupyter/scipy-notebook:2022-10-24 ARG LAB_BASE=jupyter/scipy-notebook:lab-3.6.1
FROM jupyter/scipy-notebook:lab-3.5.0
FROM ${LAB_BASE}
USER root USER root
ENV PIP_CACHE_DIR=/var/cache/buildkit/pip ENV PIP_CACHE_DIR=/var/cache/buildkit/pip
RUN --mount=type=cache,target=/var/cache/apt \ RUN --mount=type=cache,target=/var/cache/apt \
rm -f /etc/apt/apt.conf.d/docker-clean &&\
mkdir -p $PIP_CACHE_DIR &&\ mkdir -p $PIP_CACHE_DIR &&\
apt-get update --yes && apt-get install --yes -qq --no-install-recommends \ apt-get update --yes && \
apt-get install --yes -qq --no-install-recommends \
bash \ bash \
curl \ curl \
less \ less \
...@@ -19,7 +20,7 @@ RUN --mount=type=cache,target=/var/cache/apt \ ...@@ -19,7 +20,7 @@ RUN --mount=type=cache,target=/var/cache/apt \
# Sets Defaults directories # Sets Defaults directories
ENV WORK_DIR $HOME/work ENV WORK_DIR $HOME/work
ENV NOTEBOOKS_DIR $WORK_DIR/notebooks ENV NOTEBOOKS_DIR $WORK_DIR/notebooks
ENV SAMPLES_DIR $WORK_DIR/samples ENV DATA_DIR $WORK_DIR/data
# Sets codeserver directories # Sets codeserver directories
ENV CODESERVEREXT_DIR /opt/codeserver/extensions ENV CODESERVEREXT_DIR /opt/codeserver/extensions
...@@ -43,18 +44,21 @@ RUN --mount=type=cache,target=/var/cache/buildkit/pip \ ...@@ -43,18 +44,21 @@ RUN --mount=type=cache,target=/var/cache/buildkit/pip \
jupyterlab-git \ jupyterlab-git \
jupyterlab-system-monitor \ jupyterlab-system-monitor \
jinja-yaml-magic \ jinja-yaml-magic \
jupyterlab_widgets \
# ipympl \ # ipympl \
&& \ && \
jupyter labextension install @jupyter-widgets/jupyterlab-manager && \
# pip install jupyterlab_templates && \ # pip install jupyterlab_templates && \
# jupyter labextension install jupyterlab_templates && \ # jupyter labextension install jupyterlab_templates && \
# jupyter serverextension enable --py jupyterlab_templates && \ # jupyter serverextension enable --py jupyterlab_templates && \
# conda install defaults::nb_conda_kernels && \ # conda install defaults::nb_conda_kernels && \
mamba install --quiet --yes nb_conda_kernels && \ mamba install --quiet --yes \
nb_conda_kernels \
&& \
mamba install --quiet --yes -c conda-forge \ mamba install --quiet --yes -c conda-forge \
jupyterlab-drawio \ jupyterlab-drawio \
jupyterlab_code_formatter \ # jupyterlab_code_formatter \
tectonic texlab chktex && \ # tectonic texlab chktex \
&& \
echo -e "\e[93m**** Installs Code Server Web ****\e[38;5;241m" && \ echo -e "\e[93m**** Installs Code Server Web ****\e[38;5;241m" && \
curl -fsSL https://code-server.dev/install.sh | sh -s -- --prefix=/opt --method=standalone && \ curl -fsSL https://code-server.dev/install.sh | sh -s -- --prefix=/opt --method=standalone && \
mkdir -p $CODESERVERDATA_DIR &&\ mkdir -p $CODESERVERDATA_DIR &&\
...@@ -68,7 +72,8 @@ RUN --mount=type=cache,target=/var/cache/buildkit/pip \ ...@@ -68,7 +72,8 @@ RUN --mount=type=cache,target=/var/cache/buildkit/pip \
--install-extension SonarSource.sonarlint-vscode \ --install-extension SonarSource.sonarlint-vscode \
--install-extension GabrielBB.vscode-lombok \ --install-extension GabrielBB.vscode-lombok \
--install-extension james-yu.latex-workshop \ --install-extension james-yu.latex-workshop \
--install-extension jebbs.plantuml && \ --install-extension jebbs.plantuml \
--install-extension eamodio.gitlens && \
groupadd codeserver && \ groupadd codeserver && \
chgrp -R codeserver $CODESERVEREXT_DIR &&\ chgrp -R codeserver $CODESERVEREXT_DIR &&\
chmod 770 -R $CODESERVEREXT_DIR && \ chmod 770 -R $CODESERVEREXT_DIR && \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment