From aeb13fb43e90aa93a09eaecd2fe7423b8fa04041 Mon Sep 17 00:00:00 2001 From: Tim Smith Date: Fri, 18 Jan 2019 11:09:45 -0800 Subject: [PATCH] Add support for the opensuse/leap images The previous opensuse images are deprecated on dockerhub. Signed-off-by: Tim Smith --- .kitchen.yml | 1 + README.md | 2 +- lib/kitchen/driver/docker.rb | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.kitchen.yml b/.kitchen.yml index 7d7cda8d..77488aad 100644 --- a/.kitchen.yml +++ b/.kitchen.yml @@ -23,6 +23,7 @@ platforms: - name: opensuse-42.3 driver: image: opensuse:42.3 +- name: opensuse/leap-42 # - name: arch # driver: # image: base/archlinux diff --git a/README.md b/README.md index 57638850..0d93ffae 100644 --- a/README.md +++ b/README.md @@ -133,7 +133,7 @@ suite container for Test Kitchen. Kitchen Docker currently supports: * `debian` or `ubuntu` * `amazonlinux`, `rhel`, `centos`, `fedora` or `oraclelinux` * `gentoo` or `gentoo-paludis` -* `opensuse` or `sles` +* `opensuse/leap`, `opensuse` or `sles` The default will be computed, using the platform name (see the Default Configuration section for more details). diff --git a/lib/kitchen/driver/docker.rb b/lib/kitchen/driver/docker.rb index 05694669..35c8bdb7 100644 --- a/lib/kitchen/driver/docker.rb +++ b/lib/kitchen/driver/docker.rb @@ -232,7 +232,7 @@ def build_dockerfile 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' + when 'opensuse/leap', 'opensuse', 'sles' <<-eos ENV container docker RUN zypper install -y sudo openssh which curl