Skip to content

Commit f7e88bd

Browse files
greyscaledKatie Horne
and
Katie Horne
authored
fix(workspaces): add and arrange missing env vars (coder#643)
Co-authored-by: Katie Horne <katie@coder.com>
1 parent 26dd8fe commit f7e88bd

File tree

1 file changed

+20
-11
lines changed

1 file changed

+20
-11
lines changed

workspaces/variables.md

Lines changed: 20 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ env | grep CODER_
1515
```
1616

1717
## Available environment variables
18-
18+
<!-- markdownlint-disable MD044 -->
1919
<table>
2020
<tr>
2121
<th>Environment variable</th>
@@ -33,6 +33,19 @@ env | grep CODER_
3333
<td><code>CODER_USERNAME</code></td>
3434
<td>Your user name</td>
3535
</tr>
36+
<tr>
37+
<td><code>CODER_URL</code></td>
38+
<td>The base URL of your Coder deployment</td>
39+
</tr>
40+
<tr>
41+
<td><code>CODER_WP_NAME</code></td>
42+
<td>The name of the workspace provider hosting the workspace</td>
43+
</tr>
44+
<tr>
45+
<td><code>CODER_ASSETS_ROOT</code></td>
46+
<td>The directory where coder adds Coder-specific assets during
47+
workspace creation, such as the <code>coder-cli</code> binary</td>
48+
</tr>
3649
<tr>
3750
<td><code>CODER_CPU_LIMIT</code></td>
3851
<td>The CPU core limit given to your workspace</td>
@@ -49,18 +62,14 @@ env | grep CODER_
4962
<td><code>CODER_IMAGE_DIGEST</code></td>
5063
<td>The content-addressable identifier for your image</td>
5164
</tr>
52-
<tr>
53-
<td><code>CODER_IMAGE_URI</code></td>
54-
<td>The URI for the image used to build the workspace</td>
55-
</tr>
56-
<tr>
57-
<td><code>CODER_WP_NAME</code></td>
58-
<td>The name of the workspace provider hosting the environment</td>
59-
</tr>
6065
<tr>
6166
<td><code>CODER_RUNTIME</code></td>
6267
<td>The container runtime used to start the workspace (either
63-
`kubernetes/default` or `kubernetes/sysbox` if the workspace
64-
is a CVM</td>
68+
<code>kubernetes/default</code> or <code>kubernetes/sysbox</code>
69+
if the workspace is a CVM</td>
70+
</tr>
71+
<tr>
72+
<td><code>CODER_IMAGE_URI</code></td>
73+
<td>The URI of the image used to build the workspace</td>
6574
</tr>
6675
</table>

0 commit comments

Comments
 (0)