From fe2fc450b731f8160f95a85e53061ec2dcffe4e3 Mon Sep 17 00:00:00 2001 From: Muhammad Atif Ali Date: Fri, 31 Mar 2023 10:23:51 +0300 Subject: [PATCH 01/21] Add render deployment --- render.yaml | 25 +++++++++++++++++++++++++ render/Dockerfile | 8 ++++++++ 2 files changed, 33 insertions(+) create mode 100644 render.yaml create mode 100644 render/Dockerfile diff --git a/render.yaml b/render.yaml new file mode 100644 index 0000000..8492181 --- /dev/null +++ b/render.yaml @@ -0,0 +1,25 @@ +# Coder Servive +services: + - type: web + name: coder + env: docker + autoDeploy: false + plan: starter + rootDir: render + dockerfilePath: ./render/Dockerfile + dockerContext: ./render + healthCheckPath: /healthz + envVars: + - key: CODER_PG_CONNECTION_URL + fromDatabase: + name: coder + property: connectionString + - key: RENDER_HOST + fromService: + name: coder + type: web + property: host +# Postgress Datbase +databases: + - name: coder + postgresMajorVersion: 15 diff --git a/render/Dockerfile b/render/Dockerfile new file mode 100644 index 0000000..90bf4fe --- /dev/null +++ b/render/Dockerfile @@ -0,0 +1,8 @@ +FROM ghcr.io/coder/coder:v0.19.2 +ARG RENDER_HOST +ENV CODER_HTTP_ADDRESS=0.0.0.0:3000 +ENV CODER_ACCESS_URL=https://${RENDER_HOST}.onrender.com +ENV CODER_WILDCARD_ACCESS_URL=*.${RENDER_HOST}.onrender.com +ENV CODER_EXPERIMENTS=* +ENV CODER_TELEMETRY_INSTALL_SOURCE=render.com +ENV CODER_DEBUG=true From 000c8bd72b7b9a732481532f192902a805309bd0 Mon Sep 17 00:00:00 2001 From: Muhammad Atif Ali Date: Fri, 31 Mar 2023 10:43:13 +0300 Subject: [PATCH 02/21] remove docker filepath --- render.yaml | 2 -- 1 file changed, 2 deletions(-) diff --git a/render.yaml b/render.yaml index 8492181..26d43e2 100644 --- a/render.yaml +++ b/render.yaml @@ -6,8 +6,6 @@ services: autoDeploy: false plan: starter rootDir: render - dockerfilePath: ./render/Dockerfile - dockerContext: ./render healthCheckPath: /healthz envVars: - key: CODER_PG_CONNECTION_URL From 5d70132fdff05831d997d37ce6ef2bd5e3b0aac7 Mon Sep 17 00:00:00 2001 From: Muhammad Atif Ali Date: Fri, 31 Mar 2023 10:47:32 +0300 Subject: [PATCH 03/21] add Deploy to Render button --- README.md | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 9d73eb7..97517e7 100644 --- a/README.md +++ b/README.md @@ -2,10 +2,11 @@ Install [Coder](https://github.com/coder/coder) to your preferred cloud with a pre-built package. -| Logo | Platform Name | Status | Documentation | Deploy | -| ------------------------------------------------------------------------------------------------------ | --------------------- | ----------- | ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------ | -| AWS EC2 Logo | AWS EC2 | Live ✅ | [Quickstart: AWS](https://coder.com/docs/v2/latest/quickstart/aws) | [Deploy from AWS Marketplace](https://aws.amazon.com/marketplace/pp/prodview-5gxjyur2vc7rg?sr=0-2&ref_=beagle&applicationId=AWSMPContessa) | -| Fly.io Logo | Fly.io | Live ✅ | [Blog: Run Coder on Fly.io](https://coder.com/blog/remote-developer-environments-on-fly-io) | [Deploy Coder on FLy.io](https://coder.com/blog/remote-developer-environments-on-fly-io) | -| Railway.app Logo | Railway.app | Live ✅ | | [![Deploy on Railway](https://railway.app/button.svg)](https://railway.app/template/cUQ8_P?referralCode=tfH8Uw) | -| AWS EKS Logo | AWS EKS | In progress | [Docs: Coder on Kubernetes](https://coder.com/docs/v2/latest/install/kubernetes) | [Deploy from AWS Marketplace](https://example.com) | -| Google Compute Engine logo | Google Compute Engine | Considering | [Quickstart: Google Compute Engine](https://coder.com/docs/v2/latest/quickstart/google-cloud-platform) | | +| Logo | Platform Name | Status | Documentation | Deploy | +| ------------------------------------------------------------------------------------------------------ | --------------------- | ----------- | ------------------------------------------------------------------------------------------------------ | ---------------------------------------------------------------------------------------------------------------------------------------------- | +| AWS EC2 Logo | AWS EC2 | Live ✅ | [Quickstart: AWS](https://coder.com/docs/v2/latest/quickstart/aws) | [Deploy from AWS Marketplace](https://aws.amazon.com/marketplace/pp/prodview-5gxjyur2vc7rg?sr=0-2&ref_=beagle&applicationId=AWSMPContessa) | +| Fly.io Logo | Fly.io | Live ✅ | [Blog: Run Coder on Fly.io](https://coder.com/blog/remote-developer-environments-on-fly-io) | [Deploy Coder on FLy.io](https://coder.com/blog/remote-developer-environments-on-fly-io) | +| Railway.app Logo | Railway.app | Live ✅ | | [![Deploy on Railway](https://railway.app/button.svg)](https://railway.app/template/cUQ8_P?referralCode=tfH8Uw) | +| Render.com Logo | Render.com | Live ✅ | | [![Deploy to Render](https://render.com/images/deploy-to-render-button.svg)](https://render.com/deploy?repo=https://github.com/coder/packages) | +| AWS EKS Logo | AWS EKS | In progress | [Docs: Coder on Kubernetes](https://coder.com/docs/v2/latest/install/kubernetes) | [Deploy from AWS Marketplace](https://example.com) | +| Google Compute Engine logo | Google Compute Engine | Considering | [Quickstart: Google Compute Engine](https://coder.com/docs/v2/latest/quickstart/google-cloud-platform) | | From 4e4d3aabb9e81d4dad43574485f93467c64e12bb Mon Sep 17 00:00:00 2001 From: Muhammad Atif Ali Date: Fri, 31 Mar 2023 12:36:10 +0300 Subject: [PATCH 04/21] update coder image to latest --- render/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/render/Dockerfile b/render/Dockerfile index 90bf4fe..abd4f85 100644 --- a/render/Dockerfile +++ b/render/Dockerfile @@ -1,4 +1,4 @@ -FROM ghcr.io/coder/coder:v0.19.2 +FROM ghcr.io/coder/coder:latest ARG RENDER_HOST ENV CODER_HTTP_ADDRESS=0.0.0.0:3000 ENV CODER_ACCESS_URL=https://${RENDER_HOST}.onrender.com From d809e05f76283103674359b1a0c4fa3d78ba6c12 Mon Sep 17 00:00:00 2001 From: Muhammad Atif Ali Date: Fri, 31 Mar 2023 12:36:30 +0300 Subject: [PATCH 05/21] fix version --- render/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/render/Dockerfile b/render/Dockerfile index abd4f85..39b7952 100644 --- a/render/Dockerfile +++ b/render/Dockerfile @@ -1,4 +1,4 @@ -FROM ghcr.io/coder/coder:latest +FROM ghcr.io/coder/coder:0.21.2 ARG RENDER_HOST ENV CODER_HTTP_ADDRESS=0.0.0.0:3000 ENV CODER_ACCESS_URL=https://${RENDER_HOST}.onrender.com From 6b6197fa700c27290ed3a3e749c742bba948a31f Mon Sep 17 00:00:00 2001 From: Muhammad Atif Ali Date: Fri, 31 Mar 2023 12:38:43 +0300 Subject: [PATCH 06/21] fix typo --- render/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/render/Dockerfile b/render/Dockerfile index 39b7952..8a6167f 100644 --- a/render/Dockerfile +++ b/render/Dockerfile @@ -1,4 +1,4 @@ -FROM ghcr.io/coder/coder:0.21.2 +FROM ghcr.io/coder/coder:v0.21.2 ARG RENDER_HOST ENV CODER_HTTP_ADDRESS=0.0.0.0:3000 ENV CODER_ACCESS_URL=https://${RENDER_HOST}.onrender.com From f456982be8a1f758598c683f67a674ea68448813 Mon Sep 17 00:00:00 2001 From: Muhammad Atif Ali Date: Fri, 31 Mar 2023 16:19:34 +0300 Subject: [PATCH 07/21] remove wildcard from Dockerfile --- render/Dockerfile | 1 - 1 file changed, 1 deletion(-) diff --git a/render/Dockerfile b/render/Dockerfile index 8a6167f..cf65b15 100644 --- a/render/Dockerfile +++ b/render/Dockerfile @@ -2,7 +2,6 @@ FROM ghcr.io/coder/coder:v0.21.2 ARG RENDER_HOST ENV CODER_HTTP_ADDRESS=0.0.0.0:3000 ENV CODER_ACCESS_URL=https://${RENDER_HOST}.onrender.com -ENV CODER_WILDCARD_ACCESS_URL=*.${RENDER_HOST}.onrender.com ENV CODER_EXPERIMENTS=* ENV CODER_TELEMETRY_INSTALL_SOURCE=render.com ENV CODER_DEBUG=true From 4bb1b58cc5f10026d253cc60315d7846d1907183 Mon Sep 17 00:00:00 2001 From: Muhammad Atif Ali Date: Fri, 7 Apr 2023 13:03:49 +0300 Subject: [PATCH 08/21] Update Dockerfile --- render/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/render/Dockerfile b/render/Dockerfile index cf65b15..03c3f0a 100644 --- a/render/Dockerfile +++ b/render/Dockerfile @@ -1,4 +1,4 @@ -FROM ghcr.io/coder/coder:v0.21.2 +FROM ghcr.io/coder/coder:v0.22.0 ARG RENDER_HOST ENV CODER_HTTP_ADDRESS=0.0.0.0:3000 ENV CODER_ACCESS_URL=https://${RENDER_HOST}.onrender.com From 92f0d01a928e26b1292e34ff2f0b787a775693bd Mon Sep 17 00:00:00 2001 From: Muhammad Atif Ali Date: Tue, 11 Apr 2023 16:26:13 +0300 Subject: [PATCH 09/21] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 97517e7..13627ef 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,7 @@ Install [Coder](https://github.com/coder/coder) to your preferred cloud with a p | ------------------------------------------------------------------------------------------------------ | --------------------- | ----------- | ------------------------------------------------------------------------------------------------------ | ---------------------------------------------------------------------------------------------------------------------------------------------- | | AWS EC2 Logo | AWS EC2 | Live ✅ | [Quickstart: AWS](https://coder.com/docs/v2/latest/quickstart/aws) | [Deploy from AWS Marketplace](https://aws.amazon.com/marketplace/pp/prodview-5gxjyur2vc7rg?sr=0-2&ref_=beagle&applicationId=AWSMPContessa) | | Fly.io Logo | Fly.io | Live ✅ | [Blog: Run Coder on Fly.io](https://coder.com/blog/remote-developer-environments-on-fly-io) | [Deploy Coder on FLy.io](https://coder.com/blog/remote-developer-environments-on-fly-io) | -| Railway.app Logo | Railway.app | Live ✅ | | [![Deploy on Railway](https://railway.app/button.svg)](https://railway.app/template/cUQ8_P?referralCode=tfH8Uw) | +| Railway.app Logo | Railway.app | Live ✅ | | [![Deploy on Railway](https://railway.app/button.svg)](https://railway.app/template/cUQ8_P?referralCode=tfH8Uw) | | Render.com Logo | Render.com | Live ✅ | | [![Deploy to Render](https://render.com/images/deploy-to-render-button.svg)](https://render.com/deploy?repo=https://github.com/coder/packages) | | AWS EKS Logo | AWS EKS | In progress | [Docs: Coder on Kubernetes](https://coder.com/docs/v2/latest/install/kubernetes) | [Deploy from AWS Marketplace](https://example.com) | | Google Compute Engine logo | Google Compute Engine | Considering | [Quickstart: Google Compute Engine](https://coder.com/docs/v2/latest/quickstart/google-cloud-platform) | | From b36ae36e5a65f0e7afe9c78041a1e26b526e744a Mon Sep 17 00:00:00 2001 From: Muhammad Atif Ali Date: Tue, 11 Apr 2023 16:42:31 +0300 Subject: [PATCH 10/21] add render.logo --- README.md | 16 ++++++++-------- assets/render.png | Bin 0 -> 1320 bytes 2 files changed, 8 insertions(+), 8 deletions(-) create mode 100644 assets/render.png diff --git a/README.md b/README.md index 13627ef..ad8b085 100644 --- a/README.md +++ b/README.md @@ -2,11 +2,11 @@ Install [Coder](https://github.com/coder/coder) to your preferred cloud with a pre-built package. -| Logo | Platform Name | Status | Documentation | Deploy | -| ------------------------------------------------------------------------------------------------------ | --------------------- | ----------- | ------------------------------------------------------------------------------------------------------ | ---------------------------------------------------------------------------------------------------------------------------------------------- | -| AWS EC2 Logo | AWS EC2 | Live ✅ | [Quickstart: AWS](https://coder.com/docs/v2/latest/quickstart/aws) | [Deploy from AWS Marketplace](https://aws.amazon.com/marketplace/pp/prodview-5gxjyur2vc7rg?sr=0-2&ref_=beagle&applicationId=AWSMPContessa) | -| Fly.io Logo | Fly.io | Live ✅ | [Blog: Run Coder on Fly.io](https://coder.com/blog/remote-developer-environments-on-fly-io) | [Deploy Coder on FLy.io](https://coder.com/blog/remote-developer-environments-on-fly-io) | -| Railway.app Logo | Railway.app | Live ✅ | | [![Deploy on Railway](https://railway.app/button.svg)](https://railway.app/template/cUQ8_P?referralCode=tfH8Uw) | -| Render.com Logo | Render.com | Live ✅ | | [![Deploy to Render](https://render.com/images/deploy-to-render-button.svg)](https://render.com/deploy?repo=https://github.com/coder/packages) | -| AWS EKS Logo | AWS EKS | In progress | [Docs: Coder on Kubernetes](https://coder.com/docs/v2/latest/install/kubernetes) | [Deploy from AWS Marketplace](https://example.com) | -| Google Compute Engine logo | Google Compute Engine | Considering | [Quickstart: Google Compute Engine](https://coder.com/docs/v2/latest/quickstart/google-cloud-platform) | | +| Logo | Platform Name | Status | Documentation | Deploy | +| ---------------------------------------------------------------------------------------- | --------------------- | ----------- | ------------------------------------------------------------------------------------------------------ | ---------------------------------------------------------------------------------------------------------------------------------------------- | +| AWS EC2 Logo | AWS EC2 | Live ✅ | [Quickstart: AWS](https://coder.com/docs/v2/latest/quickstart/aws) | [Deploy from AWS Marketplace](https://aws.amazon.com/marketplace/pp/prodview-5gxjyur2vc7rg?sr=0-2&ref_=beagle&applicationId=AWSMPContessa) | +| Fly.io Logo | Fly.io | Live ✅ | [Blog: Run Coder on Fly.io](https://coder.com/blog/remote-developer-environments-on-fly-io) | [Deploy Coder on FLy.io](https://coder.com/blog/remote-developer-environments-on-fly-io) | +| Railway.app Logo | Railway.app | Live ✅ | | [![Deploy on Railway](https://railway.app/button.svg)](https://railway.app/template/cUQ8_P?referralCode=tfH8Uw) | +| Render.com Logo | Render.com | Live ✅ | | [![Deploy to Render](https://render.com/images/deploy-to-render-button.svg)](https://render.com/deploy?repo=https://github.com/coder/packages) | +| AWS EKS Logo | AWS EKS | In progress | [Docs: Coder on Kubernetes](https://coder.com/docs/v2/latest/install/kubernetes) | [Deploy from AWS Marketplace](https://example.com) | +| Google Compute Engine logo | Google Compute Engine | Considering | [Quickstart: Google Compute Engine](https://coder.com/docs/v2/latest/quickstart/google-cloud-platform) | | diff --git a/assets/render.png b/assets/render.png new file mode 100644 index 0000000000000000000000000000000000000000..1e73c424ae105bcf90663bf677e9b9ba6b5f7da2 GIT binary patch literal 1320 zcmV+@1=spgNk&E>1pok7MM6+kP&iB!1pojqYr$F&XXiMQB&o^fasvO&`1m%ReK-Yoe;?Q1u1_xhrQM$;&^Vu zYu{*D`pb4EEh7vm9Sjf)OldIcDBTlx;)=-9QmWnd; z@SLi9MoCMHsqiJ+m477yOq{sG^h&Ez?mssb}nyFIln1vDHhq zYWW7%@#Hc}V-7o?HDY*E*Pno_WW{rrLZ;ZP}A z#d<>=D-|j3SkdyyW7M%*84g0Wr)FUE%+d!Sv?N9ylbA6Kg)FtCcw^}kh7~dDSldiu zC}ycmg#V(S$L?duGnt{drM40J!dJ&eDEKe@L%xXe{&ctHhyIQ literal 0 HcmV?d00001 From 3dccada881da151107cb4bff868ebb6d6b19bbd4 Mon Sep 17 00:00:00 2001 From: Muhammad Atif Ali Date: Wed, 12 Apr 2023 09:48:32 +0300 Subject: [PATCH 11/21] Create README.md --- render/README.md | 47 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 render/README.md diff --git a/render/README.md b/render/README.md new file mode 100644 index 0000000..8985c63 --- /dev/null +++ b/render/README.md @@ -0,0 +1,47 @@ +[Coder](https://coder.com) enables organizations to set up development environments in the cloud. Environments are defined with Terraform, connected through a secure high-speed Wireguard® tunnel, and are automatically shut down when not in use to save on costs. Coder gives engineering teams the flexibility to use the cloud for workloads that are most beneficial to them. + +- Define development environments in Terraform + - EC2 VMs, Kubernetes Pods, Docker Containers, etc. +- Automatically shutdown idle resources to save on costs +- Onboard developers in seconds instead of days + +## Quickstart + +### 1. Fill the environment variables + +The current version of the template allows you to set an optional environment variable, `CODER_WILDCARD_ACCESS_URL` which will allow you to forward ports from your workspace to a custom wildcard subdomain of the URL you provide. This is useful if you want to access a service running in your workspace from a browser. For example, if you set `CODER_WILDCARD_ACCESS_URL` to `*.coder.example.com`, you can access a service running on port 8080 in your workspace by visiting `8080--app-name-workspace-name-.coder.example.com` in your browser. + +> Note: This is an optional step. If you do not set this variable, you cannot access services running in your workspace from a browser. You must use a custom domain with Render and cannot use Render's built-in domain for this wildcard. + +> Note: You can set environment variables by going to _Dashboard > Coder (Service) > Settings > Environment Variables_. See our [docs](https://coder.com/docs/v2/latest/cli/server) for more information on environment variables that can be set. + +### 2. Attach a custom domain + +Your Coder deployment will always be accessible at `https://app-name.up.railway.app`. If you want to use a custom domain, you can go to Dashboard > Coder (Service) > Settings > Custom Domains and add your domain and optionally a wildcard subdomain if you specified `CODER_WILDCARD_ACCESS_URL` in the previous step. + +### 3. Create your first user + +Create your first user by going to `https://app-name.onrender.com` or your custom domain. + +![Welcome to Coder](https://raw.githubusercontent.com/coder/blogs/main/posts/coder-on-railway/static/coder_setup.png) + +### 3. Create your first template + +[**Templates**](https://coder.com/docs/v2/latest/templates): Templates are written in Terraform and describe the infrastructure for workspaces. Coder provides a set of starter templates to help you get started. + +Choose a template to set up your first workspace. You can also [create your own templates](https://coder.com/docs/v2/latest/templates) to define your custom infrastructure with your preferred cloud provider. +![starter templates](https://raw.githubusercontent.com/coder/blogs/main/posts/coder-on-railway/static/starter_templates_welcome.png) + +### 4. Create your first workspace + +[**Workspaces**](https://coder.com/docs/v2/latest/workspaces): Workspaces contain the IDEs, dependencies, and configuration information needed for software development. You can create workspaces from templates. Here wea are showing the workspaces created from the Fly.io starter template in action. +![fly.io workspace](https://raw.githubusercontent.com/coder/blogs/main/posts/coder-on-railway/static/fly_workspace.png) + +- [**Coder on GitHub**](https://github.com/coder/coder) +- [**Coder docs**](https://coder.com/docs/v2) +- [**VS Code Extension**](https://marketplace.visualstudio.com/items?itemName=coder.coder-remote): Open any Coder workspace in VS Code with a single click +- [**JetBrains Gateway Extension**](https://plugins.jetbrains.com/plugin/19620-coder): Open any Coder workspace in JetBrains Gateway with a single click + +- [**Coder GitHub Action**](https://github.com/marketplace/actions/update-coder-template): A GitHub Action that updates Coder templates +- [**Various Templates**](https://github.com/coder/coder/examples/templates/community-templates.md): Hetzner Cloud, Docker in Docker, and other templates the community has built. +- [![Coder discord](https://img.shields.io/discord/747933592273027093?label=discord)](https://discord.gg/coder) From ec79fa99d281f45d57670e41aaead05c059a2dd6 Mon Sep 17 00:00:00 2001 From: Muhammad Atif Ali Date: Wed, 12 Apr 2023 09:49:15 +0300 Subject: [PATCH 12/21] Update Dockerfile --- render/Dockerfile | 1 - 1 file changed, 1 deletion(-) diff --git a/render/Dockerfile b/render/Dockerfile index 03c3f0a..3a4c954 100644 --- a/render/Dockerfile +++ b/render/Dockerfile @@ -4,4 +4,3 @@ ENV CODER_HTTP_ADDRESS=0.0.0.0:3000 ENV CODER_ACCESS_URL=https://${RENDER_HOST}.onrender.com ENV CODER_EXPERIMENTS=* ENV CODER_TELEMETRY_INSTALL_SOURCE=render.com -ENV CODER_DEBUG=true From 07968b965077da4c0bd93a600ac89659af71b5b3 Mon Sep 17 00:00:00 2001 From: Muhammad Atif Ali Date: Wed, 12 Apr 2023 09:53:08 +0300 Subject: [PATCH 13/21] Update README.md --- render/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/render/README.md b/render/README.md index 8985c63..b53c629 100644 --- a/render/README.md +++ b/render/README.md @@ -17,7 +17,7 @@ The current version of the template allows you to set an optional environment va ### 2. Attach a custom domain -Your Coder deployment will always be accessible at `https://app-name.up.railway.app`. If you want to use a custom domain, you can go to Dashboard > Coder (Service) > Settings > Custom Domains and add your domain and optionally a wildcard subdomain if you specified `CODER_WILDCARD_ACCESS_URL` in the previous step. +Your Coder deployment will always be accessible at `https://app-name.onrender.com`. If you want to use a custom domain, you can go to Dashboard > Coder (Service) > Settings > Custom Domains and add your domain and optionally a wildcard subdomain if you specified `CODER_WILDCARD_ACCESS_URL` in the previous step. ### 3. Create your first user From 32ac74543d239795d0264fb07002e3885c87e691 Mon Sep 17 00:00:00 2001 From: Muhammad Atif Ali Date: Wed, 12 Apr 2023 09:54:50 +0300 Subject: [PATCH 14/21] Update render.yaml --- render.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/render.yaml b/render.yaml index 26d43e2..0bb78ce 100644 --- a/render.yaml +++ b/render.yaml @@ -17,6 +17,8 @@ services: name: coder type: web property: host + - key: CODER_WILDCARD_ACCESS_URL + sync: false # Postgress Datbase databases: - name: coder From 40a0a68cfff193e8c3001e5949470743cf34ea91 Mon Sep 17 00:00:00 2001 From: Muhammad Atif Ali Date: Wed, 12 Apr 2023 10:21:02 +0300 Subject: [PATCH 15/21] Update render.yaml --- render.yaml | 2 -- 1 file changed, 2 deletions(-) diff --git a/render.yaml b/render.yaml index 0bb78ce..26d43e2 100644 --- a/render.yaml +++ b/render.yaml @@ -17,8 +17,6 @@ services: name: coder type: web property: host - - key: CODER_WILDCARD_ACCESS_URL - sync: false # Postgress Datbase databases: - name: coder From 798ab7d9c5e019cbaee88aaf80748a611aaa16c2 Mon Sep 17 00:00:00 2001 From: Muhammad Atif Ali Date: Wed, 12 Apr 2023 11:05:44 +0300 Subject: [PATCH 16/21] Update README.md --- render/README.md | 31 +++++++++++++++++++------------ 1 file changed, 19 insertions(+), 12 deletions(-) diff --git a/render/README.md b/render/README.md index b53c629..a2202ff 100644 --- a/render/README.md +++ b/render/README.md @@ -7,23 +7,15 @@ ## Quickstart -### 1. Fill the environment variables +### 1. Deploy using the Deploy on Render Button -The current version of the template allows you to set an optional environment variable, `CODER_WILDCARD_ACCESS_URL` which will allow you to forward ports from your workspace to a custom wildcard subdomain of the URL you provide. This is useful if you want to access a service running in your workspace from a browser. For example, if you set `CODER_WILDCARD_ACCESS_URL` to `*.coder.example.com`, you can access a service running on port 8080 in your workspace by visiting `8080--app-name-workspace-name-.coder.example.com` in your browser. +[![Deploy to Render](https://render.com/images/deploy-to-render-button.svg)](https://render.com/deploy?repo=https://github.com/coder/packages) -> Note: This is an optional step. If you do not set this variable, you cannot access services running in your workspace from a browser. You must use a custom domain with Render and cannot use Render's built-in domain for this wildcard. - -> Note: You can set environment variables by going to _Dashboard > Coder (Service) > Settings > Environment Variables_. See our [docs](https://coder.com/docs/v2/latest/cli/server) for more information on environment variables that can be set. - -### 2. Attach a custom domain - -Your Coder deployment will always be accessible at `https://app-name.onrender.com`. If you want to use a custom domain, you can go to Dashboard > Coder (Service) > Settings > Custom Domains and add your domain and optionally a wildcard subdomain if you specified `CODER_WILDCARD_ACCESS_URL` in the previous step. - -### 3. Create your first user +### 2. Create your first user Create your first user by going to `https://app-name.onrender.com` or your custom domain. -![Welcome to Coder](https://raw.githubusercontent.com/coder/blogs/main/posts/coder-on-railway/static/coder_setup.png) +![Set up first user](https://user-images.githubusercontent.com/10648092/231393279-78a7eb27-ff93-4560-bdf1-f43c385a27c2.png) ### 3. Create your first template @@ -37,6 +29,21 @@ Choose a template to set up your first workspace. You can also [create your own [**Workspaces**](https://coder.com/docs/v2/latest/workspaces): Workspaces contain the IDEs, dependencies, and configuration information needed for software development. You can create workspaces from templates. Here wea are showing the workspaces created from the Fly.io starter template in action. ![fly.io workspace](https://raw.githubusercontent.com/coder/blogs/main/posts/coder-on-railway/static/fly_workspace.png) +## Optional + +### 1. Attach a custom domain + +Your Coder deployment will always be accessible at `https://app-name.onrender.com`. If you want to use a custom domain, you can go to Dashboard > Coder (Service) > Settings > Custom Domains and add your domain and optionally a wildcard subdomain of form `*.coder.example.com`. + +### 2. Enable port-forwarding for workspace apps + +Coder allows you to set an optional environment variable, `CODER_WILDCARD_ACCESS_URL` which lets you forward ports from your workspace to a custom wildcard subdomain of the URL you provide. This is useful if you want to access a service running in your workspace from a browser. For example, if you set `CODER_WILDCARD_ACCESS_URL` to `*.coder.example.com`, you can access a service running on port 8080 in your workspace by visiting `8080--app-name-workspace-name-.coder.example.com` in your browser. + + +> Note: This is an optional step. If you do not set this variable, you cannot access services running in your workspace from a browser. You must use a custom domain with Render and cannot use Render's built-in domain for this wildcard. + +> Note: You can set environment variables by going to _Dashboard > Coder (Service) > Settings > Environment > Environment Variables_. See our [docs](https://coder.com/docs/v2/latest/cli/server) for more information on environment variables that can be set. + - [**Coder on GitHub**](https://github.com/coder/coder) - [**Coder docs**](https://coder.com/docs/v2) - [**VS Code Extension**](https://marketplace.visualstudio.com/items?itemName=coder.coder-remote): Open any Coder workspace in VS Code with a single click From 52b6879fb7b69ae6abb7d290590d4977373dc034 Mon Sep 17 00:00:00 2001 From: Muhammad Atif Ali Date: Wed, 12 Apr 2023 11:14:41 +0300 Subject: [PATCH 17/21] Update README.md --- render/README.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/render/README.md b/render/README.md index a2202ff..8b0b733 100644 --- a/render/README.md +++ b/render/README.md @@ -44,6 +44,14 @@ Coder allows you to set an optional environment variable, `CODER_WILDCARD_ACCESS > Note: You can set environment variables by going to _Dashboard > Coder (Service) > Settings > Environment > Environment Variables_. See our [docs](https://coder.com/docs/v2/latest/cli/server) for more information on environment variables that can be set. +## Upgrade + +Coder is getting new features and improvmnets constantly and its it is suggested to stay on latest version. To upgrade, + +Go to _Dashboard > Coder (Service)_ and do a **Manual Deploy**. or alternativly turn on auto deployments in _Dashboard > Coder (Service) > Settings > Build & Deploy > Auto Deploy_. + +## Docs and resources + - [**Coder on GitHub**](https://github.com/coder/coder) - [**Coder docs**](https://coder.com/docs/v2) - [**VS Code Extension**](https://marketplace.visualstudio.com/items?itemName=coder.coder-remote): Open any Coder workspace in VS Code with a single click From 278bea03284c14ceba1dace330d95e9e4283de5a Mon Sep 17 00:00:00 2001 From: Muhammad Atif Ali Date: Mon, 24 Apr 2023 11:43:43 +0300 Subject: [PATCH 18/21] Update Dockerfile --- render/Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/render/Dockerfile b/render/Dockerfile index 3a4c954..8a1559e 100644 --- a/render/Dockerfile +++ b/render/Dockerfile @@ -1,6 +1,6 @@ -FROM ghcr.io/coder/coder:v0.22.0 +FROM ghcr.io/coder/coder:v0.22.2 ARG RENDER_HOST ENV CODER_HTTP_ADDRESS=0.0.0.0:3000 ENV CODER_ACCESS_URL=https://${RENDER_HOST}.onrender.com ENV CODER_EXPERIMENTS=* -ENV CODER_TELEMETRY_INSTALL_SOURCE=render.com +ENV CODER_TELEMETRY_INSTALL_SOURCE=render From 7bc8e040ac1a64864d6db1672fc5aed2572619c9 Mon Sep 17 00:00:00 2001 From: Muhammad Atif Ali Date: Mon, 24 Apr 2023 11:45:13 +0300 Subject: [PATCH 19/21] add render to dependabot --- .github/dependabot.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/dependabot.yml b/.github/dependabot.yml index c57a68b..6b70973 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -9,3 +9,8 @@ updates: directory: "heroku" schedule: interval: "daily" + + - package-ecosystem: "docker" + directory: "render" + schedule: + interval: "daily" From 49a940ff6107ee3ed4b5da5df99942d5ddd1eab2 Mon Sep 17 00:00:00 2001 From: Muhammad Atif Ali Date: Mon, 24 Apr 2023 11:46:06 +0300 Subject: [PATCH 20/21] remove healthcheck --- render.yaml | 1 - 1 file changed, 1 deletion(-) diff --git a/render.yaml b/render.yaml index 26d43e2..0badec7 100644 --- a/render.yaml +++ b/render.yaml @@ -6,7 +6,6 @@ services: autoDeploy: false plan: starter rootDir: render - healthCheckPath: /healthz envVars: - key: CODER_PG_CONNECTION_URL fromDatabase: From 8546b4413f7c3a5ca615065b69307cc5cd1de45a Mon Sep 17 00:00:00 2001 From: Muhammad Atif Ali Date: Mon, 24 Apr 2023 11:47:21 +0300 Subject: [PATCH 21/21] fix spellings --- render.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/render.yaml b/render.yaml index 0badec7..5d4f8d9 100644 --- a/render.yaml +++ b/render.yaml @@ -1,4 +1,4 @@ -# Coder Servive +# Coder Service services: - type: web name: coder @@ -16,7 +16,7 @@ services: name: coder type: web property: host -# Postgress Datbase +# Postgres Database databases: - name: coder postgresMajorVersion: 15