Tool for docker container management (e.g. deployments, monitoring)
The container that is to form the java-webapp-cluster is a web application on Bootstrap (microservice) In order to build it we need to have java, maven installed
mvn package docker:build
After the container is built with name tmessinis/dockerized-service we can try to deploy it manually:
docker run -p 8080:8080 tmessinis/dockerized-service
docker ps
docker stop containerId
sudo apt-get install python-pip
sudo pip install docker-py
Show help options of delivery tool
python main.py -h
python main.py -action start -name java-webapp-cluster -size 10
python main.py -action stop -name java-webapp-cluster
python main.py -monitor status -name java-webapp-cluster
python main.py -monitor cpu -name java-webapp-cluster
python main.py -monitor io -name java-webapp-cluster
python main.py -monitor memory -name java-webapp-cluster
python main.py -monitor pid -name java-webapp-cluster
python main.py -monitor network -name java-webapp-cluster
python main.py -monitor precpu -name java-webapp-cluster
python main.py -log java-cluster.txt -name java-webapp-cluster