Dockerfile for ARCSI and RSGISLIB created

77 views
Skip to first unread message

Benjamin Mewes

unread,
Feb 2, 2017, 2:48:35 AM2/2/17
to RSGISLib Support
If you are interested in running ARCSI and RSGISLIB from a Docker container, I would share mine with you (as the one from EPMORRIS is outdated).

#Download Ubuntu
FROM ubuntu

#Set Mode to not interactive
ENV DEBIAN_FRONTEND noninteractive

#Install missing libraries
RUN apt
-get update --fix-missing && apt-get install -y wget bzip2 ca-certificates \
    libglib2
.0-0 libxext6 libsm6 libxrender1 \
    git mercurial subversion


#Download Miniconda
RUN wget https
://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh
RUN echo
'export PATH=/opt/conda/bin:$PATH' > /etc/profile.d/conda.sh

#Install Miniconda
RUN
/bin/bash Miniconda3-latest-Linux-x86_64.sh  -b -p /opt/conda && \
rm
Miniconda3-latest-Linux-x86_64.sh

ENV PATH
/opt/conda/bin:$PATH

#Install RSGIS
RUN conda install numpy
-y
RUN conda install
-c conda-forge -c rios scikit-learn rios h5py -y
RUN conda install
-c conda-forge -c rios rsgislib arcsi -y

#Install Nano
RUN apt
-get install nano -y



James Banting

unread,
Mar 8, 2017, 11:33:44 PM3/8/17
to RSGISLib Support
Hi Benjamin,

Thanks for the docker file, much appreciated.
I tried running it and was getting a conda conflict error between rsgislib and python 3.6 (as this is the default on miniconda installs)
Explicitly setting the python version version to 3.5 fixed the issue for me and I was able to successfully build the image.

So for anyone trying this out, don't forget to change this line:

#Install RSGIS
RUN conda install numpy 
-y

To this:

#Install RSGIS
RUN conda install python=3.5 numpy 
-y

Again, thanks Ben for creating and sharing this docker file.
Reply all
Reply to author
Forward
0 new messages