diff --git a/containers/jug/Dockerfile.dev b/containers/jug/Dockerfile.dev index 5d31d581298f6d97cc42666e0030aa3c3a3008a4..c3fccbc81a22c5792f69a96dce4a8b216ceb8d32 100644 --- a/containers/jug/Dockerfile.dev +++ b/containers/jug/Dockerfile.dev @@ -221,7 +221,7 @@ COPY eic-shell /usr/local/bin/eic-shell ## make sure we have the entrypoints setup correctly ENTRYPOINT ["/usr/local/bin/eic-shell"] -#CMD [] +CMD ["bash", "--rcfile", "/etc/profile", "-l"] USER 0 WORKDIR / SHELL ["/usr/local/bin/eic-shell"] diff --git a/containers/jug/eic-shell b/containers/jug/eic-shell index 30761d5dbbe7c6bc7ed122cd65335487d6dd6781..b87bf8d9273dad4f06d1c2d32d90ddfbed4061fa 100755 --- a/containers/jug/eic-shell +++ b/containers/jug/eic-shell @@ -4,24 +4,26 @@ source /etc/profile ## Force environment to be clean source /etc/eic-env.sh -piped_args=() -if [ -p /dev/stdin ]; then - # If we want to read the input line by line - while IFS= read line; do - piped_args+=("${line}") - echo LINE: ${line} - done -fi +exec "$@" -## Fire off bash - -if [ "${#piped_args[@]}" != "0" ]; then - echo "${#piped_args[@]}" - printf "%s\n" "${piped_args[@]}" - printf "%s\n" "${piped_args[@]}" > debug.txt - printf "%s\n" "${piped_args[@]}" | bash -elif [ $# -gt 0 ]; then - exec bash -c "$@" -else - exec bash -fi +#piped_args=() +#if [ -p /dev/stdin ]; then +# # If we want to read the input line by line +# while IFS= read line; do +# piped_args+=("${line}") +# echo LINE: ${line} +# done +#fi +# +### Fire off bash +# +#if [ "${#piped_args[@]}" != "0" ]; then +# echo "${#piped_args[@]}" +# printf "%s\n" "${piped_args[@]}" +# printf "%s\n" "${piped_args[@]}" > debug.txt +# printf "%s\n" "${piped_args[@]}" | bash +#elif [ $# -gt 0 ]; then +# exec bash -c "$@" +#else +# exec bash +#fi