portmgr


Nameportmgr JSON
Version 1.2.2 PyPI version JSON
download
home_pagehttps://github.com/Craeckie/portmgr
SummarySimple command interface to manage multiple Docker container
upload_time2021-07-26 18:59:42
maintainer
docs_urlNone
author
requires_python
licenseCreative Commons Attribution-Noncommercial-Share Alike license
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # dckrmgr
### Prerequisites
The easiest way ist through [pip3](https://pypi.python.org/pypi/pip) (Ubuntu: `apt-get install python3-pip`):
* [docker-py](https://github.com/docker/docker-py): `pip3 install docker-py`
* [jsonschema](https://pypi.python.org/pypi/jsonschema): `pip3 install jsonschema`

### Installation
```
git clone git@github.com:theascone/dckrmgr.git
mkdir -p /usr/local/src/dckr
mv dckrmgr/* /usr/local/src/dckr
ln -s /usr/local/src/dckr/dckrmgr /usr/local/bin/dckrmgr
```

### Usage

#### Dckrcnf.json
**Example:**
```
{
    "name": "phabricator",

    "image": {
        "name": "theascone/docker_phabricator",
        "version": "latest"
    },

    "hostname": "phabricator.weiltoast.de",

    "environment": [
        {
            "name": "MYSQL_USER",
              "value": "phabricator"
        },
        {
            "name": "MYSQL_PASS",
            "value": "xyz"
        }
    ],
    "volumes": [
        {
            "host_path": "var_log",
            "container_path": "/var/log",
            "mode": "rw"
        },
        {
            "host_path": "/var/run/docker.sock",
            "container_path": "/tmp/docker.sock",
            "mode": "ro"
        }
    ],
    "ports": [
        {
            "container_port": 22,
            "host_port": 22
        },
        {
            "container_port": 22280,
            "host_port": 22280
        }
    ],
    "links": [
        {
            "name": "mysql_phabricator",
            "alias": "mysql"
        }
    ]
}

```
**Equivalents to Docker CLI:**
<table>
    <tr>
        <td><b>Dckrcnf</b></td>
        <td><b>Docker CLI</b></td>
        <td><b>Comment</b></td>
    </tr>
    <tr>
        <td>name</td>
        <td>--name</td>
    </tr>
    <tr>
      <td>
      image(name, version)
      </td>
      <td>name:version</td>
    </tr>
    <tr>
      <td>hostname</td>
      <td>--hostname (-h)</td>
    </tr>
    <tr>
      <td>environment[(name, value)]</td>
      <td>--env (-e)</td>
      <td>Json Array</td>
    </tr>
    <tr>
      <td>volumes[(host_path, container_path, mode)]</td>
      <td>--volume (-v) host_path:container_path:mode</td>
      <td>host_path can be relative to location of dckrcnf.json</td>
      <td>Json Array</td>
    </tr>
    <tr>
      <td>ports[(container_port, host_port)]</td>
      <td>--publish (-p) host_port:container_port</td>
      <td>Json Array</td>
    </tr>
    <tr>
      <td>links[(name, alias)]</td>
      <td>--link name:alias</td>
      <td>Json Array</td>
    </tr>

</table>


### dckrmgr
```
dckrmgr [-h] [-D P_CWD_TOP] [-R] [-t] [-r] [-c] [-s]

optional arguments:
  -h, --help    show this help message and exit
  -D P_CWD_TOP  Set working directory
  -R            Use dckrsub.json files to recursively apply operations
  -t            Stop container
  -r            Remove container
  -c            Create container
  -s            Start container

```



            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/Craeckie/portmgr",
    "name": "portmgr",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "",
    "author": "",
    "author_email": "",
    "download_url": "https://files.pythonhosted.org/packages/91/cd/9c117d59a01e049221b0c77365495588427e5116c0b5857fb7ce7b9afdf5/portmgr-1.2.2.tar.gz",
    "platform": "",
    "description": "# dckrmgr\n### Prerequisites\nThe easiest way ist through [pip3](https://pypi.python.org/pypi/pip) (Ubuntu: `apt-get install python3-pip`):\n* [docker-py](https://github.com/docker/docker-py): `pip3 install docker-py`\n* [jsonschema](https://pypi.python.org/pypi/jsonschema): `pip3 install jsonschema`\n\n### Installation\n```\ngit clone git@github.com:theascone/dckrmgr.git\nmkdir -p /usr/local/src/dckr\nmv dckrmgr/* /usr/local/src/dckr\nln -s /usr/local/src/dckr/dckrmgr /usr/local/bin/dckrmgr\n```\n\n### Usage\n\n#### Dckrcnf.json\n**Example:**\n```\n{\n    \"name\": \"phabricator\",\n\n    \"image\": {\n        \"name\": \"theascone/docker_phabricator\",\n        \"version\": \"latest\"\n    },\n\n    \"hostname\": \"phabricator.weiltoast.de\",\n\n    \"environment\": [\n        {\n            \"name\": \"MYSQL_USER\",\n              \"value\": \"phabricator\"\n        },\n        {\n            \"name\": \"MYSQL_PASS\",\n            \"value\": \"xyz\"\n        }\n    ],\n    \"volumes\": [\n        {\n            \"host_path\": \"var_log\",\n            \"container_path\": \"/var/log\",\n            \"mode\": \"rw\"\n        },\n        {\n            \"host_path\": \"/var/run/docker.sock\",\n            \"container_path\": \"/tmp/docker.sock\",\n            \"mode\": \"ro\"\n        }\n    ],\n    \"ports\": [\n        {\n            \"container_port\": 22,\n            \"host_port\": 22\n        },\n        {\n            \"container_port\": 22280,\n            \"host_port\": 22280\n        }\n    ],\n    \"links\": [\n        {\n            \"name\": \"mysql_phabricator\",\n            \"alias\": \"mysql\"\n        }\n    ]\n}\n\n```\n**Equivalents to Docker CLI:**\n<table>\n    <tr>\n        <td><b>Dckrcnf</b></td>\n        <td><b>Docker CLI</b></td>\n        <td><b>Comment</b></td>\n    </tr>\n    <tr>\n        <td>name</td>\n        <td>--name</td>\n    </tr>\n    <tr>\n      <td>\n      image(name, version)\n      </td>\n      <td>name:version</td>\n    </tr>\n    <tr>\n      <td>hostname</td>\n      <td>--hostname (-h)</td>\n    </tr>\n    <tr>\n      <td>environment[(name, value)]</td>\n      <td>--env (-e)</td>\n      <td>Json Array</td>\n    </tr>\n    <tr>\n      <td>volumes[(host_path, container_path, mode)]</td>\n      <td>--volume (-v) host_path:container_path:mode</td>\n      <td>host_path can be relative to location of dckrcnf.json</td>\n      <td>Json Array</td>\n    </tr>\n    <tr>\n      <td>ports[(container_port, host_port)]</td>\n      <td>--publish (-p) host_port:container_port</td>\n      <td>Json Array</td>\n    </tr>\n    <tr>\n      <td>links[(name, alias)]</td>\n      <td>--link name:alias</td>\n      <td>Json Array</td>\n    </tr>\n\n</table>\n\n\n### dckrmgr\n```\ndckrmgr [-h] [-D P_CWD_TOP] [-R] [-t] [-r] [-c] [-s]\n\noptional arguments:\n  -h, --help    show this help message and exit\n  -D P_CWD_TOP  Set working directory\n  -R            Use dckrsub.json files to recursively apply operations\n  -t            Stop container\n  -r            Remove container\n  -c            Create container\n  -s            Start container\n\n```\n\n\n",
    "bugtrack_url": null,
    "license": "Creative Commons Attribution-Noncommercial-Share Alike license",
    "summary": "Simple command interface to manage multiple Docker container",
    "version": "1.2.2",
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "md5": "d39e7771ad3ad94dc16aacff082a9ef1",
                "sha256": "265df3b833504d993369e11220def1888805b2889ea90ff647cb5f15d69fad71"
            },
            "downloads": -1,
            "filename": "portmgr-1.2.2.tar.gz",
            "has_sig": false,
            "md5_digest": "d39e7771ad3ad94dc16aacff082a9ef1",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 7534,
            "upload_time": "2021-07-26T18:59:42",
            "upload_time_iso_8601": "2021-07-26T18:59:42.109602Z",
            "url": "https://files.pythonhosted.org/packages/91/cd/9c117d59a01e049221b0c77365495588427e5116c0b5857fb7ce7b9afdf5/portmgr-1.2.2.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2021-07-26 18:59:42",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "github_user": "Craeckie",
    "github_project": "portmgr",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "portmgr"
}
        
Elapsed time: 0.44584s