Skip to content
Snippets Groups Projects
Commit cb04275d authored by Jan David Mol's avatar Jan David Mol
Browse files

L2SS-394: Remove path recasting magic by just copying the config into the...

L2SS-394: Remove path recasting magic by just copying the config into the container and using it from there
parent fa4b6c47
No related branches found
No related tags found
No related merge requests found
function help() #!/bin/bash
{
echo -e "\nERROR: ${1}\nYou must provide a file that can be accessed from within the Docker container. This is possible for files that\n\t- Have a path in \${HOME} or\n\t- Have a full file path that begins with one of \"/hosthome/\", \"/opt/lofar2.0/tango/\" or \"/opt/lofar2.0/\".\n\nWhy is that? Because the file will be loaded from within the Docker container and only some of the host's file system directories are mounted in the container."
exit -2
}
if [ ${#} -eq 1 ]; then if [ ${#} -eq 1 ]; then
file=${1} file=${1}
else else
help "A file name must be provided." echo "A file name must be provided."
exit 1
fi fi
# copy file into container to read it from container, as the file's location # copy file into container to read it from container, as the file's location
......
function help() #!/bin/bash
{
echo -e "\nERROR: ${1}\nYou must provide a file that can be accessed from within the Docker container. This is possible for files that\n\t- Have a path in \${HOME} or\n\t- Have a full file path that begins with one of \"/hosthome/\", \"/opt/lofar2.0/tango/\" or \"/opt/lofar2.0/\".\n\nWhy is that? Because the file will be loaded from within the Docker container and only some of the host's file system directories are mounted in the container."
exit -2
}
if [ ${#} -eq 1 ]; then if [ ${#} -eq 1 ]; then
file=${1} file=${1}
else else
help "A file name must be provided." echo "A file name must be provided."
exit 1
fi fi
# copy file into container to read it from container, as the file's location # copy file into container to read it from container, as the file's location
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment