Skip to content

Commit

Permalink
fix(esi-shell): run commands without TTY
Browse files Browse the repository at this point in the history
  • Loading branch information
plexoos committed May 31, 2024
1 parent 0cf2a43 commit 4c600c5
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion esi-shell
Original file line number Diff line number Diff line change
Expand Up @@ -270,6 +270,11 @@ done
# DOCKER_PLATFORM="--platform linux/amd64"
#fi
if [[ -z ${CONTAINER_COMMAND-} ]]
then
CONTAINER_OPTIONS+=" -i -t"
fi
USABLE_SINGULARITY="$(find_tool singularity)"
USABLE_DOCKER="$(find_tool docker)"
Expand All @@ -278,7 +283,7 @@ ohai "Using esi-shell image: ${IMG}"
if [[ -n "${USABLE_DOCKER-}" ]]
then
cmd="docker run --rm -it ${DOCKER_GPU-} ${DOCKER_PLATFORM-} ${DOCKER_BIND_VOLUME-} -e OPTICKS_OPTIX_PREFIX=${OPTIX_DIR} ${CONTAINER_OPTIONS} ${IMG} ${CONTAINER_COMMAND}"
cmd="docker run --rm ${DOCKER_GPU-} ${DOCKER_PLATFORM-} ${DOCKER_BIND_VOLUME-} -e OPTICKS_OPTIX_PREFIX=${OPTIX_DIR} ${CONTAINER_OPTIONS} ${IMG} ${CONTAINER_COMMAND}"
exec $cmd
else
abort "Docker client (>= $REQUIRED_DOCKER_VERSION) must be installed to proceed."
Expand Down

0 comments on commit 4c600c5

Please sign in to comment.