Skip to content

Commit 733be0c

Browse files
committed
ubi8 use pip for docker module
- added more repos (gpertools-libs) partial-jira-bug: CEM-24319 Change-Id: If51441063b7cf233582bcc2233c04ba24279aede
1 parent f820370 commit 733be0c

File tree

3 files changed

+5
-9
lines changed

3 files changed

+5
-9
lines changed

containers/nodemgr/Dockerfile

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,8 @@ LABEL name=$CONTAINER_NAME \
1414
# for building from rpms
1515
# install chrony, ntp and iputils-clockdiff to enable checking time sync by nodemgr
1616
RUN \
17-
pkgs="contrail-nodemgr python2-docker-2.4.2-1.2.el7.noarch chrony python3-contrail podman" && \
18-
source /etc/os-release && \
19-
if [[ "$ID" != 'rhel' || "$VERSION_ID" != '8.4' ]] ; then \
20-
pkgs+=" ntp" ; \
21-
fi && \
22-
yum install -y $pkgs && \
23-
python2 -m pip install --no-compile grpcio==1.29.0 protobuf==3.12.1 && \
17+
yum install -y contrail-nodemgr python3-contrail chrony podman && \
18+
python2 -m pip install --no-compile "docker==2.4.2" "grpcio==1.29.0" "protobuf==3.12.1" && \
2419
yum clean all -y && \
2520
rm -rf /var/cache/yum
2621

containers/status/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@ LABEL name=$CONTAINER_NAME \
1010
$VENDOR_DOMAIN".container.name"=$CONTAINER_NAME
1111

1212
RUN \
13-
yum install -y python2-docker podman contrail-nodemgr && \
13+
yum install -y podman contrail-nodemgr && \
1414
yum clean all -y && \
1515
rm -rf /var/cache/yum && \
16-
python2 -m pip install --no-compile "grpcio==1.29.0" "protobuf==3.12.1"
16+
python2 -m pip install --no-compile "docker==2.4.2" "grpcio==1.29.0" "protobuf==3.12.1"
1717

1818
COPY contrail-status.py /root
1919
COPY entrypoint.sh /

parse-env.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,7 @@ if [[ "$LINUX_DISTR" =~ 'rhel' ]] ; then
129129
RHEL_HOST_REPOS+=",codeready-builder-for-rhel-8-x86_64-rpms"
130130
RHEL_HOST_REPOS+=",openstack-$rhel_os_repo_num-for-rhel-8-x86_64-rpms"
131131
RHEL_HOST_REPOS+=",ansible-2-for-rhel-8-x86_64-rpms"
132+
RHEL_HOST_REPOS+=",rhocp-4.6-for-rhel-8-x86_64-rpms"
132133
else
133134
# generic repos
134135
RHEL_HOST_REPOS+=",rhel-7-server-rpms,rhel-7-server-extras-rpms,rhel-7-server-optional-rpms"

0 commit comments

Comments
 (0)