Dockerfile_centos_6 512 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
FROM centos:6
MAINTAINER Ross McDonald <mcdonaldrossc+docker@gmail.com>

RUN yum install -y wget && \
    wget https://dl.fedoraproject.org/pub/epel/epel-release-latest-6.noarch.rpm && \
    rpm -ivh epel-release-latest-6.noarch.rpm && \
    rm -f epel-release-latest-6.noarch.rpm
    
RUN yum install -y ansible

ENV PROJECT_DIR /root
RUN mkdir -p $PROJECT_DIR

WORKDIR $PROJECT_DIR
VOLUME $PROJECT_DIR
16
ENTRYPOINT [ "ansible-playbook", "-M", "/root", "-c", "local", "-e", "is_docker=true", "-i", "localhost," ]