Commit 49dcf51d authored by Daniel Scheffler's avatar Daniel Scheffler
Browse files

Moved docker setups for basic gms dependencies to external project.

parent cbd55567
Pipeline #1559 failed with stages
in 42 seconds
#!/usr/bin/env bash
context_dir="./context"
dockerfile="conda_pyenv.docker"
tag="conda_pyenv:pinned_v0.1"
echo "#### Build basic pyenv docker image"
sudo docker rmi ${tag}
sudo docker build -f ${context_dir}/${dockerfile} -m 20G -t ${tag} ${context_dir}
FROM centos:7
# matplotlib requires freetype, freetype-devel, libpng-devel under centos
# scikit-image requires blas-devel, lapack-devel, atlas-devel under centos
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 gdb
ENV miniconda_dl 'Miniconda3-latest-Linux-x86_64.sh'
ENV envconfig 'environment_pinned_v0.1.yml'
ENV git_lfs_v='2.1.1'
RUN /bin/bash -i -c "cd /root; wget https://repo.continuum.io/miniconda/$miniconda_dl ; \
bash -i /root/$miniconda_dl -b ; \
rm -f /root/$miniconda_dl"
# copy some needed stuff to /root
COPY *.yml /root/
# create an environment with all packages specified in $envconfig
RUN /bin/bash -i -c "source /root/miniconda3/bin/activate ; \
conda env update -f /root/$envconfig"
# install git lfs
RUN /bin/bash -i -c "curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.rpm.sh | bash"
# installing git large file support, see here: https://git-lfs.github.com/ , change version number below for future upgrades
RUN /bin/bash -i -c "wget https://github.com/git-lfs/git-lfs/releases/download/v${git_lfs_v}/git-lfs-linux-amd64-${git_lfs_v}.tar.gz; \
tar -zxvf git-lfs-linux-amd64-${git_lfs_v}.tar.gz; \
cd git-lfs-${git_lfs_v}; \
bash ./install.sh"
name: py_tools_ds
channels: &id1
- http://conda.anaconda.org/ioam # only for holoviews
- http://conda.anaconda.org/conda-forge
dependencies:
- python=3.*.*
- pyqt=5.6.0
- numpy=1.13.3
- gdal=2.1.4
- scikit-image=0.13.0
- rasterio=0.36.0
- pyproj=1.9.5.1
- icu=58.*
- lxml=4.1.0
- geopandas=0.3.0
- ipython
- pip:
- dicttoxml
- jsmin
- cerberus
- pyprind
- pint
- iso8601
- tqdm
- mpld3
- sphinx-argparse
- six
- spectral
- flake8
- pycodestyle
- pylint
- pydocstyle
- nose
- nose2
- nose-htmloutput
- coverage
- rednose
FROM conda_pyenv:pinned_v0.1
FROM gms_base_centos:pinned_v0.1
# copy some needed stuff to /root
COPY *.yml /root/
RUN /bin/bash -i -c "\
source /root/miniconda3/bin/activate ; \
conda env update -n root -f /root/environment_py_tools_ds.yml"
Supports Markdown
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