Skip to content

Commit 54ece84

Browse files
committed
NoVNC default connect
1 parent 6a93d72 commit 54ece84

File tree

2 files changed

+22
-8
lines changed

2 files changed

+22
-8
lines changed

Dockerfile

+7-8
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ FROM ubuntu:12.04
22
MAINTAINER Doro Wu <fcwu.tw@gmail.com>
33

44
ENV DEBIAN_FRONTEND noninteractive
5-
ENV HTTP_PROXY http://172.17.42.1:3134
65

76
# setup our Ubuntu sources (ADD breaks caching)
87
RUN echo "deb http://us.archive.ubuntu.com/ubuntu/ precise main\n\
@@ -16,16 +15,16 @@ deb http://us.archive.ubuntu.com/ubuntu/ precise restricted\n\
1615
RUN apt-mark hold initscripts udev plymouth mountall
1716
RUN dpkg-divert --local --rename --add /sbin/initctl && ln -s /bin/true /sbin/initctl
1817

19-
RUN apt-get update
18+
RUN HTTP_PROXY=http://172.17.42.1:3142 apt-get update
2019

2120
# install our "base" environment
22-
RUN apt-get install -y --no-install-recommends openssh-server pwgen sudo vim-tiny
23-
RUN apt-get install -y --no-install-recommends lxde
24-
RUN apt-get install -y --no-install-recommends x11vnc xvfb
25-
RUN apt-get install -y supervisor
26-
RUN apt-get install -y libreoffice firefox
21+
RUN HTTP_PROXY=http://172.17.42.1:3142 apt-get install -y --no-install-recommends openssh-server pwgen sudo vim-tiny
22+
RUN HTTP_PROXY=http://172.17.42.1:3142 apt-get install -y --no-install-recommends lxde
23+
RUN HTTP_PROXY=http://172.17.42.1:3142 apt-get install -y --no-install-recommends x11vnc xvfb
24+
RUN HTTP_PROXY=http://172.17.42.1:3142 apt-get install -y supervisor
25+
RUN HTTP_PROXY=http://172.17.42.1:3142 apt-get install -y libreoffice firefox
2726
# noVNC
28-
RUN apt-get install -y net-tools
27+
RUN HTTP_PROXY=http://172.17.42.1:3142 apt-get install -y net-tools
2928

3029
ADD startup.sh /
3130
ADD supervisord.conf /

noVNC/index.html

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<!DOCTYPE HTML>
2+
<html lang="en-US">
3+
<head>
4+
<meta charset="UTF-8">
5+
<meta http-equiv="refresh" content="1;url=vnc_auto.html">
6+
<script type="text/javascript">
7+
window.location.href = "vnc_auto.html"
8+
</script>
9+
<title>Page Redirection</title>
10+
</head>
11+
<body>
12+
<!-- Note: don't tell people to `click` the link, just tell them that it is a link. -->
13+
If you are not redirected automatically, follow the <a href='http://example.com'>link to example</a>
14+
</body>
15+
</html>

0 commit comments

Comments
 (0)