wartron/yii2docker

Yii2 Docker Module

Installs: 6

Dependents: 0

Suggesters: 0

Security: 0

Stars: 2

Watchers: 2

Forks: 1

Open Issues: 0

Type:yii2-extension

dev-master 2015-08-11 18:48 UTC

This package is not auto-updated.

Last update: 2024-05-01 07:39:47 UTC


README

This provides a simple Yii2 Module to view and interact with the Docker Remote API. It includes simple grid views for both containers and images.

Installation

Add to the modules in config/main.php

If you are using the advanced template you want to add this to backend/config/main.php

You can override the default layout as well.

'modules'    => [
    'docker'  => [
        'class'         => 'wartron\yii2docker\Module',
        'layout'        => '@admin-views/layouts/main',
    ],
],

Optional Override the views by updating the theme pathMap

'view'         => [
    'theme' => [
        'pathMap' => [
            '@vendor/wartron/yii2docker/views' => '@app/views/docker',
        ],
    ],
],

Configuration

This uses my fork of stage1/docker-php found @ wartron/docker-php which is configued with ENV variables.

  • DOCKER_HOST - defaults to unix:///var/run/docker.sock
  • DOCKER_TLS_VERIFY - defaults to 0
  • DOCKER_CERT_PATH -