lib/kitchen/docker/helpers/dockerfile_helper.rb in kitchen-docker-2.14.0 vs lib/kitchen/docker/helpers/dockerfile_helper.rb in kitchen-docker-2.15.0
- old
+ new
@@ -32,16 +32,18 @@
gentoo_platform
when 'gentoo-paludis'
gentoo_paludis_platform
when 'opensuse/tumbleweed', 'opensuse/leap', 'opensuse', 'sles'
opensuse_platform
- when 'rhel', 'centos', 'oraclelinux', 'amazonlinux', 'rockylinux'
+ when 'rhel', 'centos', 'oraclelinux', 'amazonlinux'
rhel_platform
when 'centosstream'
centosstream_platform
when 'almalinux'
almalinux_platform
+ when 'rockylinux'
+ rockylinux_platform
when 'photon'
photonos_platform
else
raise ActionFailed, "Unknown platform '#{config[:platform]}'"
end
@@ -103,11 +105,11 @@
end
def opensuse_platform
<<-CODE
ENV container docker
- RUN zypper install -y sudo openssh which curl
+ RUN zypper install -y sudo openssh which curl gawk
RUN /usr/sbin/sshd-gen-keys-start
CODE
end
def rhel_platform
@@ -129,9 +131,19 @@
RUN [ -f "/etc/ssh/ssh_host_dsa_key" ] || ssh-keygen -t dsa -f /etc/ssh/ssh_host_dsa_key -N ''
CODE
end
def almalinux_platform
+ <<-CODE
+ ENV container docker
+ RUN yum clean all
+ RUN yum install -y sudo openssh-server openssh-clients which
+ RUN [ -f "/etc/ssh/ssh_host_rsa_key" ] || ssh-keygen -t rsa -f /etc/ssh/ssh_host_rsa_key -N ''
+ RUN [ -f "/etc/ssh/ssh_host_dsa_key" ] || ssh-keygen -t dsa -f /etc/ssh/ssh_host_dsa_key -N ''
+ CODE
+ end
+
+ def rockylinux_platform
<<-CODE
ENV container docker
RUN yum clean all
RUN yum install -y sudo openssh-server openssh-clients which
RUN [ -f "/etc/ssh/ssh_host_rsa_key" ] || ssh-keygen -t rsa -f /etc/ssh/ssh_host_rsa_key -N ''