Adding fig and modifying docker to support Jenkins.