All apps · 0 apps
binhex-code-server
Docker app from Binhex's Repository
Overview
Readme
View on GitHubApplication
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=<container name> \
-v <path for data files>:/data \
-v <path for config files>:/config \
-v /etc/localtime:/etc/localtime:ro \
-e CERT_PATH=<filepath to cert> \
-e CERT_KEY_PATH=<filepath to cert key> \
-e SELF_SIGNED_CERT=yes|no \
-e BIND_CLOUD_NAME=<name> \
-e PASSWORD=<password for web ui> \
-e ENABLE_STARTUP_SCRIPTS=yes|no \
-e HEALTHCHECK_COMMAND=<command> \
-e HEALTHCHECK_ACTION=<action> \
-e HEALTHCHECK_HOSTNAME=<hostname> \
-e UMASK=<umask for created files> \
-e PUID=<uid for user> \
-e PGID=<gid for user> \
binhex/arch-code-server
Please replace all user variables in the above command defined by <> with the correct values.
Access application
https://<host ip>: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 <username>
If you appreciate my work, then please consider buying me a beer :D
Install binhex-code-server on Unraid in a few clicks.
Find binhex-code-server in Community Apps on your Unraid server, review the template, and click Install. Unraid handles the Docker app or plugin setup from the published template.
Categories
Download Statistics
Total Downloads Over Time
Related apps
Explore more like this
Explore allDetails
ghcr.io/binhex/arch-code-serverRuntime arguments
- Web UI
http://[IP]:[PORT:8500]- Network
bridge- Shell
bash- Privileged
- false
- Extra Params
--restart=unless-stopped
Template configuration
This is the Web UI port for for the application.
- Target
- 8500
- Default
- 8500
This is the container path to your configuration files, e.g. databases, configuration files, logs etc.
- Target
- /config
- Default
- /mnt/user/appdata/code-server
This is the container path to your downloaded files or user created content.
- Target
- /data
Specify the path to the certificate used for SSL/TLS.
- Target
- CERT_PATH
Specify the path to the certificate key used for SSL/TLS.
- Target
- CERT_KEY_PATH
Specify whether to use a self-signed certificate.
- Target
- SELF_SIGNED_CERT
- Default
- yes|no
Specify the bind cloud name used for SSL/TLS.
- Target
- BIND_CLOUD_NAME
Specify whether to run startup scripts to install and/or configure additional applications.
- Target
- ENABLE_STARTUP_SCRIPTS
- Default
- no|yes
Specify the password used to access the Web UI.
- Target
- PASSWORD
- Default
- code-server
Enable or disable healthchecks.
- Target
- ENABLE_HEALTHCHECK
- Default
- yes|no
The command or script to execute, if not specified then the script healthcheck.sh will be used (process, dns and https checking).
- Target
- HEALTHCHECK_COMMAND
The action to execute if the healthcheck command returns a non zero exit code, if not specified the action will be 'exit 1', if you want the container to exit on failure then set the action to 'kill 1'.
- Target
- HEALTHCHECK_ACTION
The hostname used when performing HTTPS and DNS healthchecking.
- Target
- HEALTHCHECK_HOSTNAME
- Default
- google.com
User ID for the running container
- Target
- PUID
- Default
- 99
Group ID for the running container
- Target
- PGID
- Default
- 100
UMASK for the running container
- Target
- UMASK
- Default
- 000
