Skip to content
Snippets Groups Projects
Commit 9f3f3d8f authored by Quang tru HUYNH's avatar Quang tru HUYNH
Browse files

Initial commit

parents
No related branches found
No related tags found
No related merge requests found
Pipeline #98071 passed
image: registry-gitlab.pasteur.fr/dsi-tools/docker-images/docker:latest
services:
- registry-gitlab.pasteur.fr/dsi-tools/docker-images/docker:dind
stages:
- build
docker:
stage: build
script:
- docker login -u gitlab-ci-token -p "$CI_BUILD_TOKEN" registry-gitlab.pasteur.fr
- export MY_TIME=`date +"%F-%H%M"`
- docker build --pull -t "$CI_REGISTRY_IMAGE:$CI_BUILD_REF_NAME" -t "$CI_REGISTRY_IMAGE:$CI_COMMIT_SHORT_SHA" -t "$CI_REGISTRY_IMAGE:latest" -t "$CI_REGISTRY_IMAGE:$MY_TIME" . -f Dockerfile
- docker push "$CI_REGISTRY_IMAGE"
singularity:
stage: build
image:
name: quay.io/singularity/singularity:v3.11.0
entrypoint: [""]
script:
- singularity build singularity.sif Singularity
- ls -lh singularity.sif
- singularity push --docker-username "${CI_REGISTRY_USER}" --docker-password "${CI_REGISTRY_PASSWORD}" singularity.sif oras://"$CI_REGISTRY_IMAGE":latest
artifacts:
paths:
- singularity.sif
From continuumio/miniconda3
# update conda and the OS
RUN conda update conda && \
conda upgrade --all -y && \
apt-get update && \
DEBIAN_FRONTEND=noninteractive apt-get -y upgrade && \
DEBIAN_FRONTEND=noninteractive apt-get -y autoremove && \
DEBIAN_FRONTEND=noninteractive apt-get -y clean autoclean
RUN conda install ipykernel jupyterlab
# download the yml file
#RUN curl https://gitlab.pasteur.fr/tru/conda-container-howto/-/raw/main/pythonnet.yml > pythonnet.yml
#RUN conda env create --file pythonnet.yml
BootStrap: docker
From: continuumio/miniconda3
%post
# update conda and the OS
conda update conda && \
conda upgrade --all -y && \
apt-get update && \
DEBIAN_FRONTEND=noninteractive apt-get -y upgrade && \
DEBIAN_FRONTEND=noninteractive apt-get -y autoremove && \
DEBIAN_FRONTEND=noninteractive apt-get -y clean autoclean
conda install ipykernel jupyterlab
# download the yml file
# curl https://gitlab.pasteur.fr/tru/conda-container-howto/-/raw/main/pythonnet.yml > pythonnet.yml
# conda env create --file pythonnet.yml
image: registry-gitlab.pasteur.fr/dsi-tools/docker-images/docker:latest
services:
- registry-gitlab.pasteur.fr/dsi-tools/docker-images/docker:dind
stages:
- build
build:
stage: build
script:
- docker login -u gitlab-ci-token -p "$CI_BUILD_TOKEN" registry-gitlab.pasteur.fr
- export MY_TIME=`date +"%F-%H%M"`
- docker build --pull -t "$CI_REGISTRY_IMAGE:$CI_BUILD_REF_NAME" -t "$CI_REGISTRY_IMAGE:$CI_COMMIT_SHORT_SHA" -t "$CI_REGISTRY_IMAGE:latest" -t "$CI_REGISTRY_IMAGE:$MY_TIME" . -f Dockerfile
- docker push "$CI_REGISTRY_IMAGE"
sing.yml 0 → 100644
singularity:
stage: build
image:
name: quay.io/singularity/singularity:v3.11.0
entrypoint: [""]
script:
- type singularity && singularity version
- singularity build singularity.sif Singularity
- singularity push --docker-username "${CI_REGISTRY_USER}" --docker-password "${CI_REGISTRY_PASSWORD}" singularity.sif oras://"$CI_REGISTRY_IMAGE":latest
- ls -lh singularity.sif
artifacts:
paths:
- singularity.sif
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment