Skip to content

Commit

Permalink
Update Dockerfile
Browse files Browse the repository at this point in the history
Updated the rsync installation to remove the dependence on an old package which is no longer available.

Also removed the 'MAINTAINER' tag due to it being deprecated by docker.
  • Loading branch information
MaxBed4d authored Jan 19, 2024
1 parent 52b5cfa commit b70011d
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions docker/kayobe/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
# rockylinux:9
ARG BASE_IMAGE="quay.io/centos/centos:stream8"
FROM ${BASE_IMAGE}
MAINTAINER "Will Szumski" <[email protected]>

# Unclear at this time if different environments will change
# control host bootstrap.
Expand All @@ -26,21 +25,17 @@ ENV container docker
# VOLUME [ "/sys/fs/cgroup" ]

# CMD ["/usr/sbin/init"]
# Note on CentOS 8 rsync-3.1.3-14.el8 install:
# Workaround rsync: --sparse-block=1024: unknown option
# Hopepfully they have fixed this issue before this old
# package is removed.
# See: https://bugzilla.redhat.com/show_bug.cgi?id=2043753

ARG BASE_IMAGE="quay.io/centos/centos:stream8"
RUN dnf install epel-release -y && \
dnf update -y --nobest && \
dnf install -y gcc git vim python3-pyyaml \
libffi-devel sudo which openssh-server e2fsprogs \
diffstat diffutils debootstrap procps-ng gdisk util-linux \
dosfstools lvm2 kpartx systemd-udev bash-completion && \
dosfstools lvm2 kpartx systemd-udev bash-completion rsync && \
if [ "$(grep "^PRETTY_NAME=\"Rocky Linux 9" /etc/os-release)" ] ; then \
dnf install -y rsync python3 python3-pip iproute ; else \
dnf install -y python3-virtualenv rsync-3.1.3-14.el8 ; fi && \
dnf install -y python3 python3-pip iproute ; else \
dnf install -y python3-virtualenv ; fi && \
dnf clean all

# Configure lvm not to use udev for device discovery. This allows you to use
Expand Down

0 comments on commit b70011d

Please sign in to comment.