Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
rursache authored Dec 12, 2022
1 parent 0849541 commit a72a07c
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,29 @@
# VSCode Server Swift MOD

![Swift](https://i.imgur.com/1fpf5HJ.png)

This MOD installs Swift binaries to be used in VSCode at startup. [linuxserver](https://www.linuxserver.io/)'s [code-server image](https://hub.docker.com/r/linuxserver/code-server) is used as core

> **Note**
>
> You also need the [code-server-extension-arguments](https://github.com/linuxserver/docker-mods/tree/code-server-extension-arguments) MOD to supply the official VS marketplace where [sswg.swift-lang](https://marketplace.visualstudio.com/items?itemName=sswg.swift-lang) exists.
>
> This MOD will try to install it if you provide the correct envs.
### Full example
```sh
docker run -d \
--name=vscodeserver \
--restart unless-stopped \
-p 8443:8443 \
-e PUID=1000 \
-e PGID=1000 \
-e TZ=Europe/Bucharest \
-e DOCKER_MODS="linuxserver/mods:code-server-extension-arguments|rursache/vscode-swift-linuxserver-mod" \
-e VSCODE_EXTENSION_IDS="sswg.swift-lang"\
-e EXTENSIONS_GALLERY='{"serviceUrl": "https://marketplace.visualstudio.com/_apis/public/gallery", "cacheUrl": "https://vscode.blob.core.windows.net/gallery/index", "itemUrl": "https://marketplace.visualstudio.com/items"}' \
-v /home/USER/.vscodeserver/config:/config \
-v /home/USER/.vscodeserver/projects:/projects \
-v /opt/swift:/swift \
lscr.io/linuxserver/code-server:latest
```

0 comments on commit a72a07c

Please sign in to comment.