Skip to content
Snippets Groups Projects
Commit 3e84c460 authored by edupin's avatar edupin
Browse files

update dockerfile

parent dfa663e7
No related branches found
No related tags found
No related merge requests found
...@@ -17,52 +17,50 @@ LABEL maintainer="teddy.kossoko@capgemini.com" ...@@ -17,52 +17,50 @@ LABEL maintainer="teddy.kossoko@capgemini.com"
LABEL version="1.0" LABEL version="1.0"
LABEL description="Docker file based on ubuntu for eclipse-che workspaces for Biomass project" LABEL description="Docker file based on ubuntu for eclipse-che workspaces for Biomass project"
RUN sudo chmod 777 /etc/apt/sources.list USER root
RUN sudo apt-get update #RUN chmod 777 /etc/apt/sources.list
RUN apt-get update
# Installation of pip, gdal, python3, matplotlib, doxyen # Installation of pip, gdal, python3, matplotlib, doxyen
# installation of scikit-learn, pandas, geopandas, fiona, shapely # installation of scikit-learn, pandas, geopandas, fiona, shapely
RUN sudo apt-get update && \ RUN apt-get update && \
sudo apt-get install -y software-properties-common python-software-properties && \ apt-get install -y software-properties-common python-software-properties python3-lxml python3-pip &&\
sudo apt-get install -y python3-lxml && \ pip3 install scipy==0.19.1 && \
sudo apt-get install -y python3-pip &&\ pip3 install matplotlib && \
sudo pip3 install scipy==0.19.1 && \ pip3 install property && \
sudo pip3 install matplotlib && \ pip install pillow && \
sudo pip3 install property && \ pip install -U scikit-learn && \
sudo pip install pillow && \ pip install pandas && \
sudo pip install -U scikit-learn && \ git clone https://github.com/geopandas/geopandas.git && \
sudo pip install pandas && \
sudo git clone https://github.com/geopandas/geopandas.git && \
cd geopandas && \ cd geopandas && \
sudo pip install . && \ pip install . && \
cd .. && \ cd .. && \
sudo rm -rf geopandas && \ rm -rf geopandas && \
sudo apt-get -y install libgdal1-dev && \ apt-get -y install libgdal1-dev && \
sudo pip install --user fiona && \ pip install --user fiona && \
sudo sudo apt-get install python-shapely apt-get install python-shapely
#INstallation of Octave #INstallation of Octave
RUN sudo apt-add-repository ppa:octave/stable && \ RUN apt-add-repository ppa:octave/stable && \
sudo apt-get update && \ apt-get update && \
sudo apt-get -y install octave && \ apt-get -y install octave && \
sudo apt-get -y install doxygen && \ apt-get -y install doxygen && \
sudo pip3 install --upgrade pip && \ pip3 install --upgrade pip && \
sudo add-apt-repository -y ppa:ubuntugis/ubuntugis-unstable && \ add-apt-repository -y ppa:ubuntugis/ubuntugis-unstable && \
sudo apt update && \ apt update && \
sudo apt -y upgrade && \ apt -y upgrade && \
sudo apt install -y gdal-bin libgdal-dev && \ apt install -y gdal-bin libgdal-dev && \
sudo pip install requests && \ pip install requests && \
sudo pip install conda pip install conda
# installation of GDL # installation of GDL
RUN sudo apt -y install gnudatalanguage RUN apt -y install gnudatalanguage
# install gdal and matplotlib with CONDA # install gdal and matplotlib with CONDA
#RUN conda install -y gdal matplotlib #RUN conda install -y gdal matplotlib
RUN sudo pip install --global-option=build_ext --global-option="-I/usr/include/gdal" GDAL==`gdal-config --version` RUN pip install --global-option=build_ext --global-option="-I/usr/include/gdal" GDAL==`gdal-config --version`
# We add the script folder and the zip file to be able to unzip the structure of the project # We add the script folder and the zip file to be able to unzip the structure of the project
COPY initTemplate.sh /usr/bmap/initTemplate.sh COPY initTemplate.sh /usr/bmap/initTemplate.sh
...@@ -78,7 +76,6 @@ COPY quicklook_raster.py /usr/bmap/quicklook_raster.py ...@@ -78,7 +76,6 @@ COPY quicklook_raster.py /usr/bmap/quicklook_raster.py
COPY ingestData.py /usr/bmap/ingestData.py COPY ingestData.py /usr/bmap/ingestData.py
COPY ingestData.sh /usr/bmap/ingestData.sh COPY ingestData.sh /usr/bmap/ingestData.sh
USER root
RUN chmod +x /usr/bmap/initTemplate.sh RUN chmod +x /usr/bmap/initTemplate.sh
RUN chmod +x /usr/bmap/shareAlgorithm.sh RUN chmod +x /usr/bmap/shareAlgorithm.sh
RUN chmod +x /usr/bmap/ingestData.sh RUN chmod +x /usr/bmap/ingestData.sh
...@@ -87,5 +84,6 @@ ENV PYTHONPATH="/usr/bmap/:${PYTHONPATH}" ...@@ -87,5 +84,6 @@ ENV PYTHONPATH="/usr/bmap/:${PYTHONPATH}"
#We add env variable to request the back end #We add env variable to request the back end
ENV BMAP_BACKEND_URL=http://backend-val.biomass-maap.com/bmap-web/ ENV BMAP_BACKEND_URL=http://backend-val.biomass-maap.com/bmap-web/
USER user
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