Open msquee opened 3 years ago
I put some work into this in this branch https://github.com/OSC/ondemand/tree/feature/no-vnc-yarn
There are some glaring issues:
md-4
. Because I enabled this into batch_connet/sessions#show
it uses that layout. Changing the layout_container_class
would affect other batch connect views (like #index
and #new
).
This PR is for discussion about creating new controller for VNC sessions.
VncController
will be a replacement for the current method of accessing VNC sessions in Open OnDemand.Current problems with the VNC viewer implementation:
@novnc/novnc
. Client side noVNC updates are a manual process right now that involves pulling the release from https://github.com/novnc/noVNC/releases./vnc/$JOB_ID
and we can use$JOB_ID
to validate the request before the VNC viewer is displayed.RFB.js
will create the connection client side.Features to keep:
New Features:
Resources:
RFB.js
(noVNC API) https://novnc.com/noVNC/docs/API.htmlThe
novnc_link
function is responsible for building the link to redirect the user to the noVNC session: https://sourcegraph.com/github.com/OSC/ondemand/-/blob/apps/dashboard/app/helpers/batch_connect/sessions_helper.rb?L179┆Issue is synchronized with this Asana task by Unito