Skip to content

Commit

Permalink
Switch to Fedora 38
Browse files Browse the repository at this point in the history
Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
  • Loading branch information
s0undt3ch committed Nov 24, 2023
1 parent 4d3f332 commit 0956079
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 10 deletions.
2 changes: 1 addition & 1 deletion custom/virt-minion/init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ if [[ -z "${HOST_UUID}" ]]; then
fi
echo "host_uuid = \"$HOST_UUID\"" >> /etc/libvirt/libvirtd.conf

env USE_STATIC_REQUIREMENTS=1 pip3 install -e /salt
env USE_STATIC_REQUIREMENTS=1 python${SALT_PY_VERSION} -m pip install -e /salt
/usr/sbin/sshd
virtlogd -d

Expand Down
26 changes: 17 additions & 9 deletions custom/virt-minion/latest.Dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
# Since 3006.x does not have Py3.11 linux requirements files, we need to stay on
# Fedora 36 so that we install Salt under Py3.10
FROM registry.fedoraproject.org/fedora:36
# Since 3006.x does not have Py3.11 linux requirements files, we need to stay on Py3.10
FROM registry.fedoraproject.org/fedora:38

ENV SALT_PY_VERSION=3.10
RUN dnf update -y && \
dnf install -y --setopt=tsflags=nodocs --setopt=install_weak_deps=False \
libvirt-devel \
libvirt-libs \
libvirt-daemon-driver-qemu \
libvirt-daemon-driver-storage-core \
libvirt-client \
Expand All @@ -25,14 +27,20 @@ RUN dnf update -y && \
rustc \
cargo \
libffi-devel \
python3 \
python3-devel \
python3-pip \
python3-psutil \
python3-libvirt && \
python${SALT_PY_VERSION} \
python${SALT_PY_VERSION}-libs \
python${SALT_PY_VERSION}-devel && \
dnf clean all

RUN env USE_STATIC_REQUIREMENTS=1 pip3 install --no-cache-dir salt
RUN dnf update -y && \
dnf install -y --setopt=tsflags=nodocs --setopt=install_weak_deps=False \
libvirt-devel libvirt-libs && \
dnf clean all

RUN python${SALT_PY_VERSION} -m ensurepip && \
python${SALT_PY_VERSION} -m pip install build wheel && \
python${SALT_PY_VERSION} -m pip install libvirt-python && \
env USE_STATIC_REQUIREMENTS=1 python${SALT_PY_VERSION} -m pip install --no-cache-dir salt

RUN echo 'listen_tls = 1' >> /etc/libvirt/libvirtd.conf; \
echo 'listen_tcp = 1' >> /etc/libvirt/libvirtd.conf; \
Expand Down

0 comments on commit 0956079

Please sign in to comment.