Skip to content

Commit

Permalink
Merge pull request #492 from soodpr/add-dockerfile
Browse files Browse the repository at this point in the history
Added dockerfile
  • Loading branch information
Priyanka Sood committed Apr 9, 2020
2 parents f4f0706 + 38dd9ca commit 05413b2
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
FROM python:3.7-slim-buster

LABEL maintainer "Priyanka Sood <priyanka.sood@hpe.com>"

WORKDIR /root

ENV ONEVIEW_ANSIBLE_VERSION=5.4.0

RUN DEBIAN_FRONTEND=noninteractive \
apt-get update -y \
&& apt-get install --no-install-recommends -y \
openssh-client curl \
&& apt-get clean \
&& apt-get autoremove -y \
&& pip install pyOpenSSL ansible hpOneView==5.0.0 \
&& rm -rf /var/lib/apt/lists/* /tmp/* /root/.cache \
&& curl -SL https://github.com/HewlettPackard/oneview-ansible/archive/v${ONEVIEW_ANSIBLE_VERSION}.tar.gz | \
tar xz \
&& mv oneview-ansible-${ONEVIEW_ANSIBLE_VERSION} oneview-ansible

ENV ANSIBLE_LIBRARY=/root/oneview-ansible/library
ENV ANSIBLE_MODULE_UTILS=/root/oneview-ansible/library/module_utils/

CMD [ "/usr/local/bin/ansible", "--version" ]

0 comments on commit 05413b2

Please sign in to comment.