@@ -42,53 +42,54 @@ Web or using the workspace's terminal.
42
42
➜ ls -l
43
43
-rw-r--r-- 1 coder coder 0 Aug 1 19:23 Dockerfile
44
44
-rw-r--r-- 1 coder coder 8925314 Aug 1 19:40 GitHub.copilot.vsix
45
- ```
45
+ ```
46
46
47
47
1 . In the Dockerfile, add instructions to make a folder and to copy the ` vsix `
48
48
files into the newly created folder.
49
49
50
- ` ` ` Dockerfile
51
- FROM codercom/enterprise-base:ubuntu
50
+ ``` Dockerfile
51
+ FROM codercom/enterprise-base:ubuntu
52
52
53
- # Run below commands as root user
54
- USER root
53
+ # Run below commands as root user
54
+ USER root
55
55
56
- # Download and install VS Code extensions into the container
57
- RUN mkdir -p /vsix
58
- ADD ./GitHub.copilot.vsix /vsix
56
+ # Download and install VS Code extensions into the container
57
+ RUN mkdir -p /vsix
58
+ ADD ./GitHub.copilot.vsix /vsix
59
59
60
- USER coder
61
- ` ` `
60
+ USER coder
61
+ ```
62
62
63
63
1 . Build the custom image, and push it to your image registry.
64
64
65
- 1. Pass in the image and below command into your template ` startup_script` (be sure to update the filename below):
66
-
67
- ** Startup Script**
68
-
69
- ` ` ` hcl
70
- resource " coder_agent" " main" {
71
- ...
72
- startup_script = " code-server --install-extension /vsix/Github.copilot.vsix"
73
- }
74
- ` ` `
75
-
76
- ** Image Definition**
77
-
78
- ` ` ` hcl
79
- resource " kubernetes_deployment" " main" {
80
- spec {
81
- template {
82
- spec {
83
- container {
84
- name = " dev"
85
- image = " registry.internal/image-name:tag"
86
- }
87
- }
88
- }
89
- }
90
- }
91
- ` ` `
65
+ 1 . Pass in the image and below command into your template ` startup_script ` (be
66
+ sure to update the filename below):
67
+
68
+ ** Startup Script**
69
+
70
+ ``` hcl
71
+ resource "coder_agent" "main" {
72
+ ...
73
+ startup_script = "code-server --install-extension /vsix/Github.copilot.vsix"
74
+ }
75
+ ```
76
+
77
+ ** Image Definition**
78
+
79
+ ``` hcl
80
+ resource "kubernetes_deployment" "main" {
81
+ spec {
82
+ template {
83
+ spec {
84
+ container {
85
+ name = "dev"
86
+ image = "registry.internal/image-name:tag"
87
+ }
88
+ }
89
+ }
90
+ }
91
+ }
92
+ ```
92
93
93
94
1 . Create a workspace using the template.
94
95
@@ -121,8 +122,9 @@ SERVICE_URL=https://open-vsx.org/vscode/gallery ITEM_URL=https://open-vsx.org/vs
121
122
122
123
## Using VS Code Desktop
123
124
124
- For your local VS Code to pickup extension files in your Coder workspace, include this command
125
- in your ` startup_script` , or run in manually in your workspace terminal:
125
+ For your local VS Code to pickup extension files in your Coder workspace,
126
+ include this command in your ` startup_script ` , or run in manually in your
127
+ workspace terminal:
126
128
127
129
``` console
128
130
code --extensions-dir ~/.vscode-server/extensions --install-extension "$extension"
0 commit comments