Public Code Servers - An implementation of Code Server
Access a version of VS Code on the web with a bunch of extra features and integrations.
Uses Code Server while also providing:
- ZSH and Oh-My-ZSH
- SharpCD and Sharpdev
- Neofetch
- Everything in /home/coder stored in a docker volume
- Docker and docker-compose installed
- Fira Code font installed
- Golang
- Python
- Julia
- PHP
- Typescript
- Rust
- Elixir
- Make sure SharpCD havs been installed.
- Ensure the enviromental variables have been set in an enviromental variable file:
OAUTH_PROVIDER=google
# Set by google
OAUTH_CALLBACK_URLS=${CALLBACK_URL}
OAUTH_CLIENT_ID=${VOUCHID}
OAUTH_CLIENT_SECRET=${VOUCHSECRET}
ADMIN_EMAIL=mygmail@gmail.com
# domain vouch proxy will be hosted on
DOMAINS=mydomain.com
#====================
# sharpnet ports
HTTP_PORT=80
HTTPS_PORT=443
# Sharpnet gmail login credentials
# for sending errors
MAILPASS=email_password
SENDER_EMAIL=email
# Email that problems will be sent to
RECEIVER_EMAIL=email@domain1.com
# Domain for certificates
DOMAIN=domain2.com
# For Devs only
DEV=FALSE
NETWORK=sharpnet
(Note that VOUCH OAuth could be changed to another provider, please see Vouch Proxy)
- Run the following command to install the dependencies:
sharpcd --remotefile https://raw.githubusercontent.com/Sharpz7/vouch/main/.sharpcd/dependencies.sharpcd.yml
-
Ensure the enviromental variables have been set in an enviromental variable file:
-
Use the $VERSION variable to set the version of Code Server you want to install (i.e 4.4.0-python)
See the possible version tags Here
CODESERVER_PASS=<password>
VERSION=<version>
# Domain(s) that the codeserver will be hosted on
SHARPDOMAINS=<domain>
- Run the following command to install Code Server:
sharpcd --remotefile https://raw.githubusercontent.com/Sharpz7/public-codeserver/main/.sharpcd/sharpcd.yml