Simplify apk add commands, some clean ups

This commit is contained in:
Peter Schiffer 2017-12-11 14:57:44 +01:00
parent ad5ddbd894
commit 2422110d64
6 changed files with 29 additions and 31 deletions

View file

@ -153,7 +153,7 @@
- pdns-admin-upload:/opt/powerdns-admin/upload
env:
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'"
tags:
- pdns-admin

View file

@ -1,19 +1,16 @@
FROM alpine:3.7
MAINTAINER "Peter Schiffer" <pschiffe@redhat.com>
RUN set -xe \
&& apk update --no-cache && apk upgrade --no-cache \
&& apk add --update --no-cache \
curl \
py-pip \
uwsgi-python \
py-mysqldb \
py-pyldap \
py-cffi \
py-bcrypt \
mariadb-client \
&& rm -rf /var/cache/apk/*
RUN apk add --no-cache \
curl \
py-pip \
uwsgi-python \
py-mysqldb \
py-pyldap \
py-cffi \
py-bcrypt \
mariadb-client
RUN mkdir -p /opt/powerdns-admin \
&& curl -sSL https://git.0x97.io/0x97/powerdns-admin/repository/master/archive.tar.gz \
| tar -xzC /opt/powerdns-admin --strip 1 \
@ -41,10 +38,10 @@ EXPOSE 9494
VOLUME [ "/opt/powerdns-admin/upload" ]
COPY pdns-admin.ini /etc/uwsgi/conf.d/
RUN chown uwsgi: /etc/uwsgi/conf.d/pdns-admin.ini && \
ln -s /etc/uwsgi/uwsgi.ini /etc/uwsgi.ini
RUN chown uwsgi: /etc/uwsgi/conf.d/pdns-admin.ini \
&& ln -s /etc/uwsgi/uwsgi.ini /etc/uwsgi.ini
COPY config.py.tpl /
COPY docker-cmd.sh /
CMD [ "/docker-cmd.sh" ]
CMD [ "/docker-cmd.sh" ]

View file

@ -8,7 +8,7 @@ RUN dnf -y --setopt=install_weak_deps=False install \
RUN pip3 install envtpl \
&& rm -rf ~/.cache/*
ENV VERSION=4.0.6 \
ENV VERSION=4.0 \
PDNS_setuid=recursor \
PDNS_setgid=recursor \
PDNS_daemon=no

View file

@ -1,15 +1,14 @@
FROM alpine:3.7
MAINTAINER "Peter Schiffer" <pschiffe@redhat.com>
RUN set -xe \
&& apk update --no-cache && apk upgrade --no-cache \
&& apk add --update --no-cache pdns-recursor python3 \
&& rm -rf /var/cache/apk/*
RUN apk add --no-cache \
pdns-recursor \
python3
RUN pip3 install envtpl \
&& rm -rf ~/.cache/*
ENV VERSION=4.0.6 \
ENV VERSION=4.0 \
PDNS_setuid=recursor \
PDNS_setgid=recursor \
PDNS_daemon=no

View file

@ -11,7 +11,7 @@ RUN sed -i '/tsflags=nodocs/d' /etc/dnf/dnf.conf \
RUN pip3 install envtpl \
&& rm -rf ~/.cache/*
ENV VERSION=4.0.4 \
ENV VERSION=4.0 \
PDNS_guardian=yes \
PDNS_setuid=pdns \
PDNS_setgid=pdns \

View file

@ -1,15 +1,17 @@
FROM alpine:3.7
MAINTAINER "Peter Schiffer" <pschiffe@redhat.com>
RUN set -xe \
&& apk update --no-cache && apk upgrade --no-cache \
&& apk add --update --no-cache pdns pdns-backend-mysql pdns-doc python3 mariadb-client \
&& rm -rf /var/cache/apk/*
RUN apk add --no-cache \
pdns \
pdns-backend-mysql \
pdns-doc \
python3 \
mariadb-client
RUN pip3 install envtpl \
&& rm -rf ~/.cache/*
ENV VERSION=4.0.4 \
ENV VERSION=4.0 \
PDNS_guardian=yes \
PDNS_setuid=pdns \
PDNS_setgid=pdns \