-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
28 additions
and
3 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 |
---|---|---|
@@ -1,8 +1,33 @@ | ||
FROM python:3.7-slim-buster | ||
# See README.md to see how to build and run this | ||
FROM python:3.6-slim-buster | ||
|
||
LABEL maintainer "Chebrolu Harika <bala-sai-harika.chebrolu@hpe.com>" | ||
|
||
LABEL maintainer "Priyanka Sood <priyanka.sood@hpe.com>" | ||
WORKDIR /root | ||
|
||
RUN pip install hpOneView==5.0.0 | ||
# Some optional but recommended packages | ||
RUN DEBIAN_FRONTEND=noninteractive \ | ||
apt-get update -y \ | ||
&& apt-get install --no-install-recommends -y \ | ||
vim \ | ||
curl | ||
|
||
# install dependencies to run examples | ||
RUN pip install hpOneView | ||
|
||
ADD . oneview/ | ||
|
||
WORKDIR /root/oneview | ||
|
||
# packages to run tests | ||
RUN cd /root/oneview/ | ||
RUN pip install -r test_requirements.txt | ||
RUN pip install tox | ||
|
||
# Clean and remove not required packages | ||
RUN DEBIAN_FRONTEND=noninteractive \ | ||
apt-get autoremove -y && \ | ||
apt-get clean -y && \ | ||
rm -rf /var/cache/apt/archives/* /var/cache/apt/lists/* /tmp/* /root/cache/. | ||
|
||
CMD ["/bin/bash"] |