Skip to content

Commit cd8954e

Browse files
committed
Add Dockerfile
1 parent 3d855dd commit cd8954e

File tree

2 files changed

+21
-0
lines changed

2 files changed

+21
-0
lines changed

Dockerfile

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
FROM ubuntu:16.04
2+
MAINTAINER Mischa ter Smitten <mtersmitten@oefenweb.nl>
3+
4+
# python
5+
RUN apt-get update && \
6+
DEBIAN_FRONTEND=noninteractive apt-get install -y python-minimal python-dev curl && \
7+
apt-get clean
8+
RUN curl -sL https://bootstrap.pypa.io/get-pip.py | python -
9+
RUN rm -rf $HOME/.cache
10+
11+
# ansible
12+
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y gcc libffi-dev libssl-dev && \
13+
apt-get clean
14+
RUN pip install ansible==2.6.2
15+
RUN rm -rf $HOME/.cache
16+
17+
# provision
18+
COPY . /etc/ansible/roles/ansible-role
19+
WORKDIR /etc/ansible/roles/ansible-role
20+
RUN ansible-playbook -i tests/inventory tests/test.yml --connection=local

vars/main.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
---
33
apt_file_dependencies:
44
- apt-file
5+
- cron
56

67
apt_file_update_job: >
78
test -x /usr/bin/apt-file && /usr/bin/apt-file update

0 commit comments

Comments
 (0)