Skip to content
Snippets Groups Projects
Commit c45099e4 authored by Nick Bearson's avatar Nick Bearson
Browse files

making env vars just automatically available via docker ENV

parent 059f226b
Branches
No related tags found
No related merge requests found
...@@ -106,12 +106,11 @@ RUN mkdir -p ${BUILD} ${OPT}/netcdf4 && cd ${BUILD} && \ ...@@ -106,12 +106,11 @@ RUN mkdir -p ${BUILD} ${OPT}/netcdf4 && cd ${BUILD} && \
RUN echo 'alias ls="ls --color=auto"' >> ~/.bashrc && \ RUN echo 'alias ls="ls --color=auto"' >> ~/.bashrc && \
echo 'alias ll="ls -lGh $@"' >> ~/.bashrc echo 'alias ll="ls -lGh $@"' >> ~/.bashrc
RUN echo "export HDF4=${OPT}/hdf4" >> ~/.bashrc && \ # set these so future shells pick them up too
echo "export HDF5=${OPT}/hdf5" >> ~/.bashrc && \ ENV HDF4 ${OPT}/hdf4
echo "export NETCDF=${OPT}/netcdf4" >> ~/.bashrc && \ ENV HDF5 ${OPT}/hdf5
echo "export LD_LIBRARY_PATH=${HDF4}/lib:${HDF5}/lib:${NETCDF}/lib:${LD_LIBRARY_PATH}" >> ~/.bashrc && \ ENV NETCDF ${OPT}/netcdf4
echo "" >> ~/.bashrc ENV LD_LIBRARY_PATH ${HDF4}/lib:${HDF5}/lib:${NETCDF}/lib:${LD_LIBRARY_PATH}
RUN echo "export PATH=${HDF4}/bin/:${HDF5}/bin:${NETCDF}/bin:${PATH}" >> ~/.bashrc && \ ENV PATH ${HDF4}/bin/:${HDF5}/bin:${NETCDF}/bin:${PATH}
echo "" >> ~/.bashrc
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment