Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rursache/vscode-swift-linuxserver-mod
Install Swift in linuxserver's code-server docker image
https://github.com/rursache/vscode-swift-linuxserver-mod
code-server docker linuxserver-io swift vscode
Last synced: about 2 months ago
JSON representation
Install Swift in linuxserver's code-server docker image
- Host: GitHub
- URL: https://github.com/rursache/vscode-swift-linuxserver-mod
- Owner: rursache
- Created: 2022-12-12T14:40:50.000Z (almost 2 years ago)
- Default Branch: master
- Last Pushed: 2023-04-27T22:49:34.000Z (over 1 year ago)
- Last Synced: 2024-05-01T20:21:29.673Z (5 months ago)
- Topics: code-server, docker, linuxserver-io, swift, vscode
- Language: Dockerfile
- Homepage:
- Size: 26.4 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
Awesome Lists containing this project
README
# Code Server Swift MOD
![Swift](https://i.imgur.com/1fpf5HJ.png)
This MOD installs Swift binaries to be used in Code Server ([VS Code in the browser](https://github.com/coder/code-server)).
[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.## TODO
- [Merge request](https://github.com/linuxserver/docker-mods/tree/template) for this MOD to be included in linuxserver [MOD list](https://mods.linuxserver.io/?mod=code-server) ([example](https://github.com/linuxserver/docker-mods/pull/538))### 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
```