-
Notifications
You must be signed in to change notification settings - Fork 67
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #492 from soodpr/add-dockerfile
Added dockerfile
- Loading branch information
Showing
1 changed file
with
24 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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
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" ] |