Merge pull request #416 from linuxserver/code-server-julia-s6v3

switch to hybrid (code-server-julia)
This commit is contained in:
aptalca
2022-09-04 21:13:17 -04:00
committed by GitHub
6 changed files with 43 additions and 0 deletions
@@ -0,0 +1,41 @@
#!/usr/bin/with-contenv bash
ARCH=$(uname -m)
if [ "${ARCH}" = "armv7l" ]; then
echo '
*********************************************************
*********************************************************
**** ****
**** julia binaries are no longer guaranteed ****
**** ****
**** to be available on arm32v7 ****
**** ****
**** therefore this mod no longer supports ****
**** ****
**** arm32v7 ****
**** ****
*********************************************************
*********************************************************
'
exit 0
fi
if [ -d "/julia-bins" ]; then
echo "**** Installing/updating Julia ****"
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