ansible-role-nginx/tests/dockerfiles/Dockerfile.ubuntu-trusty
Alessandro Fael Garcia 2b72889d90 Test role across multiple distributions
Implement support to test the role in multiple Linux distributions by deploying Docker containers within Travis
2018-04-13 15:26:00 -07:00

13 lines
395 B
Docker

FROM ubuntu:trusty
RUN apt-get update && apt-get dist-upgrade -y && apt-get install -y software-properties-common && rm -rf /var/lib/apt/lists/*
RUN apt-add-repository -y ppa:ansible/ansible && apt-get update && apt-get install -y \
git \
ansible \
&& rm -rf /var/lib/apt/lists/*
RUN echo "[local]\nlocalhost ansible_connection=local" > /etc/ansible/hosts
ENTRYPOINT ["/sbin/init"]