Provide version information through labels#1256
Provide version information through labels#1256fbartels merged 5 commits intodocker-mailserver:masterfrom
Conversation
|
Looks good but I have one question. If the docker images are built from docker hub and not from Travis then they will just run the Dockerfile and ignore our Makefile. In that case your changes will do nothing except when we build manually. |
|
Ah, yes indeed. At this point in time the build args would not be passed and the values would be empty in the resulting image. It seems this can be mitigated through build hooks (https://docs.docker.com/docker-hub/builds/advanced/). Currently have a test build running. Will push the required hook if my change succeeds. Edit: I should add that this "breaks" build layer caching as the values passed as build arguments will be changing quite often (everytime you make a Edit2: hook can be tested by running |
|
No rush or anything, I just want to check that you are not waiting for me on this and/or your other PRs? |
|
It seems we both forgot about this. Let me rebase, wondering about some of the Makefile changes, though. |
Can be retrieved by calling e.g. `docker inspect -f {{.Config.Labels}} tvial/docker-mailserver:testing`
Signed-off-by: Felix Bartels <[email protected]>
Signed-off-by: Felix Bartels <[email protected]>
build args invalidate build cache already Signed-off-by: Felix Bartels <[email protected]>
Signed-off-by: Felix Bartels <[email protected]>
Signed-off-by: Felix Bartels <[email protected]>
|
Right. If you are waiting for me on something, please just leave a comment. |
|
@erik-wramner is |
|
Yes, it happens every now and then. |
|
OK, after regriggering tests are green. Let's merge. |
Can be retrieved by calling e.g.
docker inspect tvial/docker-mailserver:testingSample output: