debian: port rvmc docker image to Debian
This commit enables the creation of rvmc docker image by both distros: CentOS and Debian. Test Plan: PASS - Install DC subcloud using Debian image 1. Build rvmc image using stx-debian. 2. Push the new rvmc image to a DC lab registry. 3. Modify the dccommon subcloud_install pointing to the new rvmc image. 4. Install a new subcloud using the new rvmc image. PASS - Install DC subcloud using CentOS image (same steps as Debian) Story: 2009831 Task: 45969 Signed-off-by: Hugo Brito <hugo.brito@windriver.com> Change-Id: I11a9f331cfd1a03d7b5a99223203b240fb31d88b
This commit is contained in:
parent
bfe663f2f5
commit
3f181357cc
1
debian_stable_docker_images.inc
Normal file
1
debian_stable_docker_images.inc
Normal file
@ -0,0 +1 @@
|
|||||||
|
tools/rvmc
|
@ -7,4 +7,3 @@ COPY rvmc.py /usr/local/bin
|
|||||||
ENV debug=0
|
ENV debug=0
|
||||||
ENV target=None
|
ENV target=None
|
||||||
ENTRYPOINT /usr/local/bin/rvmc.py --target $target --debug $debug
|
ENTRYPOINT /usr/local/bin/rvmc.py --target $target --debug $debug
|
||||||
|
|
@ -1,2 +1,4 @@
|
|||||||
BUILDER=docker
|
BUILDER=docker
|
||||||
LABEL=rvmc
|
LABEL=rvmc
|
||||||
|
DOCKER_CONTEXT=../docker
|
||||||
|
DOCKER_FILE=./Dockerfile
|
||||||
|
19
tools/rvmc/debian/Dockerfile
Normal file
19
tools/rvmc/debian/Dockerfile
Normal 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
|
4
tools/rvmc/debian/rvmc.stable_docker_image
Normal file
4
tools/rvmc/debian/rvmc.stable_docker_image
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
BUILDER=docker
|
||||||
|
LABEL=rvmc
|
||||||
|
DOCKER_CONTEXT=../docker
|
||||||
|
DOCKER_FILE=./Dockerfile
|
2
tox.ini
2
tox.ini
@ -48,7 +48,7 @@ deps = {[testenv]deps}
|
|||||||
pylint
|
pylint
|
||||||
commands =
|
commands =
|
||||||
pylint {posargs} --rcfile=./pylint.rc \
|
pylint {posargs} --rcfile=./pylint.rc \
|
||||||
tools/rvmc/centos/docker/rvmc.py \
|
tools/rvmc/docker/rvmc.py \
|
||||||
mtce/src/hwmon/scripts/hwmond_notify.py
|
mtce/src/hwmon/scripts/hwmond_notify.py
|
||||||
|
|
||||||
[testenv:pep8]
|
[testenv:pep8]
|
||||||
|
Loading…
Reference in New Issue
Block a user