mirror of
https://github.com/pschiffe/docker-pdns.git
synced 2025-01-18 19:11:14 +01:00
DEPRECATED: This image is now divided into two w/o systemd
This commit is contained in:
parent
99f864afde
commit
d340dea849
1 changed files with 25 additions and 27 deletions
|
@ -1,44 +1,42 @@
|
||||||
FROM fedora:24
|
FROM fedora:26
|
||||||
MAINTAINER "Peter Schiffer" <pschiffe@redhat.com>
|
MAINTAINER "Peter Schiffer" <pschiffe@redhat.com>
|
||||||
|
|
||||||
RUN dnf -y --setopt=tsflags=nodocs install \
|
RUN dnf -y --setopt=tsflags=nodocs install \
|
||||||
tar \
|
python-pip \
|
||||||
python-pip \
|
python2-mysql \
|
||||||
python2-mysql \
|
python-ldap \
|
||||||
mariadb \
|
mariadb \
|
||||||
gcc \
|
nginx \
|
||||||
redhat-rpm-config \
|
uwsgi \
|
||||||
python-devel \
|
uwsgi-plugin-python \
|
||||||
openldap-devel \
|
&& dnf clean all \
|
||||||
nginx \
|
&& systemctl enable nginx \
|
||||||
uwsgi \
|
&& systemctl enable uwsgi
|
||||||
uwsgi-plugin-python \
|
|
||||||
&& dnf clean all \
|
|
||||||
&& systemctl enable nginx \
|
|
||||||
&& systemctl enable uwsgi
|
|
||||||
|
|
||||||
RUN mkdir -p /opt/powerdns-admin \
|
RUN mkdir -p /opt/powerdns-admin \
|
||||||
&& curl -sSL https://github.com/ngoduykhanh/PowerDNS-Admin/archive/master.tar.gz \
|
&& curl -sSLk https://git.omicroninteractive.com/0x97/powerdns-admin/repository/archive.tar.gz?ref=master \
|
||||||
| tar -xzC /opt/powerdns-admin --strip 1 \
|
| tar -xzC /opt/powerdns-admin --strip 1 \
|
||||||
&& chown -R root: /opt/powerdns-admin \
|
&& sed -i '/MySQL-python/d' /opt/powerdns-admin/requirements.txt \
|
||||||
&& chown -R uwsgi: /opt/powerdns-admin/upload
|
&& sed -i '/python-ldap/d' /opt/powerdns-admin/requirements.txt \
|
||||||
|
&& chown -R root: /opt/powerdns-admin \
|
||||||
|
&& chown -R uwsgi: /opt/powerdns-admin/upload
|
||||||
|
|
||||||
WORKDIR /opt/powerdns-admin
|
WORKDIR /opt/powerdns-admin
|
||||||
|
|
||||||
RUN pip3 install envtpl \
|
RUN pip3 install envtpl \
|
||||||
&& pip install -r requirements.txt \
|
&& pip install -r requirements.txt \
|
||||||
&& rm -rf ~/.cache/*
|
&& rm -rf ~/.cache/*
|
||||||
|
|
||||||
STOPSIGNAL SIGRTMIN+3
|
STOPSIGNAL SIGRTMIN+3
|
||||||
RUN echo 'ForwardToConsole=yes' >> /etc/systemd/journald.conf
|
RUN echo 'ForwardToConsole=yes' >> /etc/systemd/journald.conf
|
||||||
|
|
||||||
ENV container=docker \
|
ENV container=docker \
|
||||||
PDNS_ADMIN_LOGIN_TITLE="'PDNS'" \
|
PDNS_ADMIN_LOGIN_TITLE="'PDNS'" \
|
||||||
PDNS_ADMIN_TIMEOUT=10 \
|
PDNS_ADMIN_TIMEOUT=10 \
|
||||||
PDNS_ADMIN_LOG_LEVEL="'INFO'" \
|
PDNS_ADMIN_LOG_LEVEL="'INFO'" \
|
||||||
PDNS_ADMIN_BASIC_ENABLED=True \
|
PDNS_ADMIN_BASIC_ENABLED=True \
|
||||||
PDNS_ADMIN_SIGNUP_ENABLED=True \
|
PDNS_ADMIN_SIGNUP_ENABLED=True \
|
||||||
PDNS_ADMIN_RECORDS_ALLOW_EDIT="['SOA', 'NS', 'A', 'AAAA', 'CNAME', 'MX', 'TXT', 'SRV']"
|
PDNS_ADMIN_RECORDS_ALLOW_EDIT="['SOA', 'NS', 'A', 'AAAA', 'CNAME', 'MX', 'TXT', 'SRV']"
|
||||||
|
|
||||||
EXPOSE 80
|
EXPOSE 80
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue