Commit 823cf0bc authored by Daniel Scheffler's avatar Daniel Scheffler
Browse files

Beautified docker installer workflow.

parent 4d41b0ab
Pipeline #1548 passed with stages
in 1 minute and 3 seconds
......@@ -18,8 +18,8 @@ test_py_tools_ds:
stage: test
script:
- source /root/miniconda3/bin/activate
- source activate 20171117_pyenv
- export GDAL_DATA=/root/miniconda3/envs/20171117_pyenv/share/gdal
- source activate py3
- export GDAL_DATA=/root/miniconda3/envs/py3/share/gdal
- export PYTHONPATH=$PYTHONPATH:/root # /root <- directory needed later
- make nosetests
- make docs
......@@ -36,8 +36,8 @@ test_styles:
stage: test
script:
- source /root/miniconda3/bin/activate
- source activate 20171117_pyenv
- export GDAL_DATA=/root/miniconda3/envs/20171117_pyenv/share/gdal
- source activate py3
- export GDAL_DATA=/root/miniconda3/envs/py3/share/gdal
- export PYTHONPATH=$PYTHONPATH:/root # /root <- directory needed later
- make lint
artifacts:
......@@ -52,8 +52,8 @@ test_py_tools_ds_install:
stage: test
script:
- source /root/miniconda3/bin/activate
- source activate 20171117_pyenv
- export GDAL_DATA=/root/miniconda3/envs/20171117_pyenv/share/gdal
- source activate py3
- export GDAL_DATA=/root/miniconda3/envs/py3/share/gdal
- conda create -y -q --name py_tools_ds python=3
- source activate py_tools_ds
# resolve some requirements with conda
......
......@@ -104,5 +104,5 @@ install: clean ## install the package to the active Python's site-packages
gitlab_CI_docker: ## Build a docker image for CI use within gitlab
cd ./tests/CI_docker/; bash ./build_testsuite_image.sh
basic_pyenv_docker: ## Build a docker image containing Anaconda environment with all basic dependencies installed
cd ./tests/CI_docker/; bash ./build_basic_pyenv.sh
conda_pyenv_docker: ## Build a docker image containing Anaconda environment with all basic dependencies installed
cd ./tests/CI_docker/; bash ./build_conda_pyenv.sh
......@@ -2,7 +2,7 @@
context_dir="./context"
dockerfile="conda_pyenv.docker"
tag="conda_pyenv:0.1"
tag="conda_pyenv:pinned_v0.1"
echo "#### Build basic pyenv docker image"
sudo docker rmi ${tag}
......
FROM centos:7
RUN yum update -y && \
yum install -y wget vim bzip2 gcc gcc-c++ make libgl1-mesa-glx mesa-libGL qt5-qtbase-gui git nano tree
yum install -y wget vim bzip2 gcc gcc-c++ make libgl1-mesa-glx mesa-libGL qt5-qtbase-gui git nano tree gdb
ENV miniconda_dl 'Miniconda3-latest-Linux-x86_64.sh'
ENV envconfig 'environment_20171117.yml'
ENV envname '20171117_pyenv'
ENV envconfig 'environment_pinned_v0.1.yml'
ENV envname 'py3'
ENV git_lfs_v='2.1.1'
RUN /bin/bash -i -c "cd /root; wget https://repo.continuum.io/miniconda/$miniconda_dl ; \
......
name: py_tools_ds
channels: &id1
- http://conda.anaconda.org/ioam # only for holoviews
- http://conda.anaconda.org/conda-forge
dependencies:
- python=3.*.*
- pyqt
- numpy
- gdal
- scikit-image
- rasterio
- pyproj
- lxml
- geopandas
- ipython
- pip:
- dicttoxml
- jsmin
- cerberus
- pyprind
- pint
- iso8601
- tqdm
- mpld3
- sphinx-argparse
- six
- spectral
- flake8
- pycodestyle
- pylint
- pydocstyle
- nose
- nose2
- nose-htmloutput
- coverage
- rednose
......@@ -5,7 +5,7 @@ channels: &id1
- http://conda.anaconda.org/conda-forge
dependencies:
- python=3.6.*
- python=3.*.*
- pyqt=5.6.0
- numpy=1.13.3
- gdal=2.1.4
......
FROM conda_pyenv:0.1
FROM conda_pyenv:pinned_v0.1
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