-
Notifications
You must be signed in to change notification settings - Fork 682
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
InSpec html demo #851
Comments
from @stevendanna |
the website at habitat.sh/try is using josh.js (http://sdether.github.io/josh.js/) --- match commands that are input by the user to the commands you expect, if they don't match, show them a help file, if they do match, display the canned output (https://github.com/habitat-sh/habitat/tree/master/www/source/try, https://github.com/habitat-sh/habitat/tree/master/www/source/javascripts, https://github.com/habitat-sh/habitat/tree/master/www/source/try/responses) |
the presentation used for habitat is a tty.js -- https://github.com/habitat-sh/habitat-launch |
@stevendanna proposed: One possibility there is a small app (maybe in go?) that spawns a container and then forwards a websocket connection to the container back to the browser. Not attached to the idea, just thought of it on a walk today. This: https://contained.af/ uses that method |
Another alternative would be to use emscripten to compile ruby to javascript. As far as I can see, ruby 1.9.3+ cannot easily compiled to javascript, because it heavily relies on threads. See: https://github.com/replit/emscripted-ruby Update: Looks like thread support is in Emscripten now: https://groups.google.com/forum/#!topic/emscripten-discuss/gQQRjajQ6iY But I expect a lot of road bumps :-( |
We want this for the new inspec home (website) and awesomeness during presentations.
Huge props to Adam Jacob and the full Habitat team for their awesome demos!!
Let's collect ideas and implementation direction here.
Decisions
=> pre-record the behavior
=> Lives in the inspec repo under
www/demo
. Users must be able to run this locally in their browser (ideally: via opening anindex.html
)Tasks
MVP
Release
Extras
bump_version
to generate updated online demo contentsinspec exec not_here
should result in a message aboutnot_here
not being here)The text was updated successfully, but these errors were encountered: