Puppet Class: profile::wmcs::striker::docker

Defined in:
modules/profile/manifests/wmcs/striker/docker.pp

Overview

Class profile::wmcs::striker::docker

Run Striker container using Docker

Parameters

port

Port that should be exposed for ingress to app

version

Container tag to deploy.

env

Key-value hash pf env variables to pass to the container.

secret_env

Additional env variables to pass to the container. Useful for setting configuration values that for one reason or another cannot be provided via `env` (probably because the values need to be kept out of public hiera files).

SPDX-License-Identifier: Apache-2.0

Parameters:

  • port (Stdlib::Port::User) (defaults to: lookup('profile::wmcs::striker::docker::port'))
  • version (String) (defaults to: lookup('profile::wmcs::striker::docker::version'))
  • env (Hash) (defaults to: lookup('profile::wmcs::striker::docker::env'))
  • secret_env (Hash) (defaults to: lookup('profile::wmcs::striker::docker::secret_env', { 'default_value' => {} } ))


19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# File 'modules/profile/manifests/wmcs/striker/docker.pp', line 19

class profile::wmcs::striker::docker(
    Stdlib::Port::User $port = lookup('profile::wmcs::striker::docker::port'),
    String $version          = lookup('profile::wmcs::striker::docker::version'),
    Hash $env                = lookup('profile::wmcs::striker::docker::env'),
    Hash $secret_env         = lookup('profile::wmcs::striker::docker::secret_env', { 'default_value' => {} } ),
) {
    require ::profile::docker::engine
    require ::profile::docker::ferm
    service::docker { 'striker':
        namespace    => 'wikimedia',
        image_name   => 'labs-striker',
        version      => $version,
        port         => $port,
        environment  => deep_merge($env, $secret_env),
        host_network => true,
    }
}