Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Cresson Remi
otbtf
Commits
586a50d5
Commit
586a50d5
authored
May 26, 2020
by
Cresson Remi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ENH: lighter docker image, add user in docker image
parent
2707a129
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
2 deletions
+14
-2
tools/dockerfiles/r2.0/bionic.tf-r2.1.otb-7.1-GPU/Dockerfile
tools/dockerfiles/r2.0/bionic.tf-r2.1.otb-7.1-GPU/Dockerfile
+14
-2
No files found.
tools/dockerfiles/r2.0/bionic.tf-r2.1.otb-7.1-GPU/Dockerfile
View file @
586a50d5
...
...
@@ -217,7 +217,7 @@ RUN mkdir -p /work/otb/build \
# Build OTB: Stage 3 (bindings)
# ----------------------------------------------------------------------------
RUN
cd
/work/otb/otb/Modules/Remote
\
&&
git clone https://github.com/remicres/otbtf.git
\
&&
git clone
-b
v2beta
https://github.com/remicres/otbtf.git
\
&&
cd
/work/otb/build/OTB/build
\
&&
cmake /work/otb/otb
\
-DOTB_WRAP_PYTHON
=
ON
\
...
...
@@ -235,10 +235,22 @@ RUN cd /work/otb/otb/Modules/Remote \
# Add important environment variables
# ----------------------------------------------------------------------------
ENV
PATH="$PATH:/work/otb/superbuild_install/bin/"
ENV
PYTHONPATH="/work/otb/superbuild_install/lib/otb/python:/work/otb/otb/Modules/Remote/otbtf/python$PYTHONPATH"
ENV
PYTHONPATH="/work/otb/superbuild_install/lib/otb/python:/work/otb/otb/Modules/Remote/otbtf/python
:
$PYTHONPATH"
ENV
OTB_APPLICATION_PATH="/work/otb/superbuild_install/lib/otb/applications"
ENV
LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/work/otb/superbuild_install/lib/:/work/tf/installdir/lib/"
# ----------------------------------------------------------------------------
# Add one user
# ----------------------------------------------------------------------------
RUN
useradd
-s
/bin/bash
-m
otbuser
USER
otbuser
WORKDIR
/home/otbuser
# ----------------------------------------------------------------------------
# Clean
# ----------------------------------------------------------------------------
RUN
rm
-rf
/tmp/
*
/root/.cache
&&
apt-get clean
# ----------------------------------------------------------------------------
# Exemple :
# docker build --tag otbtf_image
...
...
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