Dockerfile 921 Bytes
Newer Older
1 2 3 4
FROM centos:centos7
MAINTAINER BIND 9 Developers <bind9-dev@isc.org>
RUN yum -y upgrade
RUN yum -y install epel-release
5
RUN yum -y install git iproute jq make mock python-pip
6
RUN pip install cloudsmith-cli
7
RUN yum -y install python-configparser
8
RUN sed -i '/^\[main\]$/aip_resolve=4' /etc/yum.conf /etc/mock/epel-{6,7,8}-x86_64.cfg
9
RUN sed -i 's/\(ip_resolve = CaselessSelectionOption(\)/\1default="ipv4",/' /usr/lib/python2.7/site-packages/yum/config.py
10 11
COPY cloudsmith-isc-bind-dev.repo /etc/yum.repos.d/
RUN echo "config_opts['yum.conf'] += '''$(cat /etc/yum.repos.d/cloudsmith-isc-bind-dev.repo)'''" | tee -a /etc/mock/epel-{6,7,8}-x86_64.cfg
12 13 14
RUN echo "config_opts['print_main_output'] = True" | tee -a /etc/mock/epel-{6,7,8}-x86_64.cfg
RUN echo "config_opts['use_nspawn'] = False" | tee -a /etc/mock/epel-{7,8}-x86_64.cfg
RUN echo "config_opts['use_bootstrap_container'] = True" | tee -a /etc/mock/epel-8-x86_64.cfg