mirror of
https://github.com/pschiffe/docker-pdns.git
synced 2025-01-18 19:11:14 +01:00
Simplify apk add commands, some clean ups
This commit is contained in:
parent
ad5ddbd894
commit
2422110d64
6 changed files with 29 additions and 31 deletions
|
@ -153,7 +153,7 @@
|
||||||
- pdns-admin-upload:/opt/powerdns-admin/upload
|
- pdns-admin-upload:/opt/powerdns-admin/upload
|
||||||
env:
|
env:
|
||||||
PDNS_ADMIN_SQLA_DB_PASSWORD: "'my-secret-pw'"
|
PDNS_ADMIN_SQLA_DB_PASSWORD: "'my-secret-pw'"
|
||||||
PDNS_ADMIN_PDNS_VERSION: "'4.0.4'"
|
PDNS_ADMIN_PDNS_VERSION: "'4.0'"
|
||||||
PDNS_ADMIN_PDNS_API_KEY: "'secret'"
|
PDNS_ADMIN_PDNS_API_KEY: "'secret'"
|
||||||
tags:
|
tags:
|
||||||
- pdns-admin
|
- pdns-admin
|
||||||
|
|
|
@ -1,19 +1,16 @@
|
||||||
FROM alpine:3.7
|
FROM alpine:3.7
|
||||||
MAINTAINER "Peter Schiffer" <pschiffe@redhat.com>
|
MAINTAINER "Peter Schiffer" <pschiffe@redhat.com>
|
||||||
|
|
||||||
RUN set -xe \
|
RUN apk add --no-cache \
|
||||||
&& apk update --no-cache && apk upgrade --no-cache \
|
curl \
|
||||||
&& apk add --update --no-cache \
|
py-pip \
|
||||||
curl \
|
uwsgi-python \
|
||||||
py-pip \
|
py-mysqldb \
|
||||||
uwsgi-python \
|
py-pyldap \
|
||||||
py-mysqldb \
|
py-cffi \
|
||||||
py-pyldap \
|
py-bcrypt \
|
||||||
py-cffi \
|
mariadb-client
|
||||||
py-bcrypt \
|
|
||||||
mariadb-client \
|
|
||||||
&& rm -rf /var/cache/apk/*
|
|
||||||
|
|
||||||
RUN mkdir -p /opt/powerdns-admin \
|
RUN mkdir -p /opt/powerdns-admin \
|
||||||
&& curl -sSL https://git.0x97.io/0x97/powerdns-admin/repository/master/archive.tar.gz \
|
&& curl -sSL https://git.0x97.io/0x97/powerdns-admin/repository/master/archive.tar.gz \
|
||||||
| tar -xzC /opt/powerdns-admin --strip 1 \
|
| tar -xzC /opt/powerdns-admin --strip 1 \
|
||||||
|
@ -41,10 +38,10 @@ EXPOSE 9494
|
||||||
VOLUME [ "/opt/powerdns-admin/upload" ]
|
VOLUME [ "/opt/powerdns-admin/upload" ]
|
||||||
|
|
||||||
COPY pdns-admin.ini /etc/uwsgi/conf.d/
|
COPY pdns-admin.ini /etc/uwsgi/conf.d/
|
||||||
RUN chown uwsgi: /etc/uwsgi/conf.d/pdns-admin.ini && \
|
RUN chown uwsgi: /etc/uwsgi/conf.d/pdns-admin.ini \
|
||||||
ln -s /etc/uwsgi/uwsgi.ini /etc/uwsgi.ini
|
&& ln -s /etc/uwsgi/uwsgi.ini /etc/uwsgi.ini
|
||||||
|
|
||||||
COPY config.py.tpl /
|
COPY config.py.tpl /
|
||||||
COPY docker-cmd.sh /
|
COPY docker-cmd.sh /
|
||||||
|
|
||||||
CMD [ "/docker-cmd.sh" ]
|
CMD [ "/docker-cmd.sh" ]
|
||||||
|
|
|
@ -8,7 +8,7 @@ RUN dnf -y --setopt=install_weak_deps=False install \
|
||||||
RUN pip3 install envtpl \
|
RUN pip3 install envtpl \
|
||||||
&& rm -rf ~/.cache/*
|
&& rm -rf ~/.cache/*
|
||||||
|
|
||||||
ENV VERSION=4.0.6 \
|
ENV VERSION=4.0 \
|
||||||
PDNS_setuid=recursor \
|
PDNS_setuid=recursor \
|
||||||
PDNS_setgid=recursor \
|
PDNS_setgid=recursor \
|
||||||
PDNS_daemon=no
|
PDNS_daemon=no
|
||||||
|
|
|
@ -1,15 +1,14 @@
|
||||||
FROM alpine:3.7
|
FROM alpine:3.7
|
||||||
MAINTAINER "Peter Schiffer" <pschiffe@redhat.com>
|
MAINTAINER "Peter Schiffer" <pschiffe@redhat.com>
|
||||||
|
|
||||||
RUN set -xe \
|
RUN apk add --no-cache \
|
||||||
&& apk update --no-cache && apk upgrade --no-cache \
|
pdns-recursor \
|
||||||
&& apk add --update --no-cache pdns-recursor python3 \
|
python3
|
||||||
&& rm -rf /var/cache/apk/*
|
|
||||||
|
|
||||||
RUN pip3 install envtpl \
|
RUN pip3 install envtpl \
|
||||||
&& rm -rf ~/.cache/*
|
&& rm -rf ~/.cache/*
|
||||||
|
|
||||||
ENV VERSION=4.0.6 \
|
ENV VERSION=4.0 \
|
||||||
PDNS_setuid=recursor \
|
PDNS_setuid=recursor \
|
||||||
PDNS_setgid=recursor \
|
PDNS_setgid=recursor \
|
||||||
PDNS_daemon=no
|
PDNS_daemon=no
|
||||||
|
|
|
@ -11,7 +11,7 @@ RUN sed -i '/tsflags=nodocs/d' /etc/dnf/dnf.conf \
|
||||||
RUN pip3 install envtpl \
|
RUN pip3 install envtpl \
|
||||||
&& rm -rf ~/.cache/*
|
&& rm -rf ~/.cache/*
|
||||||
|
|
||||||
ENV VERSION=4.0.4 \
|
ENV VERSION=4.0 \
|
||||||
PDNS_guardian=yes \
|
PDNS_guardian=yes \
|
||||||
PDNS_setuid=pdns \
|
PDNS_setuid=pdns \
|
||||||
PDNS_setgid=pdns \
|
PDNS_setgid=pdns \
|
||||||
|
|
|
@ -1,15 +1,17 @@
|
||||||
FROM alpine:3.7
|
FROM alpine:3.7
|
||||||
MAINTAINER "Peter Schiffer" <pschiffe@redhat.com>
|
MAINTAINER "Peter Schiffer" <pschiffe@redhat.com>
|
||||||
|
|
||||||
RUN set -xe \
|
RUN apk add --no-cache \
|
||||||
&& apk update --no-cache && apk upgrade --no-cache \
|
pdns \
|
||||||
&& apk add --update --no-cache pdns pdns-backend-mysql pdns-doc python3 mariadb-client \
|
pdns-backend-mysql \
|
||||||
&& rm -rf /var/cache/apk/*
|
pdns-doc \
|
||||||
|
python3 \
|
||||||
|
mariadb-client
|
||||||
|
|
||||||
RUN pip3 install envtpl \
|
RUN pip3 install envtpl \
|
||||||
&& rm -rf ~/.cache/*
|
&& rm -rf ~/.cache/*
|
||||||
|
|
||||||
ENV VERSION=4.0.4 \
|
ENV VERSION=4.0 \
|
||||||
PDNS_guardian=yes \
|
PDNS_guardian=yes \
|
||||||
PDNS_setuid=pdns \
|
PDNS_setuid=pdns \
|
||||||
PDNS_setgid=pdns \
|
PDNS_setgid=pdns \
|
||||||
|
|
Loading…
Reference in a new issue