Skip to content
Snippets Groups Projects
Commit 73f0b023 authored by Sylvester Joosten's avatar Sylvester Joosten
Browse files

debug

parent d44a697c
No related branches found
No related tags found
1 merge request!74Fix environment setup for CI usage
This commit is part of merge request !74. Comments created here will be created in the context of that merge request.
......@@ -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"]
......@@ -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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment