Skip to content

Commit 01a282a

Browse files
Merge pull request #600 from elfosardo/ironicclient-pythonbase
🌱 Build ironicclient using debian based python image
2 parents 87c1b28 + ee2e7c5 commit 01a282a

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

resources/ironic-client/Dockerfile

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
1-
FROM quay.io/centos/centos:stream9
1+
ARG BASE_IMAGE=docker.io/library/python:3.9-slim-bookworm
2+
3+
FROM $BASE_IMAGE
24

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

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

1314
ENTRYPOINT ["/usr/bin/baremetal"]

0 commit comments

Comments
 (0)