Class: Floe::ContainerRunner::Podman

Inherits:
Docker show all
Defined in:
lib/floe/container_runner/podman.rb

Constant Summary collapse

DOCKER_COMMAND =
"podman"

Constants included from DockerMixin

DockerMixin::MAX_CONTAINER_NAME_SIZE

Constants inherited from Runner

Runner::OUTPUT_MARKER

Instance Method Summary collapse

Methods inherited from Docker

#cleanup, #output, #run_async!, #running?, #status!, #success?, #wait

Methods included from DockerMixin

#container_name, #image_name

Methods inherited from Runner

#cleanup, for_resource, #output, register_scheme, #run_async!, #running?, #status!, #success?

Constructor Details

#initialize(options = {}) ⇒ Podman

Returns a new instance of Podman.



8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# File 'lib/floe/container_runner/podman.rb', line 8

def initialize(options = {})
  require "awesome_spawn"
  require "securerandom"

  super

  @identity        = options["identity"]
  @log_level       = options["log-level"]
  @network         = options["network"]
  @noout           = options["noout"].to_s == "true" if options.key?("noout")
  @pull_policy     = options["pull-policy"]
  @root            = options["root"]
  @runroot         = options["runroot"]
  @runtime         = options["runtime"]
  @runtime_flag    = options["runtime-flag"]
  @storage_driver  = options["storage-driver"]
  @storage_opt     = options["storage-opt"]
  @syslog          = options["syslog"].to_s == "true" if options.key?("syslog")
  @tmpdir          = options["tmpdir"]
  @transient_store = !!options["transient-store"] if options.key?("transient-store")
  @volumepath      = options["volumepath"]
end