- Notifications
You must be signed in to change notification settings - Fork928
docs: add upgrade page & update getting started#3439
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Merged
Uh oh!
There was an error while loading.Please reload this page.
Merged
Changes fromall commits
Commits
Show all changes
9 commits Select commitHold shift + click to select a range
8cf0205
docs: add upgrade & update getting started
ericpaulsene4eef06
add: create workspace heading
ericpaulsen2eac8fe
fix: typo
ericpaulsen35b1ef8
update: feedback
ericpaulsene51516d
fix: URL
ericpaulsen2d135b9
update: feedback v2
ericpaulsen1e16001
update: feedback v3
ericpaulsenc8abcdd
update: feedback v4
ericpaulsen6adb2c5
fix: URL
ericpaulsenFile filter
Filter by extension
Conversations
Failed to load comments.
Loading
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Jump to file
Failed to load files.
Loading
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
There are no files selected for viewing
10 changes: 4 additions & 6 deletionsdocs/install.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -46,7 +46,7 @@ journalctl -u coder.service -b | ||
Before proceeding, please ensure that you have both Docker and the [latest version of | ||
Coder](https://github.com/coder/coder/releases) installed. | ||
> See our [docker-compose](https://github.com/coder/coder/blob/main/docker-compose.yaml) file | ||
ericpaulsen marked this conversation as resolved. Show resolvedHide resolvedUh oh!There was an error while loading.Please reload this page. | ||
> for additional information. | ||
1. Clone the `coder` repository: | ||
@@ -87,8 +87,6 @@ Coder](https://github.com/coder/coder/releases) installed. | ||
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 | ||
@@ -130,7 +128,7 @@ We publish self-contained .zip and .tar.gz archives in [GitHub releases](https:/ | ||
coder server --postgres-url <url> --access-url <url> | ||
``` | ||
##Up Next | ||
- Learn how to [configure](./install/configure.md) Coder. | ||
- Learn about [upgrading](./install/upgrade.md) Coder. |
50 changes: 50 additions & 0 deletionsdocs/install/configure.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
# Configure | ||
This article documents the Coder server's primary configuration variables. For a full list | ||
of the options, run `coder server --help` on the host. | ||
Once you've [installed](../install.md) Coder, you can configure the server by setting the following | ||
variables in `/etc/coder.d/coder.env`: | ||
```sh | ||
# String. Specifies the external URL (HTTP/S) to access Coder. Consumes $CODER_ACCESS_URL | ||
CODER_ACCESS_URL=https://coder.example.com | ||
# String. Address to serve the API and dashboard. Consumes $CODER_ADDRESS (default "127.0.0.1:3000") | ||
CODER_ADDRESS=127.0.0.1:3000 | ||
# String. The URL of a PostgreSQL database to connect to. If empty, PostgreSQL binaries | ||
# will be downloaded from Maven (https://repo1.maven.org/maven2) and store all | ||
# data in the config root. Access the built-in database with "coder server postgres-builtin-url". | ||
# Consumes $CODER_PG_CONNECTION_URL. | ||
CODER_PG_CONNECTION_URL="" | ||
# Boolean. Specifies if TLS will be enabled. Consumes $CODER_TLS_ENABLE. | ||
CODER_TLS_ENABLE= | ||
# Specifies the path to the certificate for TLS. It requires a PEM-encoded file. | ||
# To configure the listener to use a CA certificate, concatenate the primary | ||
# certificate and the CA certificate together. The primary certificate should | ||
# appear first in the combined file. Consumes $CODER_TLS_CERT_FILE. | ||
CODER_TLS_CERT_FILE= | ||
# Specifies the path to the private key for the certificate. It requires a | ||
# PEM-encoded file. Consumes $CODER_TLS_KEY_FILE. | ||
CODER_TLS_KEY_FILE= | ||
``` | ||
## Run Coder | ||
Now, run Coder as a system service on the host: | ||
```sh | ||
# Use systemd to start Coder now and on reboot | ||
sudo systemctl enable --now coder | ||
# View the logs to ensure a successful start | ||
journalctl -u coder.service -b | ||
``` | ||
## Up Next | ||
- [Get started using Coder](./quickstart.md). | ||
- [Learn how to upgrade Coder](./upgrade.md). |
39 changes: 39 additions & 0 deletionsdocs/install/upgrade.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
# Upgrade | ||
This article walks you through how to upgrade your Coder server. | ||
To upgrade your Coder server, simply reinstall Coder using your original method | ||
of [install](../install.md). | ||
<blockquote class="danger"> | ||
<p> | ||
Prior to upgrading a production Coder deployment, take a database snapshot since | ||
Coder does not support rollbacks. | ||
</p> | ||
</blockquote> | ||
## Via install.sh | ||
If you installed Coder using the `install.sh` script, simply re-run the below | ||
command on the host: | ||
```console | ||
curl -L https://coder.com/install.sh | sh | ||
``` | ||
The script will unpack the new `coder` binary version over the one currently installed. | ||
Next, you can restart Coder with the following command (if running it as a system | ||
service): | ||
```console | ||
systemctl restart coder | ||
``` | ||
## Via docker-compose | ||
If you installed using `docker-compose`, run the below command to upgrade the | ||
Coder container: | ||
```console | ||
docker-compose pull coder && docker-compose up coder -d | ||
``` |
10 changes: 10 additions & 0 deletionsdocs/manifest.json
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
27 changes: 18 additions & 9 deletionsdocs/quickstart/generic.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
2 changes: 1 addition & 1 deletiondocs/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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -98,7 +98,7 @@ inherited by all child processes of the agent, including SSH sessions. | ||
#### startup_script | ||
Use the Coder agent's `startup_script` to run additional commands like | ||
installing IDEs, [cloningdotfiles](./dotfiles.md#templates), and cloning project repos. | ||
ericpaulsen marked this conversation as resolved. Show resolvedHide resolvedUh oh!There was an error while loading.Please reload this page. | ||
```hcl | ||
resource "coder_agent" "coder" { | ||
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.