Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
Prev Previous commit
Next Next commit
chore: add share to all example templates
  • Loading branch information
deansheather committed Oct 12, 2022
commit 9f458507436ec6250ceabcc1a50fbda93b34e85e
8 changes: 4 additions & 4 deletions coderd/database/migrations/000059_app_sharing_level.down.sql
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
-- Drop column share_level from workspace_apps
ALTER TABLE workspace_apps DROP COLUMN share_level;
-- Drop column sharing_level from workspace_apps
ALTER TABLE workspace_apps DROP COLUMN sharing_level;

-- Drop type app_share_level
DROP TYPE app_share_level;
-- Drop type app_sharing_level
DROP TYPE app_sharing_level;
13 changes: 7 additions & 6 deletions dogfood/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ terraform {
required_providers {
coder = {
source = "coder/coder"
version = "0.5.0"
version = "0.5.2"
}
docker = {
source = "kreuzwerker/docker"
Expand Down Expand Up @@ -38,10 +38,12 @@ resource "coder_agent" "dev" {
}

resource "coder_app" "code-server" {
agent_id = coder_agent.dev.id
name = "code-server"
url = "http://localhost:13337/"
icon = "/icon/code.svg"
agent_id = coder_agent.dev.id
name = "code-server"
url = "http://localhost:13337/"
icon = "/icon/code.svg"
subdomain = false
share = "owner"

healthcheck {
url = "http://localhost:13337/healthz"
Expand All @@ -50,7 +52,6 @@ resource "coder_app" "code-server" {
}
}


resource "docker_volume" "home_volume" {
name = "coder-${data.coder_workspace.me.owner}-${data.coder_workspace.me.name}-home"
}
Expand Down
3 changes: 2 additions & 1 deletion examples/templates/aws-ecs-container/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ terraform {
}
coder = {
source = "coder/coder"
version = "0.5.0"
version = "0.5.2"
}
}
}
Expand Down Expand Up @@ -110,6 +110,7 @@ resource "coder_app" "code-server" {
icon = "/icon/code.svg"
url = "http://localhost:13337?folder=/home/coder"
subdomain = false
share = "owner"

healthcheck {
url = "http://localhost:13337/healthz"
Expand Down
12 changes: 7 additions & 5 deletions examples/templates/aws-linux/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ terraform {
required_providers {
coder = {
source = "coder/coder"
version = "0.5.0"
version = "0.5.2"
}
}
}
Expand Down Expand Up @@ -86,10 +86,12 @@ resource "coder_agent" "main" {
}

resource "coder_app" "code-server" {
agent_id = coder_agent.main.id
name = "code-server"
url = "http://localhost:13337/?folder=/home/coder"
icon = "/icon/code.svg"
agent_id = coder_agent.main.id
name = "code-server"
url = "http://localhost:13337/?folder=/home/coder"
icon = "/icon/code.svg"
subdomain = false
share = "owner"

healthcheck {
url = "http://localhost:13337/healthz"
Expand Down
2 changes: 1 addition & 1 deletion examples/templates/aws-windows/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ terraform {
required_providers {
coder = {
source = "coder/coder"
version = "0.5.0"
version = "0.5.2"
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion examples/templates/azure-linux/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ terraform {
required_providers {
coder = {
source = "coder/coder"
version = "0.5.0"
version = "0.5.2"
}
azurerm = {
source = "hashicorp/azurerm"
Expand Down
10 changes: 6 additions & 4 deletions examples/templates/bare/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,12 @@ resource "null_resource" "fake-disk" {

resource "coder_app" "fake-app" {
# Access :8080 in the workspace from the Coder dashboard.
name = "VS Code"
icon = "/icon/code.svg"
agent_id = "fake-compute"
url = "http://localhost:8080"
name = "VS Code"
icon = "/icon/code.svg"
agent_id = "fake-compute"
url = "http://localhost:8080"
subdomain = false
share = "owner"

healthcheck {
url = "http://localhost:8080/healthz"
Expand Down
2 changes: 1 addition & 1 deletion examples/templates/do-linux/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ terraform {
required_providers {
coder = {
source = "coder/coder"
version = "0.5.0"
version = "0.5.2"
}
digitalocean = {
source = "digitalocean/digitalocean"
Expand Down
11 changes: 7 additions & 4 deletions examples/templates/docker-code-server/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ terraform {
required_providers {
coder = {
source = "coder/coder"
version = "0.5.0"
version = "0.5.2"
}
docker = {
source = "kreuzwerker/docker"
Expand Down Expand Up @@ -38,9 +38,12 @@ resource "coder_agent" "main" {
}

resource "coder_app" "code-server" {
agent_id = coder_agent.main.id
url = "http://localhost:8080/?folder=/home/coder"
icon = "/icon/code.svg"
agent_id = coder_agent.main.id
name = "code-server"
url = "http://localhost:8080/?folder=/home/coder"
icon = "/icon/code.svg"
subdomain = false
share = "owner"

healthcheck {
url = "http://localhost:8080/healthz"
Expand Down
12 changes: 7 additions & 5 deletions examples/templates/docker-image-builds/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ terraform {
required_providers {
coder = {
source = "coder/coder"
version = "0.5.0"
version = "0.5.2"
}
docker = {
source = "kreuzwerker/docker"
Expand Down Expand Up @@ -34,10 +34,12 @@ resource "coder_agent" "main" {
}

resource "coder_app" "code-server" {
agent_id = coder_agent.main.id
name = "code-server"
url = "http://localhost:13337/?folder=/home/coder"
icon = "/icon/code.svg"
agent_id = coder_agent.main.id
name = "code-server"
url = "http://localhost:13337/?folder=/home/coder"
icon = "/icon/code.svg"
subdomain = false
share = "owner"

healthcheck {
url = "http://localhost:13337/healthz"
Expand Down
2 changes: 1 addition & 1 deletion examples/templates/docker-with-dotfiles/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ terraform {
required_providers {
coder = {
source = "coder/coder"
version = "0.5.0"
version = "0.5.2"
}
docker = {
source = "kreuzwerker/docker"
Expand Down
13 changes: 8 additions & 5 deletions examples/templates/docker/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ terraform {
required_providers {
coder = {
source = "coder/coder"
version = "0.5.0"
version = "0.5.2"
}
docker = {
source = "kreuzwerker/docker"
Expand Down Expand Up @@ -43,10 +43,13 @@ resource "coder_agent" "main" {
}

resource "coder_app" "code-server" {
agent_id = coder_agent.main.id
name = "code-server"
url = "http://localhost:13337/?folder=/home/coder"
icon = "/icon/code.svg"
agent_id = coder_agent.main.id
name = "code-server"
url = "http://localhost:13337/?folder=/home/coder"
icon = "/icon/code.svg"
subdomain = false
share = "owner"

healthcheck {
url = "http://localhost:13337/healthz"
interval = 5
Expand Down
3 changes: 2 additions & 1 deletion examples/templates/gcp-linux/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ terraform {
required_providers {
coder = {
source = "coder/coder"
version = "0.5.0"
version = "0.5.2"
}
google = {
source = "hashicorp/google"
Expand Down Expand Up @@ -65,6 +65,7 @@ resource "coder_app" "code-server" {
icon = "/icon/code.svg"
url = "http://localhost:13337?folder=/home/coder"
subdomain = false
share = "owner"

healthcheck {
url = "http://localhost:13337/healthz"
Expand Down
3 changes: 2 additions & 1 deletion examples/templates/gcp-vm-container/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ terraform {
required_providers {
coder = {
source = "coder/coder"
version = "0.5.0"
version = "0.5.2"
}
google = {
source = "hashicorp/google"
Expand Down Expand Up @@ -55,6 +55,7 @@ resource "coder_app" "code-server" {
icon = "/icon/code.svg"
url = "http://localhost:13337?folder=/home/coder"
subdomain = false
share = "owner"

healthcheck {
url = "http://localhost:13337/healthz"
Expand Down
2 changes: 1 addition & 1 deletion examples/templates/gcp-windows/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ terraform {
required_providers {
coder = {
source = "coder/coder"
version = "0.5.0"
version = "0.5.2"
}
google = {
source = "hashicorp/google"
Expand Down
3 changes: 2 additions & 1 deletion examples/templates/kubernetes/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ terraform {
required_providers {
coder = {
source = "coder/coder"
version = "0.5.0"
version = "0.5.2"
}
kubernetes = {
source = "hashicorp/kubernetes"
Expand Down Expand Up @@ -76,6 +76,7 @@ resource "coder_app" "code-server" {
icon = "/icon/code.svg"
url = "http://localhost:13337?folder=/home/coder"
subdomain = false
share = "owner"

healthcheck {
url = "http://localhost:13337/healthz"
Expand Down
2 changes: 1 addition & 1 deletion provisionersdk/proto/provisioner.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.