Sha256: 77d526b17fa3837981553b17659d3459f6ede008c19e8196339a0b7373bdaff1

Contents?: true

Size: 1.08 KB

Versions: 23

Compression:

Stored size: 1.08 KB

Contents

local fileProvider = std.native('provide.file');
local provide(name) = fileProvider(std.toString({ path: 'hello.env' }), name);

{
  scheduler: {
    type: 'ecs',
    region: 'ap-northeast-1',
    cluster: 'eagletmt',
    desired_count: 2,
    task_role_arn: 'arn:aws:iam::012345678901:role/HelloRole',
    deployment_configuration: {
      maximum_percent: 200,
      minimum_healthy_percent: 50,
    },
  },
  app: {
    image: 'ryotarai/hello-sinatra',
    memory: 128,
    cpu: 256,
    health_check: {
      command: [
        'CMD-SHELL',
        'curl -f http://localhost:3000/ || exit 1',
      ],
      interval: 30,
      timeout: 5,
      retries: 3,
      start_period: 1,
    },
    links: [
      'redis:redis',
    ],
    env: {
      PORT: '3000',
      MESSAGE: std.format('%s-san', provide('username')),
    },
  },
  sidecars: {
    front: {
      image_tag: 'hako-nginx',
      memory: 32,
      cpu: 32,
    },
    redis: {
      image_tag: 'redis:3.0',
      cpu: 64,
      memory: 512,
    },
  },
  scripts: [
    (import 'front.libsonnet') + {
      backend_port: 3000,
    },
  ],
}

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
hako-2.17.0 examples/hello.jsonnet
hako-2.16.0 examples/hello.jsonnet
hako-2.15.1 examples/hello.jsonnet
hako-2.15.0 examples/hello.jsonnet
hako-2.14.0 examples/hello.jsonnet
hako-2.13.0 examples/hello.jsonnet
hako-2.12.0 examples/hello.jsonnet
hako-2.11.1 examples/hello.jsonnet
hako-2.11.0 examples/hello.jsonnet
hako-2.10.0 examples/hello.jsonnet
hako-2.9.2 examples/hello.jsonnet
hako-2.9.1 examples/hello.jsonnet
hako-2.9.0 examples/hello.jsonnet
hako-2.8.0 examples/hello.jsonnet
hako-2.7.0 examples/hello.jsonnet
hako-2.6.2 examples/hello.jsonnet
hako-2.6.1 examples/hello.jsonnet
hako-2.6.0 examples/hello.jsonnet
hako-2.5.1 examples/hello.jsonnet
hako-2.5.0 examples/hello.jsonnet