Skip to content
This repository has been archived by the owner on Dec 10, 2024. It is now read-only.

Commit

Permalink
install ironic client with pip in docker build
Browse files Browse the repository at this point in the history
With the sunset of the tripleo-repos project,
the docker build started failing. It appears that using pip
is now the preferred method for installing the ironic-client
for Python instead of using RPM packages.
To fix the docker build, switch the build to use
 pip for installation.

Signed-off-by: NymanRobin <[email protected]>
  • Loading branch information
NymanRobin committed May 28, 2024
1 parent df0f859 commit eb84847
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,11 @@ FROM quay.io/centos/centos:stream9
# Help people find the actual baremetal command
COPY scripts/openstack /usr/bin/openstack

RUN dnf install -y python3 python3-requests && \
curl https://raw.githubusercontent.com/openstack/tripleo-repos/master/plugins/module_utils/tripleo_repos/main.py | python3 - -b master current-tripleo && \
dnf update -y --setopt=install_weak_deps=False && \
dnf install -y --setopt=install_weak_deps=False python3-ironicclient python3-ironic-inspector-client && \
RUN dnf install -y python3 python3-pip && \
pip install python-ironicclient python-ironic-inspector-client --no-cache-dir && \
chmod +x /usr/bin/openstack && \
dnf update -y && \
dnf clean all && \
rm -rf /var/cache/{yum,dnf}/* && \
chmod +x /usr/bin/openstack
rm -rf /var/cache/{yum,dnf}/*

ENTRYPOINT ["/usr/bin/baremetal"]

0 comments on commit eb84847

Please sign in to comment.