Skip to content

Commit

Permalink
fix: use default HOME and PWD
Browse files Browse the repository at this point in the history
  • Loading branch information
plexoos committed May 29, 2024
1 parent b54da0c commit 57a4ae3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ RUN spack module tcl loads geant4 xerces-c clhep boost cmake nlohmann-json >> /e
RUN rm -fr /opt/spack/share/spack/modules/$(spack arch)

ENV ESI_DIR=/esi
ENV HOME=$ESI_DIR
ENV OPTIX_DIR=/usr/local/optix
ENV OPTICKS_HOME=${ESI_DIR}/opticks
ENV OPTICKS_PREFIX=/usr/local/opticks
Expand All @@ -80,5 +81,5 @@ COPY <<-"EOF" /etc/profile.d/z20_opticks.sh
EOF

RUN mkdir -p $OPTIX_DIR && ./NVIDIA-OptiX-SDK-7.6.0-linux64-x86_64.sh --skip-license --prefix=$OPTIX_DIR
RUN HOME=$ESI_DIR opticks-full
RUN opticks-full
RUN rm -fr $OPTIX_DIR/* $ESI_DIR/NVIDIA-OptiX-SDK-7.6.0-linux64-x86_64.sh
2 changes: 1 addition & 1 deletion esi-shell
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ ohai "Using esi-shell image: ${IMG}"
if [[ -n "${USABLE_DOCKER-}" ]]
then
cmd="docker run --rm -dit --pull=always ${DOCKER_GPU-} ${DOCKER_PLATFORM-} ${DOCKER_BIND_VOLUME-} -e OPTICKS_OPTIX_PREFIX=$OPTIX_DIR -e HOME=$WORKDIR -w=$WORKDIR $IMG"
cmd="docker run --rm -dit ${DOCKER_GPU-} ${DOCKER_PLATFORM-} ${DOCKER_BIND_VOLUME-} -e OPTICKS_OPTIX_PREFIX=$OPTIX_DIR $IMG"
CONTAINER_ID=$(exec $cmd)
if [ $? -ne 0 ]
Expand Down

0 comments on commit 57a4ae3

Please sign in to comment.