forked from metal3-io/ironic-image
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request metal3-io#490 from elfosardo/vbmc-bookworm
🌱 Build virtualbmc image using python image
- Loading branch information
Showing
1 changed file
with
12 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,15 @@ | ||
ARG BASE_IMAGE=quay.io/centos/centos:stream9 | ||
ARG BASE_IMAGE=docker.io/library/python:3.9.18-slim-bookworm | ||
|
||
FROM $BASE_IMAGE | ||
|
||
# Configure OpenStack repos from RDO https://www.rdoproject.org | ||
RUN dnf upgrade -y && \ | ||
dnf install -y dnf-plugins-core && \ | ||
dnf config-manager --enable crb && \ | ||
curl https://trunk.rdoproject.org/centos9-master/puppet-passed-ci/delorean.repo -o /etc/yum.repos.d/rdo.repo && \ | ||
curl https://trunk.rdoproject.org/centos9-master/delorean-deps.repo -o /etc/yum.repos.d/rdo-deps.repo && \ | ||
dnf install -y python3-virtualbmc && \ | ||
dnf clean all && \ | ||
rm -rf /var/cache/{yum,dnf}/* | ||
|
||
CMD /usr/bin/vbmcd --foreground | ||
ARG VIRTUALBMC_VERSION="3.1.0" | ||
ARG DEBIAN_FRONTEND=noninteractive | ||
|
||
RUN apt-get update && \ | ||
apt-get install -y libvirt-dev ssh gcc && \ | ||
apt-get clean && \ | ||
pip3 install --no-cache-dir \ | ||
virtualbmc=="${VIRTUALBMC_VERSION}" && \ | ||
apt-get --purge autoremove -y gcc | ||
|
||
CMD /usr/local/bin/vbmcd --foreground |