Public | Automated Build

Last pushed: 20 days ago
Dockerfile
# This Dockerfile is used to build an headles vnc image based on Ubuntu FROM ubuntu:16.04 MAINTAINER Tobias Schneck "tobias.schneck@consol.de" ENV REFRESHED_AT 2017-09-14 LABEL io.k8s.description="Headless VNC Container with Xfce window manager, firefox and chromium" \ io.k8s.display-name="Headless VNC Container based on Ubuntu" \ io.openshift.expose-services="6901:http,5901:xvnc" \ io.openshift.tags="vnc, ubuntu, xfce" \ io.openshift.non-scalable=true ## Connection ports for controlling the UI: # VNC port:5901 # noVNC webport, connect via http://IP:6901/?password=vncpassword ENV DISPLAY=:1 \ VNC_PORT=5901 \ NO_VNC_PORT=6901 EXPOSE $VNC_PORT $NO_VNC_PORT ### Envrionment config ENV HOME=/headless \ TERM=xterm \ STARTUPDIR=/dockerstartup \ INST_SCRIPTS=$HOME/install \ NO_VNC_HOME=$HOME/noVNC \ DEBIAN_FRONTEND=noninteractive \ VNC_COL_DEPTH=24 \ VNC_RESOLUTION=1280x1024 \ VNC_PW=vncpassword \ VNC_VIEW_ONLY=false WORKDIR $HOME ### Add all install scripts for further steps ADD ./src/common/install/ $INST_SCRIPTS/ ADD ./src/ubuntu/install/ $INST_SCRIPTS/ RUN find $INST_SCRIPTS -name '*.sh' -exec chmod a+x {} + ### Install some common tools RUN $INST_SCRIPTS/tools.sh ENV LANG='en_US.UTF-8' LANGUAGE='en_US:en' LC_ALL='en_US.UTF-8' ### Install xvnc-server & noVNC - HTML5 based VNC viewer RUN $INST_SCRIPTS/tigervnc.sh RUN $INST_SCRIPTS/no_vnc.sh ### Install firefox and chrome browser RUN $INST_SCRIPTS/firefox.sh RUN $INST_SCRIPTS/chrome.sh ### Install xfce UI RUN $INST_SCRIPTS/xfce_ui.sh ADD ./src/common/xfce/ $HOME/ ### configure startup RUN $INST_SCRIPTS/libnss_wrapper.sh ADD ./src/common/scripts $STARTUPDIR RUN $INST_SCRIPTS/set_user_permission.sh $STARTUPDIR $HOME USER 1984 ENTRYPOINT ["/dockerstartup/vnc_startup.sh"] CMD ["--tail-log"]