Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
docker-science-stack
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Nick Bearson
docker-science-stack
Commits
c45099e4
Commit
c45099e4
authored
8 years ago
by
Nick Bearson
Browse files
Options
Downloads
Patches
Plain Diff
making env vars just automatically available via docker ENV
parent
059f226b
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Dockerfile
+7
-8
7 additions, 8 deletions
Dockerfile
with
7 additions
and
8 deletions
Dockerfile
+
7
−
8
View file @
c45099e4
...
...
@@ -106,12 +106,11 @@ RUN mkdir -p ${BUILD} ${OPT}/netcdf4 && cd ${BUILD} && \
RUN
echo
'alias ls="ls --color=auto"'
>>
~/.bashrc
&&
\
echo
'alias ll="ls -lGh $@"'
>>
~/.bashrc
RUN
echo
"export HDF4=
${
OPT
}
/hdf4"
>>
~/.bashrc
&&
\
echo
"export HDF5=
${
OPT
}
/hdf5"
>>
~/.bashrc
&&
\
echo
"export NETCDF=
${
OPT
}
/netcdf4"
>>
~/.bashrc
&&
\
echo
"export LD_LIBRARY_PATH=
${
HDF4
}
/lib:
${
HDF5
}
/lib:
${
NETCDF
}
/lib:
${
LD_LIBRARY_PATH
}
"
>>
~/.bashrc
&&
\
echo
""
>>
~/.bashrc
RUN
echo
"export PATH=
${
HDF4
}
/bin/:
${
HDF5
}
/bin:
${
NETCDF
}
/bin:
${
PATH
}
"
>>
~/.bashrc
&&
\
echo
""
>>
~/.bashrc
# set these so future shells pick them up too
ENV
HDF4 ${OPT}/hdf4
ENV
HDF5 ${OPT}/hdf5
ENV
NETCDF ${OPT}/netcdf4
ENV
LD_LIBRARY_PATH ${HDF4}/lib:${HDF5}/lib:${NETCDF}/lib:${LD_LIBRARY_PATH}
ENV
PATH ${HDF4}/bin/:${HDF5}/bin:${NETCDF}/bin:${PATH}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment