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

Added container_dev command

parent e5d7b57c
No related branches found
No related tags found
No related merge requests found
#!/usr/bin/env bash
## Boilerplate to make pipes work
piped_args=
if [ -p /dev/stdin ]; then
# If we want to read the input line by line
while IFS= read line; do
if [ -z "$piped_args" ]; then
piped_args="${line}"
else
piped_args="${piped_args}
${line}"
fi
done
fi
## Fire off the application wrapper
if [ ${piped_args} ] ; then
echo -e ${piped_args} | singularity exec /home/sjoosten/projects/eic_container/build/lib/eic.sif.2.0.4 eic-shell $@
else
singularity exec /home/sjoosten/projects/eic_container/build/lib/eic.sif.2.0.4 eic-shell $@
fi
#!/usr/bin/env bash
## Boilerplate to make pipes work
piped_args=
if [ -p /dev/stdin ]; then
# If we want to read the input line by line
while IFS= read line; do
if [ -z "$piped_args" ]; then
piped_args="${line}"
else
piped_args="${piped_args}
${line}"
fi
done
fi
## Fire off the application wrapper
if [ ${piped_args} ] ; then
echo -e ${piped_args} | singularity exec /home/sjoosten/projects/eic_container/build/lib/eic.sif.2.0.4 ipython $@
else
singularity exec /home/sjoosten/projects/eic_container/build/lib/eic.sif.2.0.4 ipython $@
fi
#!/usr/bin/env bash
## Boilerplate to make pipes work
piped_args=
if [ -p /dev/stdin ]; then
# If we want to read the input line by line
while IFS= read line; do
if [ -z "$piped_args" ]; then
piped_args="${line}"
else
piped_args="${piped_args}
${line}"
fi
done
fi
## Fire off the application wrapper
if [ ${piped_args} ] ; then
echo -e ${piped_args} | singularity exec /home/sjoosten/projects/eic_container/build/lib/eic.sif.2.0.4 root $@
else
singularity exec /home/sjoosten/projects/eic_container/build/lib/eic.sif.2.0.4 root $@
fi
......@@ -51,7 +51,10 @@ RUN rm -rf /usr/local && ln -s /opt/view /usr/local
## the environment but still provided for backward compatibility (and documentation).
COPY eic-shell /usr/local/bin/eic-shell
COPY eic-env.sh /etc/eic-env.sh
COPY eic-env.sh /etc/profile.d/z10_eic-env.sh
COPY eic-env.sh /etc/profile.d/z10_eic-env.s
## also make sure we have the older container_dev command available
COPY eic-shell /usr/local/bin/container_dev
## Setup fresh bashrc, useful for singularity
COPY bashrc /etc/bash.bashrc
......
......@@ -25,6 +25,7 @@ PROJECT_NAME='eic_container'
IMAGE_ROOT='eic'
PROGRAMS = ['eic-shell',
'container_dev',
'root',
'ipython']
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment