Docker mod for installing Subversion + SVN extension into code-server container.

This commit is contained in:
RoboMagus
2021-12-14 11:39:29 +01:00
parent a345eb8a9f
commit 7ca966a8ad
5 changed files with 16 additions and 23 deletions
+1 -1
View File
@@ -5,7 +5,7 @@ on: [push, pull_request, workflow_dispatch]
env:
ENDPOINT: "linuxserver/mods" #don't modify
BASEIMAGE: "code-server" #replace
MODNAME: "extension-arguments" #replace
MODNAME: "svn" #replace
jobs:
build:
+5 -7
View File
@@ -1,9 +1,7 @@
# Extension Arguments - Docker mod for code-server
# SVN - Docker mod for code-server
This mod installs code-server extensions at startup. The list of extensions to be installed should be provided using environment variable `VSCODE_EXTENSION_IDS` separated by `|`.
This mod installs subversion and the SVN extension into code-server at startup.
For example, to install the `vscode-docker` and `vscode-icons` extensions add the following lines to your docker compose service:
```yaml
- DOCKER_MODS=linuxserver/mods:code-server-docker|linuxserver/mods:code-server-extension-arguments
- VSCODE_EXTENSION_IDS=vscode-icons-team.vscode-icons|ms-azuretools.vscode-docker
```
In code-server docker arguments, set an environment variable `DOCKER_MODS=linuxserver/mods:code-server-svn`
If adding multiple mods, enter them in an array separated by `|`, such as `DOCKER_MODS=linuxserver/mods:code-server-python3|linuxserver/mods:code-server-svn`
+6
View File
@@ -0,0 +1,6 @@
#!/usr/bin/with-contenv bash
apt-get update
echo "**** installing subversion ****"
apt-get install -y subversion
@@ -1,15 +0,0 @@
#!/usr/bin/with-contenv bash
# Exit if no VsCode extensions are given
if [ -z ${VSCODE_EXTENSION_IDS+x} ]; then
echo "**** No VSCODE EXTENSIONS GIVEN****"
exit 0
fi
IFS='|'
VSCODE_EXTENSION_IDS=(${VSCODE_EXTENSION_IDS})
for ID in "${VSCODE_EXTENSION_IDS[@]}"; do
echo "**** installing extension: ${ID} ****"
code-server --user-data-dir /config/data --extensions-dir /config/extensions --install-extension ${ID}
done
+4
View File
@@ -0,0 +1,4 @@
#!/usr/bin/with-contenv bash
echo "**** installing SVN extension ****"
s6-setuidgid abc code-server --user-data-dir /config/data --extensions-dir /config/extensions --install-extension johnstoncode.svn-scm