Currently, the certificates present for SSL access must all be
accessible on the local disk. This is inconvenient for some clients
who may already have a pre-baked keystore in hand.

Create different options for retrieving the neccessary SSLContext,
so that the two different options can be used.

Signed-off-by: Nigel Magnay <nigel.magnay@gmail.com>
Change the client configuration so that it can optionally take an
SSLConfig.

Signed-off-by: Nigel Magnay <nigel.magnay@gmail.com>
Some major-league classloader bullshit when using this in Jenkins.

Workaround hack.

Signed-off-by: Nigel Magnay <nigel.magnay@gmail.com>
Shuffle into a different package so can determine which snapshots
have my changes in them.

Javadoc boringness

Signed-off-by: Nigel Magnay <nigel.magnay@gmail.com>
Use chunked encoding when passing the docker image.

If you don't do this, you very often run out of heap space, as the
webclient will create a buffer for the entire image file (possibly
many gigabytes) before sending it.

Signed-off-by: Nigel Magnay <nigel.magnay@gmail.com>
tos.close() can throw an exception in finally{} (typically the
'not closed' error) which masks the real exception.

Signed-off-by: Nigel Magnay <nigel.magnay@gmail.com>
Add dockerfile object as 1st class citizen.

Signed-off-by: Nigel Magnay <nigel.magnay@gmail.com>
Use the Dockerfile impl in BuildImageCmdImpl.

Signed-off-by: Nigel Magnay <nigel.magnay@gmail.com>