Skip to content
Snippets Groups Projects
Commit 5dfc8ff9 authored by Dominique Benielli's avatar Dominique Benielli
Browse files

add docker

parent abf4195a
Branches
Tags
No related merge requests found
# run the test suite
tests:
image: registry.gitlab.lis-lab.fr:5005/baptiste.bauvin/multiview-machine-learning-omis/ubuntu:18.04
tags:
- docker
script:
- pip install -e . --no-deps
- pytest-3
# generate the documentation
doc:
image: registry.gitlab.lis-lab.fr:5005/baptiste.bauvin/multiview-machine-learning-omis/ubuntu:18.04
tags:
- docker
only:
- master
script:
- export LC_ALL=$(locale -a | grep en_US)
- export LANG=$(locale -a | grep en_US)
- python3 setup.py build_sphinx
# TODO: Replace the task doc by the following task pages when making the
# project public
#
#pages:
# image: registry.gitlab.lis-lab.fr:5005/baptiste.bauvin/multiview-machine-learning-omis/ubuntu:18.04
# tags:
# - docker
# only:
# - master
# script:
# - export LC_ALL=$(locale -a | grep en_US)
# - export LANG=$(locale -a | grep en_US)
# - python3 setup.py build_sphinx
# - cp -r build/sphinx/html public
# artifacts:
# paths:
# - public
FROM ubuntu:18.04
MAINTAINER Dominique Benielli
WORKDIR /
ENV DEBIAN_FRONTEND noninteractive
RUN apt-get update && \
apt-get upgrade -y && \
apt-get install -y --no-install-recommends apt-utils \
cmake \
gcc \
g++ \
make \
python3-dev \
python3-setuptools \
python3-pytest \
python3-pytest-cov \
python3-nose \
python3-pip \
python3-sphinx \
python3-numpydoc \
python3-matplotlib \
python3-sphinx-gallery \
python3-pil \
libhdf5-dev \
git \
&& \
apt-get clean
RUN apt-get install -y --no-install-recommends locales && \
apt-get clean && \
locale-gen en_US.UTF-8 && \
update-locale en_US.UTF-8 && \
echo "export LC_ALL=$(locale -a | grep en_US)" >> /root/.bashrc && \
echo "export LANG=$(locale -a | grep en_US)" >> /root/.bashrc
COPY requirements.txt .
RUN pip3 install -r requirements.txt
cycler==0.10.0
h5py==2.9.0
joblib==0.13.2
kiwisolver==1.1.0
numpy==1.16.4
pyparsing==2.4.0
-e git+https://github.com/aldro61/pyscm.git#egg=pyscm
python-dateutil==2.8.0
scikit-learn==0.19.0
scipy==1.3.0
six==1.12.0
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment