Commit 2bf92fc1 authored by Manuel Guth's avatar Manuel Guth

adding Docker image in CI

parent 909bd07a
......@@ -4,3 +4,17 @@ doxec:
- pip install doxec numpy
- doxec *.md
build_image:
variables:
DOCKER_FILE: Dockerfile
TAG: latest
IMAGE_NAME: base-python
CI_REGISTRY: gitlab-registry.cern.ch
TO: '${CI_REGISTRY}/${CI_PROJECT_NAMESPACE}/${CI_PROJECT_NAME}/${IMAGE_NAME}:${TAG}'
script:
# The script gets overwritten in jobs tagged docker-image-build
- ignore
except:
- tags
tags:
- docker-image-build
FROM python:slim
# install basic utilities
RUN \
apt-get -qq -y update && \
apt-get -qq -y upgrade && \
apt-get install -y jq git tree hdf5-tools bash-completion && \
apt-get clean && \
rm -rf /var/lib/apt-get/lists/* && \
true
# python installs
COPY requirements.txt .
RUN \
pip3 install --upgrade pip && \
pip3 install -r requirements.txt
CMD /bin/bash
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment