mirror of
https://github.com/TrezOne/docker-mods-uptime-kuma-timeout-fix.git
synced 2026-06-18 06:13:17 -04:00
Docker mod for installing Subversion + SVN extension into code-server container.
This commit is contained in:
@@ -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:
|
||||
|
||||
@@ -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`
|
||||
|
||||
@@ -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
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user