コード例 #1
0
ファイル: dbaas.py プロジェクト: youaani/docker-dbaas
def start(container_id):
    try:
        docker.start_container(container_id)
        print '%s %s' % (ok(), 'Container %s started' % container_id)
        print 'Waiting for database to boot...'
        time.sleep(5)
        return test(container_id)
    except Exception, e:
        print '%s %s' % (ko(), e)
コード例 #2
0
ファイル: dbaas.py プロジェクト: PyxisSolutions/docker-dbaas
def start(container_id):
    try:
        docker.start_container(container_id)
        print '%s %s' % (ok(), 'Container %s started' % container_id)
        print 'Waiting for database to boot...'
        time.sleep(5)
        return test(container_id)
    except Exception, e:
        print '%s %s' % (ko(), e)
コード例 #3
0
def start(c_id):
    docker.start_container(c_id)
    flash('Server successfully started.', 'success')
    return redirect(url_for('index'))
コード例 #4
0
ファイル: webapp.py プロジェクト: PyxisSolutions/docker-dbaas
def start(c_id):
    docker.start_container(c_id)
    flash('Server successfully started.', 'success')
    return redirect(url_for('index'))