Skip to content

Commit

Permalink
Merge pull request #19 from ciprianbadescu/BKR-1613/add-el8-support
Browse files Browse the repository at this point in the history
(BKR-1613) add CentOS8 support
  • Loading branch information
GabrielNagy authored Oct 17, 2019
2 parents 5f8a4c1 + d596ceb commit 0a1cbc9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
5 changes: 0 additions & 5 deletions beaker-docker.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,6 @@ Gem::Specification.new do |s|
s.add_development_dependency 'simplecov'
s.add_development_dependency 'pry', '~> 0.10'

# Documentation dependencies
s.add_development_dependency 'yard'
s.add_development_dependency 'markdown'
s.add_development_dependency 'thin'

# Run time dependencies
s.add_runtime_dependency 'stringify-hash', '~> 0.0.0'
s.add_runtime_dependency 'docker-api'
Expand Down
9 changes: 8 additions & 1 deletion lib/beaker/hypervisor/docker.rb
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,7 @@ def dockerfile_for(host)
RUN apt-get update
RUN apt-get install -y openssh-server openssh-client #{Beaker::HostPrebuiltSteps::DEBIAN_PACKAGES.join(' ')}
EOF
when /cumulus/
when /cumulus/
dockerfile += <<-EOF
RUN apt-get update
RUN apt-get install -y openssh-server openssh-client #{Beaker::HostPrebuiltSteps::CUMULUS_PACKAGES.join(' ')}
Expand All @@ -387,6 +387,13 @@ def dockerfile_for(host)
RUN ssh-keygen -t rsa -f /etc/ssh/ssh_host_rsa_key
RUN ssh-keygen -t dsa -f /etc/ssh/ssh_host_dsa_key
EOF
when /el-8/
dockerfile += <<-EOF
RUN yum clean all
RUN yum install -y sudo openssh-server openssh-clients #{Beaker::HostPrebuiltSteps::RHEL8_PACKAGES.join(' ')}
RUN ssh-keygen -t rsa -f /etc/ssh/ssh_host_rsa_key
RUN ssh-keygen -t dsa -f /etc/ssh/ssh_host_dsa_key
EOF
when /^el-/, /centos/, /fedora/, /redhat/, /eos/
dockerfile += <<-EOF
RUN yum clean all
Expand Down

0 comments on commit 0a1cbc9

Please sign in to comment.