Sha256: 9933253fa9f3aa0c2758ba18668d2e863351c95efc5395e2c8d75dd040ac4dce

Contents?: true

Size: 1.06 KB

Versions: 7

Compression:

Stored size: 1.06 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,
        links: [
            'redis:redis',
        ],
        env: {
            PORT: '3000',
            MESSAGE: std.format('%s-san', provide('username')),
        },
    },
    additional_containers: {
        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

7 entries across 7 versions & 1 rubygems

Version Path
hako-2.2.0 examples/hello.jsonnet
hako-2.1.0 examples/hello.jsonnet
hako-2.0.4 examples/hello.jsonnet
hako-2.0.3 examples/hello.jsonnet
hako-2.0.2 examples/hello.jsonnet
hako-2.0.1 examples/hello.jsonnet
hako-2.0.0 examples/hello.jsonnet