Merge "debian: port rvmc docker image to Debian"

This commit is contained in:
Zuul 2022-08-13 03:00:35 +00:00 committed by Gerrit Code Review
commit d488c2879d
11 changed files with 27 additions and 2 deletions

View File

@ -0,0 +1 @@
tools/rvmc

View File

@ -7,4 +7,3 @@ COPY rvmc.py /usr/local/bin
ENV debug=0
ENV target=None
ENTRYPOINT /usr/local/bin/rvmc.py --target $target --debug $debug

View File

@ -1,2 +1,4 @@
BUILDER=docker
LABEL=rvmc
DOCKER_CONTEXT=../docker
DOCKER_FILE=./Dockerfile

View File

@ -0,0 +1,19 @@
ARG BASE
FROM ${BASE}
ENV debug=0
ENV target=None
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get -y update \
&& apt-get -y install \
iproute2 \
iputils-ping \
python3-pip \
ntp \
time
RUN pip3 install pyyaml \
&& pip3 install redfish
COPY ./rvmc.py /usr/local/bin
ENTRYPOINT /usr/local/bin/rvmc.py --target $target --debug $debug

View File

@ -0,0 +1,4 @@
BUILDER=docker
LABEL=rvmc
DOCKER_CONTEXT=../docker
DOCKER_FILE=./Dockerfile

View File

@ -48,7 +48,7 @@ deps = {[testenv]deps}
pylint
commands =
pylint {posargs} --rcfile=./pylint.rc \
tools/rvmc/centos/docker/rvmc.py \
tools/rvmc/docker/rvmc.py \
mtce/src/hwmon/scripts/hwmond_notify.py
[testenv:pep8]