Created
April 7, 2017 07:24
-
-
Save SweBarre/c3db25bc79552aae9834246bf33d72ae to your computer and use it in GitHub Desktop.
Docker file for ansible, ansible oneview module testing
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 python:3 | |
# Install hpOveView SDK and ansible | |
RUN pip3 install --no-cache-dir hpOneView ansible | |
# install ansible oneview module | |
WORKDIR /root | |
ENV ONEVIEW_ANSIBLE_MODULE_VERSION 3.1.0 | |
ENV ANSIBLE_LIBRARY /root/oneview-ansible-${ONEVIEW_ANSIBLE_MODULE_VERSION}/library | |
RUN wget https://github.com/HewlettPackard/oneview-ansible/archive/v${ONEVIEW_ANSIBLE_MODULE_VERSION}.tar.gz && \ | |
tar xvzf v${ONEVIEW_ANSIBLE_MODULE_VERSION}.tar.gz && \ | |
rm v${ONEVIEW_ANSIBLE_MODULE_VERSION}.tar.gz | |
VOLUME /root/playbooks | |
WORKDIR /root/playbooks | |
CMD ['/bin/bash'] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment