-
Notifications
You must be signed in to change notification settings - Fork 13
/
Dockerfile
59 lines (47 loc) · 1.48 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
#
# A dockerfile to run Octave and access it through the browser with noVNC
#
# BUILD DOCKER: docker build -t epflsti/octave-x11-novnc-docker .
# RUN DOCKER: docker run -it -p 8083:8083 epflsti/octave-x11-novnc-docker
# TEST DOCKER: docker exec -it epflsti/octave-x11-novnc-docker /bin/bash
FROM phusion/baseimage:0.9.22
MAINTAINER epflsti <[email protected]>
# Set correct environment variables
ENV HOME /root
ENV DEBIAN_FRONTEND noninteractive
ENV LC_ALL C.UTF-8
ENV LANG en_US.UTF-8
ENV LANGUAGE en_US.UTF-8
ENV TZ=Europe/Zurich
ENV SCREEN_RESOLUTION 1024x768
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
# Add the octave repo
RUN add-apt-repository ppa:octave/stable
# Installing apps (Note: git is here just in case noVNC needs it in launch.sh
RUN apt-get update && apt-get -y install \
xvfb \
x11vnc \
supervisor \
fluxbox \
octave \
net-tools \
git-core \
git
# House cleaning
RUN apt-get autoclean
# Docker's supervisor
COPY supervisord.conf /etc/supervisor/conf.d/supervisord.conf
# Set display
ENV DISPLAY :0
# Change work directory to add novnc files
WORKDIR /root/
ADD noVNC-0.6.2 /root/novnc/
RUN ln -s /root/novnc/vnc_auto.html /root/novnc/index.html
# A few examples for the demo
WORKDIR /scripts
ADD ./octave_scr /scripts
# Can be configured to set octave settings
# COPY qt-settings /root/.config/octave/qt-settings
# Expose Port (Note: if you change it do it as well in surpervisord.conf)
EXPOSE 8083
CMD ["/usr/bin/supervisord"]