Skip to content

Commit 4108ab6

Browse files
author
Aurang
authored
Update configuring_environment.md
1 parent e75424c commit 4108ab6

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

guides/configuring_environment.md

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ You can also use Ctrl+Shift+X to bring it up
5151
> NOTE: Extensions installed using this method will not persist between container rebuilds
5252
5353
2. Installing using vscode integrated terminal<br>
54-
You can install extensions by using the built-in terminal in code-server. Use Ctrl+J to bring up the panel and select the terminal tab. Or you can use Ctrl+\`
54+
You can install extensions by using the built-in terminal in code-server. Use Ctrl+J to bring up the panel and select the terminal tab. Or you can use Ctrl+\`<br>
5555
The command for installing extensions is:
5656
```shell
5757
code-server --install-extension ms-python.python
@@ -60,3 +60,19 @@ code-server --install-extension ms-python.python --install-extension redhat.vsco
6060
```
6161
> NOTE: Extensions installed using this method will not persist between container rebuilds
6262
63+
3. Installing in entrypoint.sh<br>
64+
You can add this command before or after the last line in entrypoint.sh to automatically install extensions in between container rebuilds
65+
```shell
66+
/usr/bin/entrypoint.sh --install-extension ms-python.python
67+
# or to install multiple
68+
/usr/bin/entrypoint.sh --install-extension ms-python.python --install-extension redhat.vscode-yaml
69+
# alternate method to install multiple
70+
/usr/bin/entrypoint.sh --install-extension ms-python.python
71+
/usr/bin/entrypoint.sh --install-extension redhat.vscode-yaml
72+
```
73+
#### Installing before vs after launching code-server.<br>
74+
If you install the extensions before running code-server, then you will need to wait for the installation process to finish before you are able to use code-server. During this time, you will get 502 Bad Gateway.<br>
75+
<br>
76+
If you install after running code-server, you will be able to use code-server but will need to refresh to use extensions after they are installed.
77+
> NOTE: While technically extensions installed using this method will NOT PERSIST bewtween container rebuilds, they will automatically be reinstalled
78+
> NOTE: These extensions are installed User-wide

0 commit comments

Comments
 (0)