You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
description: The goal is to enable code-server (VS Code in a browser)
4
+
tags: [cloud, kubernetes]
5
+
---
6
+
7
+
# code-server (VS Code) template for a workspace in a GKE pod
8
+
9
+
### Apps included
10
+
11
+
1. A web-based terminal
12
+
1. VS Code IDE in a browwser (Coder's `code-server` project)
13
+
14
+
### Additional input variables and bash scripting
15
+
16
+
1. Prompt user and clone/install a dotfiles repository (for personalization settings)
17
+
1. Prompt user for compute options (CPU core, memory, and disk)
18
+
1. Prompt user for container image to use
19
+
1. Prompt user for repo to clone
20
+
1. Clone source code repo
21
+
1. Download, install and start latest code-server (VS Code-in-a-browser)
22
+
1. Download, install and start file-browser to show the contents of the `/home/coder` as a `coder_app` and web icon
23
+
1. Add the Access URL and user's Coder session token in the workspace to use the Coder CLI
24
+
25
+
### Images/languages to choose from
26
+
27
+
1. NodeJS
28
+
1. Golang
29
+
1. Java
30
+
1. Base (for Rust and Python)
31
+
32
+
> Note that Rust is installed during the startup script for `~/` configuration
33
+
34
+
### IDE use
35
+
36
+
1. While the purpose of this template is to show `code-server` and VS Code in a browser, you can also use the `VS Code Desktop` to download Coder's VS Code extension and the Coder CLI to remotely connect to your Coder workspace from your local installation of VS Code.
37
+
38
+
### Parameters
39
+
40
+
Parameters allow users who create workspaces to additional information required in the workspace build. This template will prompt the user for:
41
+
42
+
1. A Dotfiles repository for workspace personalization `data "coder_parameter" "dotfiles_url"`
43
+
2. The size of the persistent volume claim or `/home/coder` directory `data "coder_parameter" "pvc"`
0 commit comments