Skip to content

Commit

Permalink
Merge pull request #600 from elfosardo/ironicclient-pythonbase
Browse files Browse the repository at this point in the history
🌱 Build ironicclient using debian based python image
  • Loading branch information
metal3-io-bot authored Jan 8, 2025
2 parents 87c1b28 + ee2e7c5 commit 01a282a
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions resources/ironic-client/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
FROM quay.io/centos/centos:stream9
ARG BASE_IMAGE=docker.io/library/python:3.9-slim-bookworm

FROM $BASE_IMAGE

# Help people find the actual baremetal command
COPY scripts/openstack /usr/bin/openstack

RUN dnf install -y python3 python3-pip genisoimage && \
pip install python-ironicclient --prefix /usr --no-cache-dir && \
chmod +x /usr/bin/openstack && \
dnf update -y && \
dnf clean all && \
rm -rf /var/cache/{yum,dnf}/*
RUN apt-get update && \
apt-get install -y genisoimage && \
apt-get clean && \
pip3 install --prefix /usr --no-cache-dir python-ironicclient && \
chmod +x /usr/bin/openstack

ENTRYPOINT ["/usr/bin/baremetal"]

0 comments on commit 01a282a

Please sign in to comment.