Fix rvmc container build

The current rvmc container build has a conflict over the
python3-pip install.

The CentOS repo has a prior version of python3-pip that
requires python3 3.6 but the CENGN repo requires 3.7 due
to the Titanium base image.

The issue is resolved by updating this dockerfile with an
older verison of python3-pip.

Also, Since python3-pip provides pip3 the explicit pip3
install is no longer required.

Change-Id: Ic0cf0d070eaa8f437a043ac52dfa7ecf0e42f957
Story: 2006980
Task: 37775
Signed-off-by: Eric MacDonald <eric.macdonald@windriver.com>
This commit is contained in:
Eric MacDonald 2020-01-20 11:34:07 -05:00
parent a9a2ca64bc
commit 4609dacc5f
1 changed files with 1 additions and 7 deletions

View File

@ -1,16 +1,10 @@
ARG BASE
FROM ${BASE}
MAINTAINER eric.macdonald@windriver.com
RUN yum install -y iproute python3 pip3 datetime time
RUN yum install -y iproute python3-pip-9.0.3-5.el7 datetime time
RUN pip3 install pyyaml redfish
COPY rvmc.py /usr/local/bin
ENV debug=0
ENV target=None
ENTRYPOINT /usr/local/bin/rvmc.py --target $target --debug $debug
# Execution Examples:
#
# sudo docker run -v /etc/rvmc.yaml:/etc/rvmc.yaml rvmc:latest
# sudo docker run -v /etc/rvmc.yaml:/etc/rvmc.yaml --env target=dcloud1 rvmc:latest
# sudo docker run -v /etc/rvmc.yaml:/etc/rvmc.yaml --env target=dcloud1,dcloud2 rvmc:latest
# sudo docker run -v /etc/rvmc.yaml:/etc/rvmc.yaml --env target=dcloud1,dcloud2 --env debug=1 rvmc:latest