commit | author | age
|
eb8c9c
|
1 |
FROM debian |
JK |
2 |
MAINTAINER Jacek Kowalski <Jacek@jacekk.info> |
|
3 |
|
|
4 |
RUN apt-get -y update \ |
|
5 |
&& apt-get -y dist-upgrade \ |
|
6 |
&& apt-get -y install git python-pip python-ldap \ |
|
7 |
python-libvirt python-libxml2 sudo \ |
|
8 |
&& apt-get -y clean |
|
9 |
|
|
10 |
RUN git clone https://github.com/retspen/webvirtmgr /webvirtmgr |
|
11 |
|
|
12 |
WORKDIR /webvirtmgr |
|
13 |
RUN sed -i 's/127.0.0.1:8000/0.0.0.0:8000/' conf/gunicorn.conf.py \ |
|
14 |
&& sed -i 's/^#django-auth/django-auth/' requirements.txt \ |
|
15 |
&& pip install -r requirements.txt \ |
|
16 |
&& cp webvirtmgr/local/local_settings.py.example webvirtmgr/ |
|
17 |
ADD local_settings.py.initial webvirtmgr/ |
|
18 |
|
|
19 |
RUN groupadd -r -g 500 webvirtmgr \ |
|
20 |
&& useradd -r -d /webvirtmgr -u 500 -g 500 webvirtmgr \ |
|
21 |
&& chown -Rf webvirtmgr:webvirtmgr /webvirtmgr |
|
22 |
|
|
23 |
VOLUME /webvirtmgr/webvirtmgr/local |
|
24 |
EXPOSE 8000 |
|
25 |
ADD run.sh run-sudo.sh / |
|
26 |
CMD /run.sh |