Skip to content

Commit df272d1

Browse files
Refactor CSCS documentation for clarity
Removed duplicate text and improved formatting in the documentation.
1 parent 4a1ffde commit df272d1

1 file changed

Lines changed: 24 additions & 21 deletions

File tree

docs/clusters/cscs.md

Lines changed: 24 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -504,31 +504,34 @@ If you want to join the modern era of computers and have something more involve
504504

505505
You will need the vscode *CLI* installed on the job you launched.
506506

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.
508510

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"
510512

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.
512514

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.
514-
515-
```Dockerfile hl_lines="6-11" title="Sample Dockerfile"
516-
FROM michelducartier24/multimeditron-apertus
517-
RUN pip install -U transformers
515+
```Dockerfile hl_lines="6-11" title="Sample Dockerfile"
516+
FROM michelducartier24/multimeditron-apertus
517+
RUN pip install -U transformers
518518

519-
RUN echo "" > /etc/pip/constraint.txt
519+
RUN echo "" > /etc/pip/constraint.txt
520520

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-
```
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+
528529
- 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+
534537
- 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

Comments
 (0)