Skip to content

Instantly share code, notes, and snippets.

@AndreiPashkin
Created December 18, 2014 07:58
Show Gist options
  • Save AndreiPashkin/e1429df8e864b35dc8ac to your computer and use it in GitHub Desktop.
Save AndreiPashkin/e1429df8e864b35dc8ac to your computer and use it in GitHub Desktop.
Docker cache tests
FROM ubuntu:14.04
MAINTAINER Andrew Pashkin <andrew.pashkin@gmx.co.uk>
RUN apt-get -y update
RUN apt-get install -y software-properties-common
RUN apt-add-repository -y ppa:ansible/ansible
RUN apt-get -y update
RUN apt-get install -y ansible
WORKDIR /tmp/provision/
ADD ./provision.yml /tmp/provision/
RUN ansible-playbook provision.yml
WORKDIR /
ENTRYPOINT ["/bin/bash"]
---
- name: tests configuration
hosts: 127.0.0.1
connection: local
sudo: yes
tasks:
apt: name=htop state=latest update_cache=yes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment