Skip to content

Commit

Permalink
Merge pull request #48 from stackhpc/rsync-build-fix-from-main
Browse files Browse the repository at this point in the history
Update Dockerfile
  • Loading branch information
Alex-Welsh authored Jan 19, 2024
2 parents 52b5cfa + 489fb0f commit 8cd1099
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions docker/kayobe/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# rockylinux:9
ARG BASE_IMAGE="quay.io/centos/centos:stream8"
FROM ${BASE_IMAGE}
MAINTAINER "Will Szumski" <[email protected]>
LABEL maintainer="Will Szumski [email protected]"

# Unclear at this time if different environments will change
# control host bootstrap.
Expand All @@ -26,21 +26,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 8cd1099

Please sign in to comment.