Commit 748c137b authored by Yannick Kirschhoffer's avatar Yannick Kirschhoffer

Initial revision of the project with project structure

* License
* Simple readme
* Dockerfile configuration
parents
# top-most EditorConfig file
root = true
[*]
end_of_line = lf
insert_final_newline = true
charset = utf-8
[*.{py,xml}]
indent_style = space
indent_size = 4
[.travis.yml]
indent_style = space
indent_size = 2
# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
*$py.class
# C extensions
*.so
# Distribution / packaging
.Python
env/
build/
develop-eggs/
dist/
downloads/
eggs/
.eggs/
lib/
lib64/
parts/
sdist/
var/
*.egg-info/
.installed.cfg
*.egg
# PyInstaller
# Usually these files are written by a python script from a template
# before PyInstaller builds the exe, so as to inject date/other infos into it.
*.manifest
*.spec
# Installer logs
pip-log.txt
pip-delete-this-directory.txt
# Unit test / coverage reports
htmlcov/
.tox/
.coverage
.coverage.*
.cache
nosetests.xml
coverage.xml
*,cover
.hypothesis/
# Translations
*.mo
*.pot
# Django stuff:
*.log
local_settings.py
# Flask stuff:
instance/
.webassets-cache
# Scrapy stuff:
.scrapy
# Sphinx documentation
docs/_build/
# PyBuilder
target/
# IPython Notebook
.ipynb_checkpoints
# pyenv
.python-version
# celery beat schedule file
celerybeat-schedule
# dotenv
.env
# virtualenv
venv/
ENV/
# Spyder project settings
.spyderproject
# Rope project settings
.ropeproject
# IntelliJ / PyCharm metadata
/.idea/
language: python
before_install:
- sudo apt-get update -qq
after_success:
- mkdir deploy
FROM ubuntu:16.04
RUN apt-get update && apt-get install -y python3 python3-pip
RUN update-ca-certificates -f
RUN pip3 install docker-py
COPY src/docker-ascii-map.py /usr/local/bin/
CMD python3 /usr/local/bin/docker-ascii-map.py
MIT License
Copyright (c) 2016
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
# docker-map
A set of python scripts displaying the local docker containers structure and status on an ascii map.
## Requirements
* python 3.2
* docker-py
## Usage
```
python3 src/docker-ascii-map.py
```
from box_model import Box
class Renderer:
def __init__(self):
pass
def render(config):
box = Box()
return box.render()
class Box:
def __init__(self):
self.content = []
self.links = []
def render(self):
return ' '
from ascii_render import Renderer
if __name__ == '__main__':
renderer = Renderer()
print(renderer)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment