Skip to content
#!/bin/sh
cd /home/metauser
unset SESSION_MANAGER
unset DBUS_SESSION_BUS_ADDRESS
export XKL_XMODMAP_DISABLE=1
export XDG_CURRENT_DESKTOP="GNOME-Flashback:GNOME"
export XDG_MENU_PREFIX="gnome-flashback-"
[ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup
[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
xsetroot -solid grey
xfce4-session &
#!/bin/bash
docker run -v$PWD/:/data -p8590:8590 -eBASE_PORT=8590 -eAUTH_PASS=testpass -it basicdesktop
#!/bin/bash
docker build . -t basicmetadesktop
#!/bin/sh
unset SESSION_MANAGER
unset DBUS_SESSION_BUS_ADDRESS
OS=`uname -s`
if [ $OS = 'Linux' ]; then
case "$WINDOWMANAGER" in
*gnome*)
if [ -e /etc/SuSE-release ]; then
PATH=$PATH:/opt/gnome/bin
export PATH
fi
;;
esac
fi
if [ -x /etc/X11/xinit/xinitrc ]; then
exec /etc/X11/xinit/xinitrc
fi
if [ -f /etc/X11/xinit/xinitrc ]; then
exec sh /etc/X11/xinit/xinitrc
fi
[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
xsetroot -solid grey
#xterm -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
#twm &
xfce4-session &
#!/bin/bash
docker tag basicmetadesktop sarusso/basicmetadesktop
dind push sarusso/basicmetadesktop
#!/bin/bash
docker run -v$PWD/:/data -p8590:8590 -it basicmetadesktop
FROM sarusso/basicmetadesktop:v0.2.0
FROM basicdesktop
MAINTAINER Stefano Alberto Russo <stefano.russo@gmail.com>
# Switch to root user
......
FROM basicmetadesktop
MAINTAINER Stefano Alberto Russo <stefano.russo@gmail.com>
USER root
# Always start with an apt-get update when extending Reyns images,
# otherwise apt repositories might get outdated (404 not found)
# and building without cache does not re-build Reyns services.
RUN apt-get update
#----------------------
# Libraries
#----------------------
COPY files/system_deps.sh /root/
COPY files/python_deps.txt /root/
RUN bash /root/system_deps.sh
RUN pip3 install -r /root/python_deps.txt
#--------------------------------------
# Jupyter, Eclipse, keybindings etc.
#--------------------------------------
# Download and install Eclipse and Pydev
RUN wget http://www.eclipse.org/downloads/download.php?file=/technology/epp/downloads/release/kepler/SR2/eclipse-standard-kepler-SR2-linux-gtk-x86_64.tar.gz
RUN mv download.php* eclipse-standard-kepler-SR2-linux-gtk-x86_64.tar.gz
RUN tar -zxvf eclipse-standard-kepler-SR2-linux-gtk-x86_64.tar.gz
COPY files/PyDev_3.4.1.zip /tmp
RUN cd eclipse/dropins/ && unzip /tmp/PyDev_3.4.1.zip
RUN mv eclipse /opt/
COPY files/eclipse128.png /opt/eclipse/eclipse128.png
COPY files/Eclipse.desktop /metauser_home_vanilla/Desktop/
RUN chown -R metauser:metauser /metauser_home_vanilla/Desktop/
# Set terminals interrupt shortcut to ctrl-x
#RUN echo "stty intr ^x" >> /metauser_home_vanilla/.bashrc
# Enable Inet for ssh X forwarding
#RUN echo "AddressFamily inet" >> /etc/ssh/sshd_config
# Add Jupiter in supervisord
#COPY supervisord_jupyter.conf /etc/supervisor/conf.d/
ENV CONTAINER_NAME='devmetadesktop'
USER metauser
#!/bin/bash
docker build . -t devmetadesktop
[Desktop Entry]
Version=1.0
Type=Application
Name=Eclipse
Comment=
Exec=/opt/eclipse/eclipse
Icon=/opt/eclipse/eclipse128.png
Path=
Terminal=false
StartupNotify=false
pydub==0.20.0
audioread==2.1.5
matplotlib==2.1.2
mpld3==0.3
Jinja2==2.10
theano==1.0.2
h5py==2.8.0
Keras==2.1.3
tensorflow==1.14.0
matplotlib==2.1.2
numpy==1.19.5
scikit-image==0.15.0
scikit-learn==0.22
pandas==0.23.4
chardet==3.0.4
convertdate==2.1.2
lunarcalendar==0.0.9
holidays==0.10.3
pystan==2.19.1.1
plotly==4.9.0
requests==2.5.3
notebook==5.7.10
\ No newline at end of file
;=======================================
; Jupyter service
;=======================================
[program:jupyter]
; General
command = sudo -i -u metauser jupyter notebook --no-browser --ip=0.0.0.0 --NotebookApp.token='' --NotebookApp.base_url='/'
user = root
numprocs = 1
autostart = true
autorestart = true
startsecs = 10
stopwaitsecs = 30
process_name = jupyter
; Standard out / error
stdout_logfile = /var/log/supervisor/%(program_name)s.log
stdout_logfile_maxbytes = 5MB
stdout_logfile_backups = 10
stderr_logfile = /var/log/supervisor/%(program_name)s.log
stderr_logfile_maxbytes = 5MB
stderr_logfile_backups = 10
#!/bin/bash
set -e
# This system dependencies installer is meant to be executed
# on top of a clean and official Ubuntu 18.04 Docker image.
# It should be also capable of running twice without messing up.
# Curl
apt-get install curl -y
# Install get-pip script
curl -O https://bootstrap.pypa.io/get-pip.py
# Install Python3 and Pip3 (python3-distutils required for pip3)
apt-get install python3 python3-distutils -y
python3 get-pip.py 'pip==21.0.1'
# Python-tk required by matplotlib/six
apt-get install python-tk python3-tk -y
# Required for building subprocess32 in Python 2, required by matplotlib
# (subprocess32 is a backport for Python 2 of Python 3 subprocess module)
apt-get install build-essential python-dev -y
# Install ffmpeg (consider replacing with a more dependency-lightweight one)
apt-get install ffmpeg -y
# Required to fix bug with Theano (lazylinker)
apt-get install python3.6-dev -y
#!/bin/bash
docker tag devmetadesktop sarusso/devmetadesktop
dind push sarusso/devmetadesktop
#!/bin/bash
docker run -v$PWD/:/data -p8590:8590 -it devmetadesktop