wurmlab / oswitch

Provides access to complex Bioinformatics software (even BioLinux!) in just one command.
76 stars 9 forks source link

Switching from inside a container #10

Open bmpvieira opened 9 years ago

bmpvieira commented 9 years ago

When I do bundle exec bin/switch biolinux I get inside a biolinux container but I have to exit that container to use switch again. It seems I cannot just do switch baseimage immediately after doing switch biolinux. I understand that implementing switch inside a container 1 to launch container 2 in the host OS and switch to container 2 while still inside container 1 might be challenging, but right now this isn't really a "switch" but more a "run-container-mount-everything", which is still very useful.

yeban commented 9 years ago

Hard already in the current approach. Clueless how "switch within switch" can be done after #12.

I'm considering the name 'con' (which could mean container, or just 'con' :P).

yannickwurm commented 9 years ago

Hmmm... how about 1. detect if currently in container. 2. if so run small (independent script?) that does exit and reruns switch?