Merge of jpetazzo/dind with bibinwilson/jenkins-slave
"Docker in docker" is required to run Flask unit tests inside the container, before pushing the image.
Original article regarding this setup is here .
docker pull jakubbialoskorski/jenkins-docker-node
or put it as Jenkins docker executor:
Manage Jenkins
->Manage Nodes and Clouds
->Configure Clouds
->Docker Agent Templates
->Docker Image