-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CLI-ception: Some commands do not work in managed runtime shells #336
Comments
Thanks for writing this up! I don't think we should remove the CLI because some subcommands don't make sense or don't work, so we shouldn't pursue option 1. Option 3 sounds best to me, just set an environment variable when we use Going through blame of |
+1 for writing this up. These restrictions were all known to me— I'd also favor option 3, with the exception that I don't think we need to make I don't think we need to prioritize this right away, FWIW. |
otoh… https://discussion.nextstrain.org/t/unable-to-view-zika-tutorial/1533/8 |
Maybe the easiest thing to do is to is detect presence within a shell and disable
|
Nextstrain CLI is currently provided in our managed runtimes, but this "CLI-ception" comes with some odd behavior.
It's only noticeable in a few commands related to runtime management (
setup
,update
) and implementation details (view
). I haven't tested, but most other commands such asbuild
,deploy
,remote
should work just fine.In
nextstrain shell --docker
:nextstrain view
output indicates that it works and Auspice is being served athttp://127.0.0.1:4000
, however that URL cannot be accessed on the host computer.nextstrain update conda
returns output unintended for the eyes of our users:nextstrain update docker
fails:In
nextstrain shell --conda
:nextstrain view
works.nextstrain update conda
works.nextstrain update docker
fails:Potential solutions
nextstrain shell
for interactive usage ofaugur
,auspice
, etc. but also prevents things like runningnextstrain deploy
from within a build.shell
and disable Nextstrain CLI entirely. Keep it accessible when using the runtime throughbuild
.view
within a Docker shell, expose the Auspice server to the host machine.The text was updated successfully, but these errors were encountered: