Skip to content
Snippets Groups Projects
Commit 7f439901 authored by Nicolas M. Thiéry's avatar Nicolas M. Thiéry
Browse files

Initial commit

parents
No related branches found
No related tags found
No related merge requests found
?-*/
*.egg-info
__pycache__
.mypy_cache
.ipynb_checkpoints
stages:
- build_image
#- test
variables:
DEPENDENCIES_IMAGE_NAME: "${CI_REGISTRY_IMAGE}/image:latest"
MYDOCKER_IMAGE_NAME: "${CI_REGISTRY_IMAGE}/mydocker-image:latest"
STORAGE_DRIVER: vfs # for buildah
REGISTRY_AUTH_FILE: /root/auth.json
build_image:
stage: build_image
image: tomkukral/buildah:0.32
before_script:
- podman login --username "${CI_REGISTRY_USER}" --password "${CI_REGISTRY_PASSWORD}" "${CI_REGISTRY}"
script:
- buildah build-using-dockerfile --format docker -t ${DEPENDENCIES_IMAGE_NAME} --file Dockerfile-CI .
- buildah push --authfile ${REGISTRY_AUTH_FILE} ${DEPENDENCIES_IMAGE_NAME}
- buildah build-using-dockerfile --pull-never --format docker -t ${MYDOCKER_IMAGE_NAME} --file Dockerfile-myDocker-CI .
- buildah push --authfile ${REGISTRY_AUTH_FILE} ${MYDOCKER_IMAGE_NAME}
after_script:
- podman logout "${CI_REGISTRY}"
# only:
# changes:
image: ${DEPENDENCIES_IMAGE_NAME}
# test:
# stage: test
# script:
# - mypy
# A docker file for building the image on GitLab's CI
FROM mambaorg/micromamba:latest
COPY --chown=$MAMBA_USER:$MAMBA_USER . /tmp/binder
RUN cd /tmp/binder && \
micromamba install -y -n base -f environment.yml && \
micromamba clean --all --yes && \
/usr/local/bin/_entrypoint.sh pip cache purge && \
cp mydocker_entrypoint.sh /opt/conda/bin/mydocker_entrypoint.sh && \
cp -ra install_file/* /opt/conda/
RUN rm -rf /tmp/binder
FROM gitlab.dsi.universite-paris-saclay.fr:5005/jupyterhub-paris-saclay/images-alternatives/julia/image:latest
VOLUME /home/mambauser
HEALTHCHECK NONE
ENTRYPOINT ["/opt/conda/bin/mydocker_entrypoint.sh"]
# Image Julia pour myDocker
Ce dépôt permet de construire par intégration continue une image
Docker pour utilisation par myDocker.
name: julia
channels:
- conda-forge
dependencies:
- python>=3.11
- make
- mamba
- git
##############################################################################
# JupyterLab
- jupyterlab>=4
- jupyterlab-language-pack-fr-FR
- nbgitpuller
# jupyterlab non critical extensions
- jupyter-resource-usage
- jupyterlab-git
- jupyterlab_code_formatter
- jupyter_console # for image CI tests
##############################################################################
# Authoring and teaching tools
- jupytext
- jupyterlab-myst>=2.1.0
- jupyter-book
- mystmd
- nodejs
- nbgrader>=0.9.1
- jupyterlab-deck
##############################################################################
# For computations
- julia
##############################################################################
# For code validation
#!/bin/bash
set -e
source _activate_current_env.sh
export SHELL=/bin/bash
jupyter lab \
--IdentityProvider.token=${2} \
--ip="0.0.0.0" \
--notebook-dir=/home/mambauser \
--MappingKernelManager.cull_idle_timeout=3600 \
--MappingKernelManager.cull_interval=300 \
--TerminalManager.cull_inactive_timeout=3600 \
--TerminalManager.cull_interval=300
{ "ContentsManager": {"notebook_extensions": "ipynb,md" } }
{
"@jupyterlab/docmanager-extension:plugin":
{
"defaultViewers":
{
"markdown": "Jupytext Notebook",
"myst": "Jupytext Notebook"
}
},
"@jupyterlab/translation-extension:plugin":
{
"locale": "fr_FR"
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment