You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/clusters/cscs.md
+24-21Lines changed: 24 additions & 21 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -504,31 +504,34 @@ If you want to join the modern era of computers and have something more involve
504
504
505
505
You will need the vscode *CLI* installed on the job you launched.
506
506
507
-
=== "Use prebuild image"
507
+
=== "Use prebuild image"
508
+
509
+
You can use the image that I personally used, you can update your environment file, and use the image at `/capstor/store/cscs/swissai/a127/meditron/docker/multimeditron_latest_2.sqsh`. With this solution however you'll inherit from all of my python dependencies. If you want to use your own image, you can check the manual installation.
508
510
509
-
You can use the image that I personally used, you can update your environment file, and use the image at `/capstor/store/cscs/swissai/a127/meditron/docker/multimeditron_latest_2.sqsh`. With this solution however you'll inherit from all of my python dependencies. If you want to use your own image, you can check the manual installation.
511
+
=== "Manually install CLI"
510
512
511
-
=== "Manually install CLI"
513
+
If you want to use custom dependency, you'll need to manually install the *vscode cli* onto you image. To show you an example of it, here's a sample of my `Dockerfile` responsible for installing the CLI.
512
514
513
-
If you want to use custom dependency, you'll need to manually install the *vscode cli* onto you image. To show you an example of it, here's a sample of my `Dockerfile` responsible for installing the CLI.
RUN curl -Lk 'https://code.visualstudio.com/sha/download?build=stable&os=cli-alpine-arm64' --output vscode_cli.tar.gz
524
-
RUN tar -xf vscode_cli.tar.gz
525
-
RUN mv ./code /usr/bin
526
-
RUN rm -rf /workspace/code
527
-
```
521
+
RUN mkdir -p /workspace/code
522
+
WORKDIR /workspace/code
523
+
RUN curl -Lk 'https://code.visualstudio.com/sha/download?build=stable&os=cli-alpine-arm64' --output vscode_cli.tar.gz
524
+
RUN tar -xf vscode_cli.tar.gz
525
+
RUN mv ./code /usr/bin
526
+
RUN rm -rf /workspace/code
527
+
```
528
+
528
529
- Once your job has been launched with *vscode* CLI installed, it's time to run the *code tunnel*. Go to the folder of your project and run the following command
529
-
```bash
530
-
cd /path/to/my/awesome/project
531
-
code tunnel --name=cluster-tunnel
532
-
```
533
-
This will prompt you to connect to your `github` account, do so.
530
+
531
+
```bash
532
+
cd /path/to/my/awesome/project
533
+
code tunnel --name=cluster-tunnel
534
+
```
535
+
This will prompt you to connect to your `github` account, do so.
536
+
534
537
- Finally, open vscode locally on your computer then in the remote extension select the appropriate tunnel and that's it, you are in !
0 commit comments