3df771fbc4
* Check the logged user instead of $USER Given that `sudo usermod --login "$DOCKER_USER" coder` and `sudo groupmod -n "$DOCKER_USER" coder` modify the container's disk it'll persist across restarts, but environment variables will be reset to whatever state they had at the end of `Dockerfile`. In this case, `$USER` is set to `coder`, so this branch will always be true. By checking with the output of `whoami`, which gets it's information from `/etc/passwd`, we make sure to get the real logged user and not the one defined by $USER. We also move `USER="$DOCKER_USER"` out of the branch, since we always want this to happen at entry-point. If we don't do this assignment, $USER will contain `coder` upon restart. * Update entrypoint.sh Check `$DOCKER_USER` was defined before copying it to `$USER`. |
||
---|---|---|
.github | ||
.tours | ||
ci | ||
docs | ||
lib/vscode | ||
src | ||
test | ||
typings | ||
.dockerignore | ||
.editorconfig | ||
.eslintrc.yaml | ||
.gitattributes | ||
.gitignore | ||
.prettierrc.yaml | ||
.stylelintrc.yaml | ||
CHANGELOG.md | ||
LICENSE.txt | ||
README.md | ||
ThirdPartyNotices.txt | ||
install.sh | ||
package.json | ||
tsconfig.json | ||
yarn.lock |
README.md
code-server ·
Run VS Code on any machine anywhere and access it in the browser.
Highlights
- Code on any device with a consistent development environment
- Use cloud servers to speed up tests, compilations, downloads, and more
- Preserve battery life when you're on the go; all intensive tasks run on your server
Requirements
For a good experience, we recommend at least:
- 1 GB of RAM
- 2 cores
You can use whatever linux distribution floats your boat but in our guide we assume Debian on Google Cloud.
Getting Started
There are three ways you can get started:
- Using the install script, which automates most of the process. The script uses the system package manager (if possible)
- Manually installing code-server; see Installation for instructions applicable to most use cases
- Use our one-click buttons and guides to deploy code-server to a popular cloud provider ⚡
If you choose to use the install script, you can preview what occurs during the install process:
curl -fsSL https://code-server.dev/install.sh | sh -s -- --dry-run
To install, run:
curl -fsSL https://code-server.dev/install.sh | sh
When done, the install script prints out instructions for running and starting code-server.
We also have an in-depth setup and configuration guide.
code-server --link
We're working on a cloud platform that makes deploying and managing code-server easier.
Consider running code-server with the beta flag --link
if you don't want to worry about
- TLS
- Authentication
- Port Forwarding
$ code-server --link
Proxying code-server, you can access your IDE at https://valmar-jon.cdr.co
FAQ
See ./docs/FAQ.md.
Want to help?
See CONTRIBUTING for details.
Hiring
Interested in working at Coder? Check out our open positions!
For Organizations
Visit our website for more information about remote development for your organization or enterprise.