Skip to content
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

VS Code web session container #436

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

Conversation

sefffal
Copy link
Contributor

@sefffal sefffal commented Jan 31, 2023

This session container should allow the user to launch the VS Code editor in their browser.
As it stands, they can install extensions, browse files in /arc, etc. Multiple folders can be opened simultaneously by opening the URL in multiple tabs/windows.

I imagine it could be useful to use a full editor in one tab while running e.g. notebooks in another.

This version does not come with anaconda, pluto, or any other data science software installed. I suppose that could be layered on top of this in a second image.

To make sure that it works for new users with no existing vs code config in their home folder, someone else should try building and launching this before merging.

CC: @sfabbro

@brianmajor
Copy link
Member

@sefffal & @sfabbro - I have built this and published it to CANFAR. It seems to be working as far as I can tell. You can find it under the 'contributed' type and give it a try yourself. Thanks William!

Could you please provide a README.md, VERSION, and apply-version.sh file? They can be copied from ../skaha-pluto/ The version I used in CANFAR was 0.1

to ensure name resolution, useful when opening a terminal on the code-server
Copy link
Collaborator

@sfabbro sfabbro left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There are a couple issues when checking the session logs when firing a VScode session.
This is what I got:

Starting VS code session
HOME: /arc/home/sfabbro
whoami: cannot find name for user ID 20015
USER: 
fixuid: fixuid is not running as root, ensure that the following criteria are met:
        - fixuid binary is owned by root: 'chown root:root /path/to/fixuid'
        - fixuid binary has the setuid bit: 'chmod u+s /path/to/fixuid'
        - NoNewPrivileges is disabled in container security profile
        - volume containing fixuid binary does not have the 'nosuid' mount option
[2023-02-21T19:16:28.440Z] info  code-server 4.9.1 f7989a4dfcf21085e52157a01924d79d708bcc05
[2023-02-21T19:16:28.441Z] info  Using user-data-dir ~/.local/share/code-server
[2023-02-21T19:16:28.452Z] info  Using config file ~/.config/code-server/config.yaml
[2023-02-21T19:16:28.452Z] info  HTTP server listening on http://0.0.0.0:5000/ 
[2023-02-21T19:16:28.452Z] info    - Authentication is disabled 
[2023-02-21T19:16:28.452Z] info    - Not serving HTTPS 
[19:19:22] 

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants