Closed jdewinne closed 7 years ago
A Dockerfile? Are you sure? Wouldn't you rather have a Docker image as a deployable?
Rebuilding the Docker image on every deploy doesn't seem the most efficient or repeatable process.
Or is this a OpenShift thing?
That does seem strange. I would think you would want to use a docker image instead.
Why would this be so strange? This is about also letting OpenShift do the build part. Dockerfile source
Aha, so this is an OpenShift thing. :-) OK.
Using a Dockerfile is almost equivalent to using a docker image as a Dockerfile defines the image. I say almost as there is a possibility that the image could have changed between deployments so you would have to be careful. It is faster than using a docker image as the Dockerfile might be 2KB rather than a 1GB image.
Ah the build mechanism. I thought you were referring to doing pushes to the internal openshift docker registry.
See v6.5.0
Allow a dockerfile to be uploaded and used as deployable.