File tree Expand file tree Collapse file tree 8 files changed +44
-17
lines changed
conf/jupyterlab/usr/local/etc/jupyter/jupyter_server_config.d Expand file tree Collapse file tree 8 files changed +44
-17
lines changed Original file line number Diff line number Diff line change 44
44
! /mojo-base /conf /jupyterlab /usr /local /etc /
45
45
! /mojo-base /conf /jupyterlab /usr /local /etc /jupyter /
46
46
! /mojo-base /conf /jupyterlab /usr /local /etc /jupyter /jupyter_server_config.d /
47
+ ! /mojo-base /scripts /
48
+ ! /mojo-base /scripts /usr /
49
+ ! /mojo-base /scripts /usr /local /
50
+ ! /mojo-base /scripts /usr /local /bin /
47
51
! /python- * /
48
52
! /r- * /
49
53
! /r-base /
86
90
! /julia-base /scripts /usr /local /bin /* .sh
87
91
! /mojo- * /devcontainer.json
88
92
! /mojo-base /conf /jupyterlab /usr /local /etc /jupyter /jupyter_server_config.d /mojo-lsp-server.json
93
+ ! /mojo-base /scripts /usr /local /bin /* .sh
89
94
! /python- * /devcontainer.json
90
95
! /r- * /devcontainer.json
91
96
! /r-base /conf /jupyterlab /usr /local /share /jupyter /lab /settings /* .json
Original file line number Diff line number Diff line change 1
1
ARG BUILD_ON_IMAGE=glcr.b-data.ch/mojo/base
2
- ARG MOJO_VERSION=24.4 .0
2
+ ARG MOJO_VERSION=24.5 .0
3
3
4
4
ARG INSTALL_DEVTOOLS
5
5
ARG NODE_VERSION
@@ -18,17 +18,10 @@ COPY conf/ipython /files
18
18
COPY conf/jupyterlab /files
19
19
COPY conf/shell /files
20
20
COPY mojo-base/conf/jupyterlab /files
21
+ COPY mojo-base/scripts /files
21
22
COPY scripts /files
22
23
23
- RUN if echo "$BUILD_ON_IMAGE" | grep -q "mojo-max" ; then \
24
- # # Update Modular setup
25
- sed -i s/packages.modular.com_mojo/packages.modular.com_max/g \
26
- /files/usr/local/etc/jupyter/jupyter_server_config.d/mojo-lsp-server.json; \
27
- elif [ "${MOJO_VERSION}" = "nightly" ]; then \
28
- sed -i s/packages.modular.com_mojo/packages.modular.com_nightly_mojo/g \
29
- /files/usr/local/etc/jupyter/jupyter_server_config.d/mojo-lsp-server.json; \
30
- fi \
31
- && if [ -n "${CUDA_VERSION}" ]; then \
24
+ RUN if [ -n "${CUDA_VERSION}" ]; then \
32
25
# # Use entrypoint of CUDA image
33
26
mv /opt/nvidia/entrypoint.d /opt/nvidia/nvidia_entrypoint.sh \
34
27
/files/usr/local/bin; \
Original file line number Diff line number Diff line change 18
18
19
19
"onCreateCommand" : " onCreateCommand.sh" ,
20
20
"postStartCommand" : " ${HOME}/.local/bin/dockerSystemPrune.sh" ,
21
- "postAttachCommand" : " ${HOME}/.local/bin/checkForUpdates.sh" ,
21
+ "postAttachCommand" : " ${HOME}/.local/bin/checkForUpdates.sh && postAttachCommand.sh " ,
22
22
23
23
"features" : {
24
24
"ghcr.io/devcontainers/features/common-utils:2" : {
Original file line number Diff line number Diff line change 3
3
"language_servers" : {
4
4
"mojo" : {
5
5
"argv" : [
6
- " /opt/modular/pkg/packages.modular.com_mojo/ bin/mojo-lsp-server" ,
6
+ " /opt/modular/bin/mojo-lsp-server" ,
7
7
" --log=error"
8
8
],
9
9
"version" : 2 ,
Original file line number Diff line number Diff line change 5
5
"context" : " .." ,
6
6
"args" : {
7
7
"BUILD_ON_IMAGE" : " glcr.b-data.ch/mojo/base" ,
8
- "MOJO_VERSION" : " 24.4 .0" ,
8
+ "MOJO_VERSION" : " 24.5 .0" ,
9
9
// "UNMINIMIZE": "unset-to-keep-minimized",
10
10
"JUPYTERLAB_VERSION" : " 4.2.5" ,
11
11
// "INSTALL_DEVTOOLS": "unset-to-not-install",
18
18
19
19
"onCreateCommand" : " onCreateCommand.sh" ,
20
20
"postStartCommand" : " ${HOME}/.local/bin/dockerSystemPrune.sh" ,
21
- "postAttachCommand" : " ${HOME}/.local/bin/checkForUpdates.sh" ,
21
+ "postAttachCommand" : " ${HOME}/.local/bin/checkForUpdates.sh && postAttachCommand.sh " ,
22
22
23
23
"features" : {
24
24
"ghcr.io/devcontainers/features/common-utils:2" : {
Original file line number Diff line number Diff line change
1
+ #! /usr/bin/env bash
2
+ # Copyright (c) 2024 b-data GmbH.
3
+ # Distributed under the terms of the MIT License.
4
+
5
+ set -e
6
+
7
+ # MAX SDK: Evaluate and set version
8
+ if [ " ${MOJO_VERSION} " = " nightly" ]; then
9
+ extDataDir=$HOME /.vscode-server/data/User/globalStorage/modular-mojotools.vscode-mojo-nightly
10
+ while :
11
+ do
12
+ extDirs=( " $HOME " /.vscode-server/extensions/modular-mojotools.vscode-mojo-nightly* )
13
+ [ " ${# extDirs[@]} " -ge 2 ] && exit 1
14
+ if [ -d " ${extDirs[0]} " ]; then
15
+ sdkVersion=$( jq -r ' .sdkVersion' " ${extDirs[0]} /package.json" )
16
+ break
17
+ else
18
+ sleep 1
19
+ fi
20
+ done
21
+ else
22
+ extDataDir=$HOME /.vscode-server/data/User/globalStorage/modular-mojotools.vscode-mojo
23
+ sdkVersion=$MOJO_VERSION
24
+ fi
25
+
26
+ # MAX SDK: Create symlink to /opt/modular
27
+ mkdir -p " $extDataDir /magic-data-home/envs"
28
+ ln -snf /opt/modular " $extDataDir /magic-data-home/envs/max"
29
+ mkdir -p " $extDataDir /versionDone/$sdkVersion "
Original file line number Diff line number Diff line change 18
18
19
19
"onCreateCommand" : " onCreateCommand.sh" ,
20
20
"postStartCommand" : " ${HOME}/.local/bin/dockerSystemPrune.sh" ,
21
- "postAttachCommand" : " ${HOME}/.local/bin/checkForUpdates.sh" ,
21
+ "postAttachCommand" : " ${HOME}/.local/bin/checkForUpdates.sh && postAttachCommand.sh " ,
22
22
23
23
"features" : {
24
24
"ghcr.io/devcontainers/features/common-utils:2" : {
Original file line number Diff line number Diff line change 5
5
"context" : " .." ,
6
6
"args" : {
7
7
"BUILD_ON_IMAGE" : " glcr.b-data.ch/mojo/scipy" ,
8
- "MOJO_VERSION" : " 24.4 .0" ,
8
+ "MOJO_VERSION" : " 24.5 .0" ,
9
9
// "UNMINIMIZE": "unset-to-keep-minimized",
10
10
"JUPYTERLAB_VERSION" : " 4.2.5" ,
11
11
// "INSTALL_DEVTOOLS": "unset-to-not-install",
18
18
19
19
"onCreateCommand" : " onCreateCommand.sh" ,
20
20
"postStartCommand" : " ${HOME}/.local/bin/dockerSystemPrune.sh" ,
21
- "postAttachCommand" : " ${HOME}/.local/bin/checkForUpdates.sh" ,
21
+ "postAttachCommand" : " ${HOME}/.local/bin/checkForUpdates.sh && postAttachCommand.sh " ,
22
22
23
23
"features" : {
24
24
"ghcr.io/devcontainers/features/common-utils:2" : {
You can’t perform that action at this time.
0 commit comments