Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Gaetano Raffaele
moringa
Commits
78ec0850
Commit
78ec0850
authored
Jul 16, 2020
by
De Boissieu Florian
Browse files
Dockerfile moringa
parent
593696a3
Pipeline
#14418
failed with stage
in 9 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
docker/moringa/Dockerfile
0 → 100644
View file @
78ec0850
FROM
gitlab-registry.irstea.fr/raffaele.gaetano/moringa:base-otb-7.0
LABEL
description="A container for the MORINGA processing chain, CIRAD/UMR TETIS"
# Compile obiatools library
RUN
git clone https://gitlab.irstea.fr/raffaele.gaetano/obiatools.git
&&
cd
obiatools/Release
\
&&
sed
-i
's/$HOME\/moringa/\/usr\/local\/lib\/python3.6\/dist-packages/g'
configure.sh
\
&&
sed
-i
's/LIB=python3.6/LIB=python3.6m/g'
configure.sh
\
&&
mkdir
/usr/local/lib/python3.6/dist-packages/sitsproc_c_modules
\
&&
touch
/usr/local/lib/python3.6/dist-packages/sitsproc_c_modules/__init__.py
\
&&
bash
-c
"source configure.sh && make"
&&
cd
../..
&&
rm
-rf
obiatools
# Other python deps: rios, fmask
RUN
pip3
install
rios.core
\
&&
wget
-q
https://github.com/ubarsc/python-fmask/releases/download/pythonfmask-0.5.4/python-fmask-0.5.4.tar.gz
\
&&
tar
-xzf
python-fmask-0.5.4.tar.gz
&&
cd
python-fmask-0.5.4
\
&&
python3 setup.py
install
&&
cd
..
&&
rm
-rf
python-fmask-
*
ENV
RIOS_DFLT_DRIVER="GTiff"
# Default user and directory when running a container, is active now
RUN
useradd
-s
/bin/bash
-m
moringa
USER
moringa
WORKDIR
/home/moringa
# Clone peps and theia utils
RUN
git clone
-b
python3 https://github.com/olivierhagolle/theia_download.git
\
&&
git clone https://github.com/olivierhagolle/peps_download.git
# Install Sen2Cor
RUN
wget
-q
http://step.esa.int/thirdparties/sen2cor/2.8.0/Sen2Cor-02.08.00-Linux64.run
\
&&
bash Sen2Cor-02.08.00-Linux64.run
&&
rm
Sen2Cor-02.08.00-Linux64.run
-f
# Copy all required files from repo
COPY
--chown=moringa aux_data /home/moringa/aux_data
COPY
--chown=moringa *.py *.cfg /home/moringa/
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment