Skip to content

Instantly share code, notes, and snippets.

@SweBarre
Created April 7, 2017 07:24
Show Gist options
  • Save SweBarre/c3db25bc79552aae9834246bf33d72ae to your computer and use it in GitHub Desktop.
Save SweBarre/c3db25bc79552aae9834246bf33d72ae to your computer and use it in GitHub Desktop.
Docker file for ansible, ansible oneview module testing
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