romi / plant-imager

ROMI library controlling the PlantImager (hardware) or the VirtualPlantImager (Blender) to acquire images of (virtual) single potted plants.
https://romi.github.io/plant-imager/
GNU Lesser General Public License v3.0
1 stars 0 forks source link

pass a command to run.sh #19

Closed hanappe closed 3 years ago

hanappe commented 3 years ago

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.