mirror of
https://github.com/TrezOne/docker-mods-uptime-kuma-timeout-fix.git
synced 2026-07-18 08:48:27 -04:00
switch to hybrid
This commit is contained in:
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
This mod adds a Julia dev environment to code-server/openvscode-server, to be installed/updated during container start.
|
This mod adds a Julia dev environment to code-server/openvscode-server, to be installed/updated during container start.
|
||||||
|
|
||||||
In code-server docker arguments, set an environment variable `DOCKER_MODS=linuxserver/mods:code-server-julia`
|
In code-server/openvscode-server docker arguments, set an environment variable `DOCKER_MODS=linuxserver/mods:code-server-julia`
|
||||||
|
|
||||||
If adding multiple mods, enter them in an array separated by `|`, such as `DOCKER_MODS=linuxserver/mods:code-server-julia|linuxserver/mods:code-server-mod2`
|
If adding multiple mods, enter them in an array separated by `|`, such as `DOCKER_MODS=linuxserver/mods:code-server-julia|linuxserver/mods:code-server-mod2`
|
||||||
|
|
||||||
|
|||||||
@@ -0,0 +1,22 @@
|
|||||||
|
#!/usr/bin/with-contenv bash
|
||||||
|
|
||||||
|
if [ -d "/julia-bins" ]; then
|
||||||
|
echo "**** Installing/updating Julia ****"
|
||||||
|
ARCH=$(uname -m)
|
||||||
|
mkdir -p /julia
|
||||||
|
tar xf "/julia-bins/julia-${ARCH}.tar.gz" -C \
|
||||||
|
/julia --strip-components=1
|
||||||
|
rm -rf /usr/local/bin/julia
|
||||||
|
ln -s /julia/bin/julia /usr/local/bin/julia
|
||||||
|
chmod +x /julia/bin/julia
|
||||||
|
else
|
||||||
|
echo "**** Latest stable version of Julia already installed ****"
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo "**** Installing vscode extensions julia, julia-formatter and better-toml ****"
|
||||||
|
# extensions
|
||||||
|
install-extension julialang.language-julia
|
||||||
|
# vscode-julia-formatter
|
||||||
|
install-extension singularitti.vscode-julia-formatter
|
||||||
|
# better-toml
|
||||||
|
install-extension bungcip.better-toml
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
oneshot
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
/etc/s6-overlay/s6-rc.d/init-mod-code-server-julia-install/run
|
||||||
Reference in New Issue
Block a user