run.sh now accepts a command line as argument. This command will be executed by the docker image. Use -c "shell command" when calling run.sh.
the Dockerfile has been updated to export the environment variables (PATH, LD_LIBRARY_PATH) and initialize the conda environment when a command is executed.
The run.sh script requests docker to start bash as the startup application. The script passes the command line to execute as an argument. However, in this case, bash creates a non-interactive shell and skips to loading of ~/.bashrc. I've added the -l flag to the bash arguments ("docker run ... bash -l ...) to requests the creation of a login shell. In that case, bash will load the ~/.profile file that also contains the environment variable and conda activate line.
This may not be the ideal way of handling, yet, but it should be break any existing script or work methods.
close #25
The run.sh script requests docker to start bash as the startup application. The script passes the command line to execute as an argument. However, in this case, bash creates a non-interactive shell and skips to loading of ~/.bashrc. I've added the -l flag to the bash arguments ("docker run ... bash -l ...) to requests the creation of a login shell. In that case, bash will load the ~/.profile file that also contains the environment variable and conda activate line.
This may not be the ideal way of handling, yet, but it should be break any existing script or work methods.