Skip to content

docs: deprecate name arg #5026

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 3 commits into from
Nov 11, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 18 additions & 16 deletions docs/ides/web-ides.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ vim main.tf

```hcl
resource "coder_agent" "main" {
arch = "amd64"
os = "linux"
arch = "amd64"
os = "linux"
startup_script = <<EOF
#!/bin/sh
# install and start code-server
Expand Down Expand Up @@ -140,9 +140,9 @@ Configure your agent and `coder_app` like so to use Jupyter:
data "coder_workspace" "me" {}

resource "coder_agent" "coder" {
os = "linux"
arch = "amd64"
dir = "/home/coder"
os = "linux"
arch = "amd64"
dir = "/home/coder"
startup_script = <<-EOF
pip3 install jupyterlab
$HOME/.local/bin/jupyter lab --ServerApp.token='' --ip='*'
Expand Down Expand Up @@ -176,9 +176,9 @@ Configure your agent and `coder_app` like so to use RStudio. Notice the

```hcl
resource "coder_agent" "coder" {
os = "linux"
arch = "amd64"
dir = "/home/coder"
os = "linux"
arch = "amd64"
dir = "/home/coder"
startup_script = <<EOT
#!/bin/bash
# start rstudio
Expand All @@ -189,11 +189,12 @@ EOT
# rstudio
resource "coder_app" "rstudio" {
agent_id = coder_agent.coder.id
name = "rstudio"
icon = "/icon/rstudio.svg"
slug = "rstudio"
display_name = "R Studio"
icon = "https://upload.wikimedia.org/wikipedia/commons/d/d0/RStudio_logo_flat.svg"
url = "http://localhost:8787"
subdomain = true
share = "owner"
subdomain = true
share = "owner"

healthcheck {
url = "http://localhost:8787/healthz"
Expand All @@ -214,7 +215,7 @@ Configure your agent and `coder_app` like so to use Airflow. Notice the
resource "coder_agent" "coder" {
os = "linux"
arch = "amd64"
dir = "/home/coder"
dir = "/home/coder"
startup_script = <<EOT
#!/bin/bash
# install and start airflow
Expand All @@ -225,11 +226,12 @@ EOT

resource "coder_app" "airflow" {
agent_id = coder_agent.coder.id
name = "airflow"
slug = "airflow"
display_name = "Airflow"
icon = "https://upload.wikimedia.org/wikipedia/commons/d/de/AirflowLogo.png"
url = "http://localhost:8080"
subdomain = true
share = "owner"
subdomain = true
share = "owner"

healthcheck {
url = "http://localhost:8080/healthz"
Expand Down
12 changes: 6 additions & 6 deletions docs/networking/port-forwarding.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,21 +61,21 @@ One way to port forward in the dashboard is to use the "Port forward" button to

Another way to port forward is to configure a `coder_app` resource in the workspace's template. This approach shows a visual application icon in the dashboard. See the following `coder_app` example for a Node React app and note the `subdomain` and `share` settings:

```sh
```hcl
# node app
resource "coder_app" "node-react-app" {
agent_id = coder_agent.dev.id
name = "node-react-app"
icon = "https://upload.wikimedia.org/wikipedia/commons/thumb/a/a7/React-icon.svg/2300px-React-icon.svg.png"
url = "http://localhost:3000"
agent_id = coder_agent.dev.id
slug = "node-react-app"
icon = "https://upload.wikimedia.org/wikipedia/commons/a/a7/React-icon.svg"
url = "http://localhost:3000"
subdomain = true
share = "authenticated"

healthcheck {
url = "http://localhost:3000/healthz"
interval = 10
threshold = 30
}
}

}
```
Expand Down