@@ -177,7 +177,7 @@ RUN \
177
177
unzip \
178
178
bzip2 \
179
179
lzop \
180
- # deprecates bsdtar (https://ubuntu.pkgs.org/20.04/ubuntu-universe-i386/libarchive-tools_3.4.0-2ubuntu1_i386.deb.html)
180
+ # deprecates bsdtar (https://ubuntu.pkgs.org/20.04/ubuntu-universe-i386/libarchive-tools_3.4.0-2ubuntu1_i386.deb.html)
181
181
libarchive-tools \
182
182
zlibc \
183
183
# unpack (almost) everything with one command
@@ -318,9 +318,9 @@ ENV LD_LIBRARY_PATH=$CONDA_ROOT/lib
318
318
RUN git clone https://github.com/pyenv/pyenv.git $RESOURCES_PATH/.pyenv && \
319
319
# Install pyenv plugins based on pyenv installer
320
320
git clone https://github.com/pyenv/pyenv-virtualenv.git $RESOURCES_PATH/.pyenv/plugins/pyenv-virtualenv && \
321
- git clone git://github.com/pyenv/pyenv-doctor.git $RESOURCES_PATH/plugins/pyenv-doctor && \
322
- git clone https://github.com/pyenv/pyenv-update.git $RESOURCES_PATH/plugins/pyenv-update && \
323
- git clone https://github.com/pyenv/pyenv-which-ext.git $RESOURCES_PATH/plugins/pyenv-which-ext
321
+ git clone git://github.com/pyenv/pyenv-doctor.git $RESOURCES_PATH/.pyenv/ plugins/pyenv-doctor && \
322
+ git clone https://github.com/pyenv/pyenv-update.git $RESOURCES_PATH/.pyenv/ plugins/pyenv-update && \
323
+ git clone https://github.com/pyenv/pyenv-which-ext.git $RESOURCES_PATH/.pyenv/ plugins/pyenv-which-ext
324
324
325
325
# Add pyenv to path
326
326
ENV PATH=$RESOURCES_PATH/.pyenv/shims:$RESOURCES_PATH/.pyenv/bin:$PATH \
@@ -368,42 +368,13 @@ RUN \
368
368
369
369
ENV PATH=/opt/node/bin:$PATH
370
370
371
- # Install Java Runtime
372
- RUN \
373
- apt-get update && \
374
- # libgl1-mesa-dri > 150 MB -> Install jdk-headless version (without gui support)?
375
- # java runtime is extenable via the java-utils.sh tool intstaller script
376
- apt-get install -y --no-install-recommends openjdk-11-jdk-headless maven scala && \
377
- # Cleanup
378
- clean-layer.sh
379
-
380
- ENV JAVA_HOME="/usr/lib/jvm/java-11-openjdk-amd64"
381
- # TODO add MAVEN_HOME?
371
+ # Java - removed
382
372
383
373
# ## END RUNTIMES ###
384
374
385
375
# ## PROCESS TOOLS ###
386
376
387
- # ## Install xfce UI
388
- RUN \
389
- apt-get update && \
390
- # Install custom font
391
- apt-get install -y xfce4 xfce4-terminal xterm && \
392
- apt-get purge -y pm-utils xscreensaver* && \
393
- apt-get install -y xfce4-clipman && \
394
- # Cleanup
395
- clean-layer.sh
396
-
397
- # Install rdp support via xrdp
398
- RUN \
399
- apt-get update && \
400
- apt-get install -y --no-install-recommends xrdp && \
401
- # use xfce
402
- sudo sed -i.bak '/fi/a #xrdp multiple users configuration \n xfce-session \n ' /etc/xrdp/startwm.sh && \
403
- # generate /etc/xrdp/rsakeys.ini
404
- cd /etc/xrdp/ && xrdp-keygen xrdp && \
405
- # Cleanup
406
- clean-layer.sh
377
+ # Removed XRDP
407
378
408
379
# Install supervisor for process supervision
409
380
RUN \
@@ -422,6 +393,17 @@ RUN \
422
393
# ## END PROCESS TOOLS ###
423
394
424
395
# ## GUI TOOLS ###
396
+
397
+ # ## Install xfce UI
398
+ RUN \
399
+ apt-get update && \
400
+ # Install custom font
401
+ apt-get install -y xfce4 xfce4-terminal xterm && \
402
+ apt-get purge -y pm-utils xscreensaver* && \
403
+ apt-get install -y xfce4-clipman && \
404
+ # Cleanup
405
+ clean-layer.sh
406
+
425
407
# Install VNC
426
408
RUN \
427
409
apt-get update && \
@@ -722,6 +704,8 @@ RUN \
722
704
jupyter nbextension enable execute_time/ExecuteTime --sys-prefix && \
723
705
jupyter nbextension enable collapsible_headings/main --sys-prefix && \
724
706
jupyter nbextension enable codefolding/main --sys-prefix && \
707
+ # TODO: Disable pydeck extension, cannot be loaded (404)
708
+ jupyter nbextension disable pydeck/extension && \
725
709
# Install and activate Jupyter Tensorboard
726
710
pip install --no-cache-dir git+https://github.com/InfuseAI/jupyter_tensorboard.git && \
727
711
jupyter tensorboard enable --sys-prefix && \
@@ -782,7 +766,7 @@ RUN \
782
766
exit 0 ; \
783
767
fi && \
784
768
$lab_ext_install @jupyterlab/toc && \
785
-
769
+
786
770
# install temporarily from gitrepo due to the issue that jupyterlab_tensorboard does not work with 3.x yet as described here: https://github.com/chaoleili/jupyterlab_tensorboard/issues/28#issuecomment-783594541
787
771
# $lab_ext_install jupyterlab_tensorboard && \
788
772
pip install git+https://github.com/chaoleili/jupyterlab_tensorboard.git && \
@@ -804,15 +788,13 @@ RUN \
804
788
exit 0 ; \
805
789
fi \
806
790
# Install jupyterlab language server support
807
- # TODO update versions for jupyterlab 3.0 release
808
791
&& pip install jupyterlab-lsp==3.7.0 jupyter-lsp==1.3.0 && \
809
792
# $lab_ext_install install @krassowski/jupyterlab-lsp@2.0.8 && \
810
793
# For Plotly
811
794
$lab_ext_install jupyterlab-plotly && \
812
795
$lab_ext_install install @jupyter-widgets/jupyterlab-manager plotlywidget && \
813
796
# produces build error: jupyter labextension install jupyterlab-chart-editor && \
814
797
$lab_ext_install jupyterlab-chart-editor && \
815
-
816
798
# Install jupyterlab variable inspector - https://github.com/lckr/jupyterlab-variableInspector
817
799
# TODO: see issue https://github.com/lckr/jupyterlab-variableInspector/issues/207 with installing it
818
800
# $lab_ext_install @lckr/jupyterlab_variableinspector && \
@@ -890,15 +872,7 @@ RUN \
890
872
rm ms-python-release.vsix && \
891
873
mv extension $HOME/.vscode/extensions/ms-python.python-$VS_PYTHON_VERSION && \
892
874
# && code-server --install-extension ms-python.python@$VS_PYTHON_VERSION \
893
- sleep $SLEEP_TIMER \
894
- # Install vscode-java: https://github.com/redhat-developer/vscode-java/releases
895
- && VS_JAVA_VERSION="0.79.2" && \
896
- wget --retry-on-http-error=429 --waitretry 15 --tries 5 --no-verbose https://marketplace.visualstudio.com/_apis/public/gallery/publishers/redhat/vsextensions/java/$VS_JAVA_VERSION/vspackage -O redhat.java-$VS_JAVA_VERSION.vsix && \
897
- # wget --no-verbose -O redhat.java-$VS_JAVA_VERSION.vsix https://marketplace.visualstudio.com/_apis/public/gallery/publishers/redhat/vsextensions/java/$VS_JAVA_VERSION/vspackage && \
898
- bsdtar -xf redhat.java-$VS_JAVA_VERSION.vsix extension && \
899
- rm redhat.java-$VS_JAVA_VERSION.vsix && \
900
- mv extension $HOME/.vscode/extensions/redhat.java-$VS_JAVA_VERSION && \
901
- # && code-server --install-extension redhat.java@$VS_JAVA_VERSION \
875
+ sleep $SLEEP_TIMER && \
902
876
# If light flavor -> exit here
903
877
if [ "$WORKSPACE_FLAVOR" = "light" ]; then \
904
878
exit 0 ; \
@@ -936,9 +910,7 @@ RUN \
936
910
937
911
RUN \
938
912
# TODO: Fix problem with jupyter extension panel: https://github.com/Jupyter-contrib/jupyter_nbextensions_configurator/issues/125
939
- sed -i 's:notebook/js/mathjaxutils:base/js/mathjaxutils:g' $CONDA_PYTHON_DIR/site-packages/jupyter_nbextensions_configurator/static/nbextensions_configurator/render/render.js && \
940
- # TODO: Disable pydeck extension, cannot be loaded (404)
941
- jupyter nbextension disable pydeck/extension && \
913
+ # TODO sed -i 's:notebook/js/mathjaxutils:base/js/mathjaxutils:g' $CONDA_PYTHON_DIR/site-packages/jupyter_nbextensions_configurator/static/nbextensions_configurator/render/render.js && \
942
914
apt-get update && \
943
915
# TODO: lib contains high vulnerability
944
916
apt-get install -y --no-install-recommends libffi-dev && \
@@ -1034,7 +1006,6 @@ RUN \
1034
1006
# Fielbrowser Branding
1035
1007
mkdir -p $RESOURCES_PATH"/filebrowser/img/icons/" && \
1036
1008
cp -f $RESOURCES_PATH/branding/favicon.ico $RESOURCES_PATH"/filebrowser/img/icons/favicon.ico" && \
1037
- # Todo - use actual png
1038
1009
cp -f $RESOURCES_PATH/branding/favicon.ico $RESOURCES_PATH"/filebrowser/img/icons/favicon-32x32.png" && \
1039
1010
cp -f $RESOURCES_PATH/branding/favicon.ico $RESOURCES_PATH"/filebrowser/img/icons/favicon-16x16.png" && \
1040
1011
cp -f $RESOURCES_PATH/branding/ml-workspace-logo.svg $RESOURCES_PATH"/filebrowser/img/logo.svg"
0 commit comments