Skip to content

Conversation

@kanduri
Copy link
Contributor

@kanduri kanduri commented Jun 5, 2025

Added a small section to help users connect to VS code with a container image using CSCS's container engine (CE)

@github-actions
Copy link

github-actions bot commented Jun 5, 2025

preview available: https://docs.tds.cscs.ch/140

Copy link
Member

@bcumming bcumming left a comment

Choose a reason for hiding this comment

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

Thanks @kanduri .

This is really useful. I have a few suggestions in comments.


### Using with containers

This will use CSCS's custom **Container Engine** which can easily pull a container from a registry like DockerHub. Same setup process as earlier with GitHub.
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
This will use CSCS's custom **Container Engine** which can easily pull a container from a registry like DockerHub. Same setup process as earlier with GitHub.
This uses [Container Engine][ref-container-engine].
First, use the same setup process as earlier with GitHub.

Copy link
Member

Choose a reason for hiding this comment

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

Also "Same setup process as earlier with GitHub" is a bit vague.

Maybe something like "Note that this process also requires that you have a GitHub account, and that VS Code on your laptop has been connected to it (see above)."

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

```
The `uname -m` command will print `aarch64` or `x86_64`, according to the microarchitecture of the node it is run on.

Copy link
Member

Choose a reason for hiding this comment

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

please remove whitespace that was introduced on these lines.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done


start tunnel

cd /path/to/code/executable
Copy link
Member

Choose a reason for hiding this comment

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

It is implicit that the VS Code executable is either

  • already in the container image
  • in a path that has been mounted in the image

Can you add some information about how to do this?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

@github-actions
Copy link

github-actions bot commented Jun 5, 2025

preview available: https://docs.tds.cscs.ch/140

@github-actions
Copy link

github-actions bot commented Jun 5, 2025

preview available: https://docs.tds.cscs.ch/140

1 similar comment
@github-actions
Copy link

github-actions bot commented Jun 5, 2025

preview available: https://docs.tds.cscs.ch/140

The main challenge with using VSCode is that the most convenient method for starting a remote session is to start a remote tunnel from the VS Code GUI.
This approach starts a session in the standard login environment on that node, however this won't work if you want to be developing in a container, in a uenv, or on a compute node.

This process is also demonstrated in a webinar on [Interactive computing on "Alps"](https://www.cscs.ch/publications/tutorials/2025/video-of-the-webinar-interactive-computing-on-alps). Video and slides accessible.
Copy link
Member

Choose a reason for hiding this comment

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

How about directly embedding the video, at the time stamp where VS Code is discussed?

Here is an example of embedding a video:
https://docs.cscs.ch/storage/longterm/#further-documentation

I think it should be enough to embed this:

<iframe width="100%"
        height="315"
        src="https://www.youtube.com/embed/cLVpJO_fE6I?si=bTmmsS_9QvTHpUqK&amp;start=2257"
        title="YouTube video player"
        frameborder="0"
        allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share"
        referrerpolicy="strict-origin-when-cross-origin"
        allowfullscreen>
</iframe>

### Using with containers

This will use CSCS's **[Container Engine][ref-container-engine]**. Using this workflow, one can pull a container from a registry like DockerHub. Note that this process also requires that you have a GitHub account, with an authentication and authorization step as described earlier.
This will use CSCS's **[Container Engine][ref-container-engine]**. Using this workflow, one can pull a container from a registry like DockerHub. Note that this process also requires that you have a GitHub account, with an authentication and authorization step as described earlier.
Copy link
Member

Choose a reason for hiding this comment

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

@github-actions
Copy link

preview available: https://docs.tds.cscs.ch/140

@github-actions
Copy link

preview available: https://docs.tds.cscs.ch/140

@bcumming bcumming merged commit 0e1bb09 into main Jun 10, 2025
1 check passed
@bcumming bcumming deleted the kanduri-patch-2 branch June 10, 2025 07:07
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