Skip to content

Commit 9700824

Browse files
committed
FIX: move old LD_LIBRARY specs at the end of container creation
1 parent 177ee9f commit 9700824

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Generated by Neurodocker version 0.4.1-22-g7c44e01
2-
# Timestamp: 2018-10-10 17:39:05 UTC
2+
# Timestamp: 2018-10-10 18:29:21 UTC
33
#
44
# Thank you for using Neurodocker. If you discover any issues
55
# or ways to improve this software, please submit an issue or
@@ -166,7 +166,7 @@ RUN chown -R neuro /home/neuro/nipype_tutorial
166166

167167
RUN rm -rf /opt/conda/pkgs/*
168168

169-
ENV LD_LIBRARY_PATH="/lib/x86_64-linux-gnu:$LD_LIBRARY_PATH"
169+
ENV LD_LIBRARY_PATH="/opt/miniconda-latest/envs/neuro/lib:$LD_LIBRARY_PATH"
170170

171171
USER neuro
172172

@@ -305,7 +305,7 @@ RUN echo '{ \
305305
\n [ \
306306
\n "env", \
307307
\n { \
308-
\n "LD_LIBRARY_PATH": "/lib/x86_64-linux-gnu:$LD_LIBRARY_PATH" \
308+
\n "LD_LIBRARY_PATH": "/opt/miniconda-latest/envs/neuro/lib:$LD_LIBRARY_PATH" \
309309
\n } \
310310
\n ], \
311311
\n [ \

Singularity

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Generated by Neurodocker version 0.4.1-22-g7c44e01
2-
# Timestamp: 2018-10-10 17:39:06 UTC
2+
# Timestamp: 2018-10-10 18:29:22 UTC
33
#
44
# Thank you for using Neurodocker. If you discover any issues
55
# or ways to improve this software, please submit an issue or
@@ -297,7 +297,7 @@ echo '{
297297
\n [
298298
\n "env",
299299
\n {
300-
\n "LD_LIBRARY_PATH": "/lib/x86_64-linux-gnu:$LD_LIBRARY_PATH"
300+
\n "LD_LIBRARY_PATH": "/opt/miniconda-latest/envs/neuro/lib:$LD_LIBRARY_PATH"
301301
\n }
302302
\n ],
303303
\n [
@@ -324,7 +324,7 @@ export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/usr/lib/x86_64-linux-gnu:/opt/matlabmc
324324
export MATLABCMD="/opt/matlabmcr-2010a/v713/toolbox/matlab"
325325
export CONDA_DIR="/opt/miniconda-latest"
326326
export PATH="/opt/miniconda-latest/bin:$PATH"
327-
export LD_LIBRARY_PATH="/lib/x86_64-linux-gnu:$LD_LIBRARY_PATH"
327+
export LD_LIBRARY_PATH="/opt/miniconda-latest/envs/neuro/lib:$LD_LIBRARY_PATH"
328328

329329
%files
330330
. /home/neuro/nipype_tutorial

generate.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ generate_docker() {
3333
--user=root \
3434
--run 'chown -R neuro /home/neuro/nipype_tutorial' \
3535
--run 'rm -rf /opt/conda/pkgs/*' \
36-
--env LD_LIBRARY_PATH='/lib/x86_64-linux-gnu:$LD_LIBRARY_PATH' \
36+
--env LD_LIBRARY_PATH='/opt/miniconda-latest/envs/neuro/lib:$LD_LIBRARY_PATH' \
3737
--user=neuro \
3838
--run 'mkdir -p ~/.jupyter && echo c.NotebookApp.ip = \"0.0.0.0\" > ~/.jupyter/jupyter_notebook_config.py' \
3939
--workdir /home/neuro/nipype_tutorial \
@@ -71,7 +71,7 @@ generate_singularity() {
7171
--user=root \
7272
--run 'chown -R neuro /home/neuro/nipype_tutorial' \
7373
--run 'rm -rf /opt/conda/pkgs/*' \
74-
--env LD_LIBRARY_PATH='/lib/x86_64-linux-gnu:$LD_LIBRARY_PATH' \
74+
--env LD_LIBRARY_PATH='/opt/miniconda-latest/envs/neuro/lib:$LD_LIBRARY_PATH' \
7575
--user=neuro \
7676
--run 'mkdir -p ~/.jupyter && echo c.NotebookApp.ip = \"0.0.0.0\" > ~/.jupyter/jupyter_notebook_config.py' \
7777
--workdir /home/neuro/nipype_tutorial

0 commit comments

Comments
 (0)