Skip to content

Commit cd40f12

Browse files
authored
Merge pull request #416 from linuxserver/code-server-julia-s6v3
switch to hybrid (code-server-julia)
2 parents ca61f46 + 1751b2c commit cd40f12

File tree

6 files changed

+43
-0
lines changed

6 files changed

+43
-0
lines changed

root/etc/s6-overlay/s6-rc.d/init-mod-code-server-julia-install/dependencies.d/init-mods

Whitespace-only changes.
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
#!/usr/bin/with-contenv bash
2+
3+
ARCH=$(uname -m)
4+
if [ "${ARCH}" = "armv7l" ]; then
5+
echo '
6+
*********************************************************
7+
*********************************************************
8+
**** ****
9+
**** julia binaries are no longer guaranteed ****
10+
**** ****
11+
**** to be available on arm32v7 ****
12+
**** ****
13+
**** therefore this mod no longer supports ****
14+
**** ****
15+
**** arm32v7 ****
16+
**** ****
17+
*********************************************************
18+
*********************************************************
19+
'
20+
exit 0
21+
fi
22+
23+
if [ -d "/julia-bins" ]; then
24+
echo "**** Installing/updating Julia ****"
25+
mkdir -p /julia
26+
tar xf "/julia-bins/julia-${ARCH}.tar.gz" -C \
27+
/julia --strip-components=1
28+
rm -rf /usr/local/bin/julia
29+
ln -s /julia/bin/julia /usr/local/bin/julia
30+
chmod +x /julia/bin/julia
31+
else
32+
echo "**** Latest stable version of Julia already installed ****"
33+
fi
34+
35+
echo "**** Installing vscode extensions julia, julia-formatter and better-toml ****"
36+
# extensions
37+
install-extension julialang.language-julia
38+
# vscode-julia-formatter
39+
install-extension singularitti.vscode-julia-formatter
40+
# better-toml
41+
install-extension bungcip.better-toml
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
oneshot
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/etc/s6-overlay/s6-rc.d/init-mod-code-server-julia-install/run

root/etc/s6-overlay/s6-rc.d/init-mods-end/dependencies.d/init-mod-code-server-julia-install

Whitespace-only changes.

root/etc/s6-overlay/s6-rc.d/user/contents.d/init-mod-code-server-julia-install

Whitespace-only changes.

0 commit comments

Comments
 (0)