From 7dab83501db2e33c99b578dbe5bae9809a4a5b36 Mon Sep 17 00:00:00 2001 From: Tim Meusel Date: Sun, 17 Mar 2024 18:51:18 +0100 Subject: [PATCH] Add DockerPodman class This allows us to set the beaker hypervisor not only to `docker`, but also to `docker_podmand`. This enables us to implement podman specific patches (if we ever need to). But it also makes it easier for modules to specify if they want to use podman or docker. See https://github.com/voxpupuli/gha-puppet/pull/48 for reference. --- lib/beaker/hypervisor/container.rb | 8 ++++++++ lib/beaker/hypervisor/container_podman.rb | 8 ++++++++ 2 files changed, 16 insertions(+) create mode 100644 lib/beaker/hypervisor/container.rb create mode 100644 lib/beaker/hypervisor/container_podman.rb diff --git a/lib/beaker/hypervisor/container.rb b/lib/beaker/hypervisor/container.rb new file mode 100644 index 0000000..0b68d16 --- /dev/null +++ b/lib/beaker/hypervisor/container.rb @@ -0,0 +1,8 @@ +# frozen_string_literal: true + +require 'beaker/hypervisor/docker' + +module Beaker + class Container < Beaker::Docker + end +end diff --git a/lib/beaker/hypervisor/container_podman.rb b/lib/beaker/hypervisor/container_podman.rb new file mode 100644 index 0000000..0e7d67b --- /dev/null +++ b/lib/beaker/hypervisor/container_podman.rb @@ -0,0 +1,8 @@ +# frozen_string_literal: true + +require 'beaker/hypervisor/container' + +module Beaker + class ContainerPodman < Beaker::Container + end +end