Yes, in fact your
answer made me wonder about my config(and reference docs that I
use, but that's my prob..:) ).|
Not to add to the confusion, but I use minishift, so a local cluster environment. Current OC version is 3.6.0 and Docker is 1.12.
However I run my Docker tests on a separate installation which is the version that I've posted...17.12.
If OShift injects its from instruction in the "right" place, I'd guess the behaviour - when using ARGs as first instructions in the Dockerfile - would be something like:
- if docker daemon is 17.06 or newer (if the top voted reply here is right https://stackoverflow.com/questions/40273070/docker-build-arg-in-source-file), the build process will work with OShift (don't know starting with what version), but the FROM in Dockerfile will be replaced with the from in OShift's BuildConfig; the very first ARG instructions will just be ignored(??)
- if daemon is pre 17.06, OShift's build will crash as the Docker build will crash, when not using FROM as the very first instruction in the Dockerfile
But now it's just guessing from my part. If/when I have the time I'll try to do some tests.
For the time being no ARGs prior to FROM for me. :)
Thanks again for the help, Ben!
On 08.02.2018 23:01, Ben Parees wrote: