-
Notifications
You must be signed in to change notification settings - Fork 15
/
Dockerfile
49 lines (41 loc) · 1.67 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
# Copyright 2016 Internap.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
FROM ubuntu:14.04
ENV DEBIAN_FRONTEND noninteractive
ENV HOME /root
RUN apt-get update && apt-get install -y --force-yes --no-install-recommends \
supervisor xinetd x11vnc xvfb xdotool x11-utils curl unzip openjdk-7-jre \
x11-xserver-utils xmlstarlet iptables xloadimage \
&& apt-get autoclean && apt-get autoremove && rm -rf /var/lib/apt/lists/*
ADD etc /etc
ADD opt /opt
# The delay (in seconds) between connections before the container is terminated
ENV CONSOLE_TTL "3600"
# X11VNC_CLIP: The area of the application to show
ENV X11VNC_CLIP "4096x4096+0+21"
# Desktop title shown by X11VNC
ENV X11VNC_TITLE ""
# Image to show until we get the application working
ENV SPLASH_IMAGE ""
# Screen size to show until we get the application working
ENV SPLASH_SIZE ""
# The username to use when connecting to the BMC
ENV IPMI_USERNAME "ADMIN"
# The password to use when connecting to the BMC
ENV IPMI_PASSWORD "ADMIN"
# The address of the BMC to connect (MANDATORY)
# Define with `docker run <image_name> -e IPMI_ADDRESS=<address>`
#ENV IPMI_ADDRESS "192.0.2.10"
EXPOSE 5900
ENTRYPOINT ["/opt/kvm-console/bin/startup.sh"]