Skip to content

Commit

Permalink
Merge pull request #333 from test-kitchen/fedora
Browse files Browse the repository at this point in the history
On Fedora install the dependencies with dnf not yum
  • Loading branch information
tas50 authored Mar 15, 2019
2 parents bac1803 + b0cc90c commit 9009e85
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion lib/kitchen/driver/docker.rb
Original file line number Diff line number Diff line change
Expand Up @@ -216,14 +216,22 @@ def build_dockerfile
RUN apt-get install -y sudo openssh-server curl lsb-release
eos
config[:disable_upstart] ? disable_upstart + packages : packages
when 'rhel', 'centos', 'fedora', 'oraclelinux', 'amazonlinux'
when 'rhel', 'centos', 'oraclelinux', 'amazonlinux'
<<-eos
ENV container docker
RUN yum clean all
RUN yum install -y sudo openssh-server openssh-clients which curl
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 ''
eos
when 'fedora'
<<-eos
ENV container docker
RUN dnf clean all
RUN dnf install -y sudo openssh-server openssh-clients which curl
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 ''
eos
when 'opensuse', 'sles'
<<-eos
ENV container docker
Expand Down

0 comments on commit 9009e85

Please # to comment.