Skip to content

Commit a72a07c

Browse files
authored
Update README.md
1 parent 0849541 commit a72a07c

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

README.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,29 @@
11
# VSCode Server Swift MOD
22

3+
![Swift](https://i.imgur.com/1fpf5HJ.png)
4+
5+
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
6+
7+
> **Note**
8+
>
9+
> 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.
10+
>
11+
> This MOD will try to install it if you provide the correct envs.
12+
13+
### Full example
14+
```sh
15+
docker run -d \
16+
--name=vscodeserver \
17+
--restart unless-stopped \
18+
-p 8443:8443 \
19+
-e PUID=1000 \
20+
-e PGID=1000 \
21+
-e TZ=Europe/Bucharest \
22+
-e DOCKER_MODS="linuxserver/mods:code-server-extension-arguments|rursache/vscode-swift-linuxserver-mod" \
23+
-e VSCODE_EXTENSION_IDS="sswg.swift-lang"\
24+
-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"}' \
25+
-v /home/USER/.vscodeserver/config:/config \
26+
-v /home/USER/.vscodeserver/projects:/projects \
27+
-v /opt/swift:/swift \
28+
lscr.io/linuxserver/code-server:latest
29+
```

0 commit comments

Comments
 (0)