Commit 725aecb3 authored by Ross McDonald's avatar Ross McDonald
Browse files

Add Dockerfiles and update readme.

parent b5959593
FROM centos:5
MAINTAINER Ross McDonald <mcdonaldrossc+docker@gmail.com>
# Install necessary Ansible dependencies
RUN yum install -y wget && \
wget dl.fedoraproject.org/pub/epel/5/x86_64/epel-release-5-4.noarch.rpm && \
rpm -ivh epel-release-5-4.noarch.rpm && \
rm -f epel-release-5-4.noarch.rpm && \
yum install -y python26 gcc make
RUN wget --no-check-certificate https://bootstrap.pypa.io/get-pip.py && \
python26 get-pip.py && \
rm -f get-pip.py
RUN pip2.6 install ansible
ENV PROJECT_DIR /root
RUN mkdir -p $PROJECT_DIR
WORKDIR $PROJECT_DIR
VOLUME $PROJECT_DIR
ENTRYPOINT [ "ansible-playbook", "-c", "local", "-e", "is_docker=true", "-i", "localhost," ]
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
ENTRYPOINT [ "ansible-playbook", "-c", "local", "-e", "is_docker=true", "-i", "localhost," ]
FROM centos:7
MAINTAINER Ross McDonald <mcdonaldrossc+docker@gmail.com>
RUN yum install -y wget && \
wget https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm && \
rpm -ivh epel-release-latest-7.noarch.rpm && \
rm -f epel-release-latest-7.noarch.rpm
RUN yum install -y ansible
ENV PROJECT_DIR /root
RUN mkdir -p $PROJECT_DIR
WORKDIR $PROJECT_DIR
VOLUME $PROJECT_DIR
ENTRYPOINT [ "ansible-playbook", "-c", "local", "-e", "is_docker=true", "-i", "localhost," ]
FROM ubuntu:trusty
MAINTAINER Ross McDonald <mcdonaldrossc+docker@gmail.com>
RUN apt-get update && \
apt-get install -y \
python-apt \
python-pip \
python-dev \
python-setuptools
RUN pip install ansible
ENV PROJECT_DIR /root
RUN mkdir -p $PROJECT_DIR
WORKDIR $PROJECT_DIR
VOLUME $PROJECT_DIR
ENTRYPOINT [ "ansible-playbook", "-c", "local", "-e", "is_docker=true", "-i", "localhost," ]
FROM ubuntu:wily
MAINTAINER Ross McDonald <mcdonaldrossc+docker@gmail.com>
RUN apt-get update && \
apt-get install -y \
python-apt \
python-pip \
python-dev \
python-setuptools
RUN pip install ansible
ENV PROJECT_DIR /root
RUN mkdir -p $PROJECT_DIR
WORKDIR $PROJECT_DIR
VOLUME $PROJECT_DIR
ENTRYPOINT [ "ansible-playbook", "-c", "local", "-e", "is_docker=true", "-i", "localhost," ]
FROM ubuntu:xenial
MAINTAINER Ross McDonald <mcdonaldrossc+docker@gmail.com>
RUN apt-get update && \
apt-get install -y \
python-apt \
python-pip \
python-dev \
python-setuptools
RUN pip install ansible
ENV PROJECT_DIR /root
RUN mkdir -p $PROJECT_DIR
WORKDIR $PROJECT_DIR
VOLUME $PROJECT_DIR
ENTRYPOINT [ "ansible-playbook", "-c", "local", "-e", "is_docker=true", "-i", "localhost," ]
#!/bin/bash
# This script will build all of the needed containers
function err {
echo "ERROR: $@"
exit 1
}
echo "Building CentOS containers..."
docker build -f Dockerfile_centos_6 -t ansible.influxdb.centos.6:latest . || err "Could not build CentOS 6 container"
docker build -f Dockerfile_centos_7 -t ansible.influxdb.centos.7:latest . || err "Could not build CentOS 6 container"
echo "Building Ubuntu containers..."
docker build -f Dockerfile_ubuntu_trusty -t ansible.influxdb.ubuntu.trusty:latest . || err "Could not build Ubuntu Trusty container"
docker build -f Dockerfile_ubuntu_wily -t ansible.influxdb.ubuntu.wily:latest . || err "Could not build Ubuntu Wily container"
docker build -f Dockerfile_ubuntu_xenial -t ansible.influxdb.ubuntu.xenial:latest . || err "Could not build Ubuntu Xenial container"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment