-
Notifications
You must be signed in to change notification settings - Fork 944
chore: separate install docs #3859
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 1 commit
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
5de5756
move around some stuff
bpmct f346b6b
add Docker
bpmct c395cd3
wip for Kubernetes
bpmct 95821db
add k8s
bpmct 3cc6aed
add standalone install and
bpmct 564c619
remove install.md
bpmct 40e6351
add admin and configuring docs
bpmct eb9f516
change install links
bpmct af4cf2c
move file
bpmct 960a3ae
fix typo
bpmct 24afb08
fixes from ammario feedback
bpmct 551fdc9
changes from mtm feedback
bpmct 58fe689
changes from dean feedback
bpmct File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next
Next commit
move around some stuff
- Loading branch information
commit 5de57568f2003d752fe666b89b6e058e0b2f874f
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
Empty file.
File renamed without changes.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
Coder publishes containerized images | ||
|
||
## Standalone container | ||
|
||
Requirements: | ||
|
||
- Docker | ||
- | ||
|
||
sudo rm -r ~/coder-stuff2/ | ||
mkdir ~/coder-stuff2/ | ||
docker run --rm -it \ | ||
-e CODER_TUNNEL=true \ | ||
-e CODER_CONFIG_DIR=/opt/coder-data \ | ||
-v /var/run/docker.sock:/var/run/docker.sock \ | ||
-v $HOME/coder-stuff2/:/opt/coder-data/ \ | ||
ghcr.io/coder/coder:latest | ||
|
||
1. Clone the `coder` repository: | ||
|
||
```console | ||
git clone https://github.com/coder/coder.git | ||
``` | ||
|
||
2. Navigate into the `coder` folder and run `docker-compose up`: | ||
|
||
```console | ||
cd coder | ||
# Coder will bind to localhost:7080. | ||
# You may use localhost:7080 as your access URL | ||
# when using Docker workspaces exclusively. | ||
# CODER_ACCESS_URL=http://localhost:7080 | ||
# Otherwise, an internet accessible access URL | ||
# is required. | ||
CODER_ACCESS_URL=https://coder.mydomain.com | ||
docker-compose up | ||
``` | ||
|
||
Otherwise, you can start the service: | ||
|
||
```console | ||
cd coder | ||
docker-compose up | ||
``` | ||
|
||
docker run --rm -it \ | ||
-e CODER_TUNNEL=true \ | ||
-v /var/run/docker.sock:/var/run/docker.sock \ | ||
-v ~/idk:/home/coder \ | ||
ghcr.io/coder/coder:latest | ||
|
||
Alternatively, if you would like to start a **temporary deployment**: | ||
|
||
```console | ||
docker run --rm -it \ | ||
-e CODER_DEV_MODE=true \ | ||
-v /var/run/docker.sock:/var/run/docker.sock \ | ||
ghcr.io/coder/coder:v0.5.10 | ||
``` | ||
|
||
3. Follow the on-screen instructions to create your first template and workspace | ||
|
||
If the user is not in the Docker group, you will see the following error: | ||
|
||
```sh | ||
Error: Error pinging Docker server: Got permission denied while trying to connect to the Docker daemon socket | ||
``` | ||
|
||
The default docker socket only permits connections from `root` or members of the `docker` | ||
group. Remedy like this: | ||
|
||
```sh | ||
# replace "coder" with user running coderd | ||
sudo usermod -aG docker coder | ||
grep /etc/group -e "docker" | ||
sudo systemctl restart coder.service | ||
``` |
EDBE
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
There are a number of different ways to install Coder | ||
|
||
<children></children> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
The easiest way to install Coder is to use our [install script](https://github.com/coder/coder/blob/main/install.sh) for Linux and macOS. | ||
|
||
To install, run: | ||
|
||
```bash | ||
curl -fsSL https://coder.com/install.sh | sh | ||
``` | ||
|
||
You can preview what occurs during the install process: | ||
|
||
```bash | ||
curl -fsSL https://coder.com/install.sh | sh -s -- --dry-run | ||
``` | ||
|
||
You can modify the installation process by including flags. Run the help command for reference: | ||
|
||
```bash | ||
curl -fsSL https://coder.com/install.sh | sh -s -- --help | ||
``` | ||
|
||
After installing, use the instructions in your terminal to start the Coder server and create your first account. | ||
|
||
## Next steps | ||
|
||
- [Quickstart](../quickstart.md) | ||
- [Configuring Coder](../admin/configure.md) | ||
- [Templates](../templates.md) |
Empty file.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
Coder publishes the following system packages [in GitHub releases](https://github.com/coder/coder/releases): | ||
|
||
- .deb (Debian, Ubuntu) | ||
- .rpm (Fedora, CentOS, RHEL, SUSE) | ||
- .apk (Alpine) | ||
|
||
Once installed, you can run Coder as a system service. | ||
|
||
```sh | ||
# Set up an access URL or enable CODER_TUNNEL | ||
sudo vim /etc/coder.d/coder.env | ||
|
||
# To systemd to start Coder now and on reboot | ||
sudo systemctl enable --now coder | ||
|
||
# View the logs to see Coder's URL and ensure a successful start | ||
journalctl -u coder.service -b | ||
``` | ||
|
||
Visit the Coder URL in the logs to set up your first account, or use the CLI: | ||
|
||
```sh | ||
coder login <access-url> | ||
``` | ||
|
||
## Next steps | ||
|
||
- [Quickstart](../quickstart.md) | ||
- [Configuring Coder](../admin/configure.md) | ||
- [Templates](../templates.md) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.