├── src ├── server │ ├── compose │ │ ├── .gitignore │ │ ├── output_localhost_8080.json │ │ ├── k8s.yml │ │ ├── setup_single_node │ │ └── sample_docker_ps_output │ ├── start │ ├── requirements.txt │ ├── app │ │ ├── static │ │ │ ├── favicon.ico │ │ │ ├── fonts.css │ │ │ ├── jquery.color-2.1.2.min.js │ │ │ ├── jquery-ui.css │ │ │ └── jquery.min.js │ │ ├── templates │ │ │ ├── 404.html │ │ │ ├── base.html │ │ │ ├── index.html │ │ │ └── stats.html │ │ ├── decorators.py │ │ ├── __init__.py │ │ ├── controller.py │ │ └── models.py │ ├── scripts │ │ ├── test_client.sh │ │ ├── task_manager │ │ └── server.py │ ├── shell.py │ ├── config.py │ ├── install_mongo │ └── run.py └── client │ ├── app │ ├── wsgi.py │ └── run.py │ ├── scripts │ ├── request_task │ ├── stop_remove_all_containers │ ├── get_ip.py │ ├── test_server_conn │ ├── client.py │ ├── read_container_details.py │ ├── launch_workers │ └── slave_manager │ └── conf │ ├── app_supervisor.conf │ ├── app_uwsgi.ini │ ├── app_nginx.conf │ └── uwsgi_params ├── .gitignore ├── cleanup ├── configuration ├── Dockerfile ├── TODO.md ├── WIKI.md ├── installer.sh ├── README.md └── LICENSE.txt /src/server/compose/.gitignore: -------------------------------------------------------------------------------- 1 | dumps/ -------------------------------------------------------------------------------- /src/server/start: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | COMMAND="python run.py" 3 | $COMMAND 4 | -------------------------------------------------------------------------------- /src/server/requirements.txt: -------------------------------------------------------------------------------- 1 | Flask==0.10.1 2 | flask-mongoengine==0.7.1 3 | netaddr==0.7.13 4 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | *.py[cod] 2 | *~ 3 | 4 | db.sqlite3 5 | *.db 6 | container_info.json 7 | containers_details 8 | dumps/ 9 | -------------------------------------------------------------------------------- /src/server/app/static/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arcolife/dockerComp/HEAD/src/server/app/static/favicon.ico -------------------------------------------------------------------------------- /src/client/app/wsgi.py: -------------------------------------------------------------------------------- 1 | # if gunicorn is used 2 | from run import app 3 | 4 | if __name__ == "__main__": 5 | app.run() 6 | -------------------------------------------------------------------------------- /src/client/scripts/request_task: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | curl -H "Content-type: application/json" -X POST http://$1/connect/1/$1 4 | -------------------------------------------------------------------------------- /src/client/conf/app_supervisor.conf: -------------------------------------------------------------------------------- 1 | [program:flaskapp] 2 | command = uwsgi --ini /opt/dockerComp/conf/app_uwsgi.ini 3 | 4 | [program:nginx] 5 | command = service nginx restart 6 | -------------------------------------------------------------------------------- /src/client/scripts/stop_remove_all_containers: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | CLEAN_IDS=$(docker ps | grep arcolife/docker_comp | awk -F' ' '{print $1}') 4 | docker stop $CLEAN_IDS 5 | docker rm $CLEAN_IDS 6 | -------------------------------------------------------------------------------- /src/server/app/templates/404.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 || t |