Commit c45099e4 authored by Nick Bearson's avatar Nick Bearson
Browse files

making env vars just automatically available via docker ENV

parent 059f226b
......@@ -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}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment