Skip to content

Instantly share code, notes, and snippets.

@porjo
Last active August 29, 2015 14:12
Show Gist options
  • Save porjo/12596d8f71a0f16ba339 to your computer and use it in GitHub Desktop.
Save porjo/12596d8f71a0f16ba339 to your computer and use it in GitHub Desktop.
pdnscontrol Dockerfile
FROM centos:centos7
RUN yum makecache
RUN yum update -y
RUN yum install -y git gcc postgresql-devel python-devel python-virtualenv openssl-devel
# We need newer mariadb-devel package due to this bug: https://bugzilla.redhat.com/show_bug.cgi?id=1166603
RUN yum install -y http://mirror.aarnet.edu.au/pub/MariaDB/mariadb-5.5.41/yum/centos7-amd64/rpms/MariaDB-5.5.41-centos7_0-x86_64-devel.rpm http://mirror.aarnet.edu.au/pub/MariaDB/mariadb-5.5.41/yum/centos7-amd64/rpms/MariaDB-5.5.41-centos7_0-x86_64-common.rpm
RUN easy_install pip
RUN adduser pdnscontrol
WORKDIR /home/pdnscontrol
RUN git clone https://github.com/PowerDNS/pdnscontrol.git
RUN cd pdnscontrol; pip install -r requirements.txt
RUN chown pdnscontrol /home/pdnscontrol -R
USER pdnscontrol
ADD pdnscontrol.conf /home/pdnscontrol/pdnscontrol/instance/pdnscontrol.conf
EXPOSE 8086
CMD ["./pdnscontrol/pdnscontrold"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment