-
Notifications
You must be signed in to change notification settings - Fork 27
/
Copy pathDockerfile
30 lines (22 loc) · 916 Bytes
/
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
FROM ubuntu:14.04
MAINTAINER Primiano Tucci <p.tucci@gmail.com>
RUN apt-get -y update && \
apt-get -y install git python-pip python-libvirt python-libxml2 supervisor novnc
RUN git clone https://github.com/retspen/webvirtmgr /webvirtmgr
WORKDIR /webvirtmgr
RUN git checkout 7f140f99f4 #v4.8.8
RUN pip install -r requirements.txt
ADD local_settings.py /webvirtmgr/webvirtmgr/local/local_settings.py
RUN sed -i 's/0.0.0.0/172.17.42.1/g' vrtManager/create.py
RUN /usr/bin/python /webvirtmgr/manage.py collectstatic --noinput
ADD supervisor.webvirtmgr.conf /etc/supervisor/conf.d/webvirtmgr.conf
ADD gunicorn.conf.py /webvirtmgr/conf/gunicorn.conf.py
ADD bootstrap.sh /webvirtmgr/bootstrap.sh
RUN useradd webvirtmgr -g libvirtd -u 1010 -d /data/vm/ -s /sbin/nologin
RUN chown webvirtmgr:libvirtd -R /webvirtmgr
RUN apt-get -ys clean
WORKDIR /
VOLUME /data/vm
EXPOSE 8080
EXPOSE 6080
CMD ["supervisord", "-n"]