feat: add dockerfile for ansible

This commit is contained in:
Adrien Waksberg 2019-05-09 20:17:20 +02:00
parent 18345c93ca
commit 0550856889
4 changed files with 86 additions and 0 deletions

17
ansible/centos Normal file
View file

@ -0,0 +1,17 @@
FROM centos:7
MAINTAINER Adrien Waksberg "docker@yae.im"
ARG ANSIBLE_VERSION=2.5.14.0
RUN systemctl mask -- \
sys-fs-fuse-connections.mount \
dev-hugepages.mount \
systemd-tmpfiles-setup.service \
cgmanager.service
RUN curl https://www.getchef.com/chef/install.sh | bash
RUN curl https://raw.githubusercontent.com/neillturner/omnibus-ansible/master/ansible_install.sh | bash -s -v ${ANSIBLE_VERSION}
RUN yum install -y iproute
VOLUME ["/sys/fs/cgroup", "/run", "/run/lock"]
CMD ["/usr/sbin/init"]

23
ansible/debian9 Normal file
View file

@ -0,0 +1,23 @@
FROM debian:stretch
MAINTAINER Adrien Waksberg "docker@yae.im"
ARG ANSIBLE_VERSION=2.7.7.0
RUN apt update && \
apt dist-upgrade -y && \
apt install -y dbus systemd curl vim sudo apt-utils lsb-release && \
apt-get clean autoclean
RUN systemctl mask -- \
sys-fs-fuse-connections.mount \
dev-hugepages.mount \
systemd-tmpfiles-setup.service \
cgmanager.service
RUN curl https://www.getchef.com/chef/install.sh | bash && \
apt-get clean autoclean
RUN curl https://raw.githubusercontent.com/neillturner/omnibus-ansible/master/ansible_install.sh | bash -s -v ${ANSIBLE_VERSION} && \
apt-get clean autoclean
VOLUME ["/sys/fs/cgroup", "/run", "/run/lock"]
CMD ["/lib/systemd/systemd"]

23
ansible/ubuntu16.04 Normal file
View file

@ -0,0 +1,23 @@
FROM ubuntu:16.04
MAINTAINER Adrien Waksberg "docker@yae.im"
ARG ANSIBLE_VERSION=2.5.14.0
RUN apt update && \
apt dist-upgrade -y && \
apt install -y dbus systemd iproute2 curl vim sudo apt-utils lsb-release && \
apt-get clean autoclean
RUN systemctl mask -- \
sys-fs-fuse-connections.mount \
dev-hugepages.mount \
systemd-tmpfiles-setup.service \
cgmanager.service
RUN curl https://www.getchef.com/chef/install.sh | bash && \
apt-get clean autoclean
RUN curl https://raw.githubusercontent.com/neillturner/omnibus-ansible/master/ansible_install.sh | bash -s -v ${ANSIBLE_VERSION} && \
apt-get clean autoclean
VOLUME ["/sys/fs/cgroup", "/run", "/run/lock"]
CMD ["/lib/systemd/systemd"]

23
ansible/ubuntu18.04 Normal file
View file

@ -0,0 +1,23 @@
FROM ubuntu:18.04
MAINTAINER Adrien Waksberg "docker@yae.im"
ARG ANSIBLE_VERSION=2.7.7.0
RUN apt update && \
apt dist-upgrade -y && \
apt install -y dbus systemd iproute2 curl vim sudo apt-utils lsb-release && \
apt-get clean autoclean
RUN systemctl mask -- \
sys-fs-fuse-connections.mount \
dev-hugepages.mount \
systemd-tmpfiles-setup.service \
cgmanager.service
RUN curl https://www.getchef.com/chef/install.sh | bash && \
apt-get clean autoclean
RUN curl https://raw.githubusercontent.com/neillturner/omnibus-ansible/master/ansible_install.sh | bash -s -v ${ANSIBLE_VERSION} && \
apt-get clean autoclean
VOLUME ["/sys/fs/cgroup", "/run", "/run/lock"]
CMD ["/lib/systemd/systemd"]