https://github.com/binhex/arch-code-server
https://github.com/binhex/arch-code-server
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/binhex/arch-code-server
- Owner: binhex
- License: gpl-3.0
- Created: 2021-06-11T10:57:40.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2025-02-18T20:21:37.000Z (4 months ago)
- Last Synced: 2025-03-01T05:11:52.877Z (4 months ago)
- Language: Shell
- Size: 88.9 KB
- Stars: 16
- Watchers: 3
- Forks: 6
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
**Application**
[code-server](https://github.com/cdr/code-server)
**Description**
Code-server is a Visual Studio Code instance running on a remote server accessible through any web browser. It allows you to code anywhere and on any device such as a tablet or laptop with a consistent integrated development environment (IDE). Set up a secure a Linux development machine and get coding on any device with a web browser.
Take advantage of a cloud server by offloading the system demanding tasks such as tests, compilations, downloads to another machine. Preserve battery life when you’re on the go or spend your downtime doing something else while the computationally intensive processes are running on your cloud server.
**Build notes**
Latest GitHub master branch of code-server from Arch Linux AUR.
**Usage**
```
docker run -d \
-p 8500:8500 \
--name= \
-v :/data \
-v :/config \
-v /etc/localtime:/etc/localtime:ro \
-e CERT_PATH= \
-e CERT_KEY_PATH= \
-e SELF_SIGNED_CERT=yes|no \
-e BIND_CLOUD_NAME= \
-e PASSWORD= \
-e ENABLE_STARTUP_SCRIPTS=yes|no \
-e UMASK= \
-e PUID= \
-e PGID= \
binhex/arch-code-server
```Please replace all user variables in the above command defined by <> with the correct values.
**Access application**
`https://:8500`
If no password specified via env var ```PASSWORD``` then a random password will be generated and shown in the log ```/config/supervisord.log```
**Example**
```
docker run -d \
-p 8500:8500 \
--name=code-server \
-v ~/github/source:/data \
-v ~/docker/code-server:/config \
-v /etc/localtime:/etc/localtime:ro \
-e CERT_PATH='/config/code-server/certs/mycert.crt' \
-e CERT_KEY_PATH='/config/code-server/certs/mycert.key' \
-e SELF_SIGNED_CERT=no \
-e BIND_CLOUD_NAME='' \
-e PASSWORD=code-server \
-e ENABLE_STARTUP_SCRIPTS=yes \
-e UMASK=000 \
-e PUID=0 \
-e PGID=0 \
binhex/arch-code-server
```**Notes**
If both ```CERT_PATH``` and ```CERT_PATH_KEY``` specified then it takes precedence over values set for ```SELF_SIGNED_CERT``` and ```BIND_CLOUD_NAME```, else ```SELF_SIGNED_CERT``` takes precedence over ```BIND_CLOUD_NAME```If you set ```BIND_CLOUD_NAME``` then check the log ```/config/supervisord.log``` for URL to authorise CDR with GitHub.
User ID (PUID) and Group ID (PGID) can be found by issuing the following command for the user you want to run the container as:-
```
id
```
___
If you appreciate my work, then please consider buying me a beer :D[](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=MM5E27UX6AUU4)
[Documentation](https://github.com/binhex/documentation) | [Support forum](https://forums.unraid.net/topic/110282-support-binhex-code-server/)