-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
29 lines (19 loc) · 898 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
FROM debian:latest
MAINTAINER Ismail Marmoush<marmoushismail@gmail.com>
### Install Utils
RUN apt-get update && apt-get install -y git curl apt-utils gcc make build-essential libssl-dev libffi-dev man nano
RUN apt-get update && apt-get install -y python2.7 python2.7-dev python-dev
RUN curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
RUN python2.7 get-pip.py
RUN pip install --upgrade pip
RUN pip install PyYaml paramiko Jinja2 httplib2 six netaddr
### Install Ansible
ARG ANSIBLE_DIR=/ansible
RUN mkdir -p $ANSIBLE_DIR
RUN git clone git://github.com/ansible/ansible.git --recursive $ANSIBLE_DIR
RUN mkdir -p /etc/ansible
RUN echo 'localhost' > /etc/ansible/hosts
ENV ENV_SETUP ${ANSIBLE_DIR}/hacking/env-setup
RUN echo "source ${ENV_SETUP} -q" >> /etc/bash.bashrc
ENV CODE echo defaultBehaviour
CMD ["/bin/bash","-c","chmod +x ${ENV_SETUP} && source ${ENV_SETUP} -q && ${CODE}"]