Skip to content

Commit

Permalink
Merge pull request metal3-io#490 from elfosardo/vbmc-bookworm
Browse files Browse the repository at this point in the history
🌱 Build virtualbmc image using python image
  • Loading branch information
metal3-io-bot authored Apr 2, 2024
2 parents c811c06 + 730ab33 commit e5e5093
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions resources/vbmc/Dockerfile
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

0 comments on commit e5e5093

Please sign in to comment.