Exemplo n.º 1
0
def get_app_backends(appname, entrypoint):
    backends = []
    containers = eru.list_app_containers(appname, limit=100)
    for container in containers['containers']:
        if container['entrypoint'] != entrypoint:
            continue
        backends.extend(container['backends'])
    return backends
Exemplo n.º 2
0
def get_containers():
    appname = request.args.get('app', '')
    if not appname:
        raise ValueError('Need appname set')

    version = request.args.get('version', '')
    if version:
        return eru.list_version_containers(appname, version, g.start, g.limit)
    return eru.list_app_containers(appname, g.start, g.limit)
Exemplo n.º 3
0
def containers(name):
    containers = eru.list_app_containers(name)
    containers = containers['containers']
    return render_template('/deploy/projects/containers.html',
            containers=containers, name=name)