Created
October 31, 2017 08:39
-
-
Save btseytlin/5cabd9ceb211d97230e9a8bf757dc47b to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM gliderlabs/alpine:3.4 | |
RUN \ | |
apk-install \ | |
curl \ | |
openssh-client \ | |
python \ | |
py-boto \ | |
py-dateutil \ | |
py-httplib2 \ | |
py-jinja2 \ | |
py-paramiko \ | |
py-pip \ | |
py-setuptools \ | |
py-yaml \ | |
tar && \ | |
pip install --upgrade pip python-keyczar && \ | |
rm -rf /var/cache/apk/* | |
RUN mkdir /etc/ansible/ /ansible | |
RUN \ | |
curl -fsSL https://releases.ansible.com/ansible/ansible-2.2.2.0.tar.gz -o ansible.tar.gz && \ | |
tar -xzf ansible.tar.gz -C ansible --strip-components 1 && \ | |
rm -fr ansible.tar.gz /ansible/docs /ansible/examples /ansible/packaging | |
RUN mkdir -p /ansible/exploitation/ | |
WORKDIR /ansible/exploitation/ | |
ENV ANSIBLE_GATHERING smart | |
ENV ANSIBLE_HOST_KEY_CHECKING false | |
ENV ANSIBLE_RETRY_FILES_ENABLED false | |
ENV ANSIBLE_ROLES_PATH /ansible/exploitation/roles | |
ENV ANSIBLE_SSH_PIPELINING True | |
ENV PATH /ansible/bin:$PATH | |
ENV PYTHONPATH /ansible/lib | |
RUN apk add --update bash && rm -rf /var/cache/apk/* | |
ENTRYPOINT ["/bin/bash"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment