[JCLOUDS-500] Initial commit for docker

Add also a couple small tests to verify the preconditions.