name mode size
cassandra 040000
centos 040000
chef 040000
compose 040000
evote 040000
influx 040000
jenkins 040000
kafka 040000
mesos 040000
metasploit 040000
mongodb 040000
mysql 040000
nodejsapp 040000
omxclient 040000
rabbitmq 040000
redis 040000
spark 040000
tsdb 040000
webdata 040000
README.md 100755 2 kb
docker-compose.yml 100755 2 kb
docker-compose.yml.back 100755 2 kb
docker-compose.yml.example 100755 0 kb
README.md
# Docker containers ## Introduction [Docker](https://www.docker.com/) is a framework to assemble distributed applications. [Here](https://docs.docker.com/) you can find more info about tech documentation of Docker. The docs are full of examples and the learning curve is really small. ## Images Before running the docker-compose utility you must manually build the centos base image by running: cd centos sudo docker build -t balhau/centos . This image is a centos linux distribution with java 8, git and maven installed, as well as some network utilities like wget and netcat After the image is created you can automate the build of the remaining images by running (in the parent folder) sudo docker-compose build This command will build the remaining images. After the command is terminated you can start the cluster of machines by doing sudo docker-compose up ### Redis image ### Kafka image ### WebPT image This is an image that runs the webservices that are hosted in the [Git WebPT Repository](http://git.balhau.net/webpt-ws.git/). The image fetch the last snapshot from nexus by running the command RUN cd /var/app/webdata && wget "http://nexus.balhau.net/nexus/service/local/artifact/maven/redirect?r=snapshots&g=org.pt.pub.data&a=webpt-ws&v=LATEST" -O web-pt.jar So if a new build is uploaded for nexus you just need to destroy the image and run again **docker-compose** that a new version will automatically run on the container. ### Evote image This is an image that runs the [Evote Service](http://git.balhau.net/evote.git/). The image fetch the last version from the pip repository and starts the service as well. RUN pip install evote --extra-index-url http://pip.balhau.net/simple --trusted-host pip.balhau.net The above command is used to fetch the evote package from the pip repository and you can find it in the respective Dockerfile. ### Various To remove all **none** images docker rmi $(docker images | grep "^<none>" | awk "{print $3}") #### Docker applications It is usefull, to avoid a very verbose set of commands, to define a set of *alias commands* and add it to your *.bashrc* config file. Some I considered usefull are described bellow alias dockerps="docker ps -a" alias dim="docker images" alias dcrem="docker rm -f $(docker ps -a -q)" alias drim="docker rmi $(docker images -q)"