1. Ensuring consistency
1.1. overview
1.1.1. Untitled
1.2. docker image caching behavior
1.2.1. problem
1.2.1.1. Untitled
1.2.2. solution
1.2.2.1. docker pull command
1.2.2.2. Untitled
1.3. build up to date docker images
1.3.1. docker-compose build -pull
1.3.2. Untitled
1.4. docker image consistency
1.4.1. use same images across test, build, release
1.4.2. Untitled
2. tagging the release image
2.1. categories
2.1.1. logical tags
2.1.1.1. represent current logical state
2.1.1.2. can point to different images
2.1.1.3. example
2.1.1.3.1. latest
2.1.1.3.2. 14.04.3
2.1.2. build tags
2.1.2.1. only point to a single image
2.1.2.2. example
2.1.2.2.1. git commit string
2.1.2.2.2. use timestamp as build tag
2.2. tagging strategy
2.2.1. overview
2.2.1.1. Untitled
2.2.2. make tag
2.2.2.1. Untitled
2.2.3. make buildtag
2.2.3.1. Untitled
2.2.3.2. Untitled
2.3. implement tag functionality
2.3.1. overview
2.3.1.1. Untitled
2.3.2. define docker registry var
2.3.2.1. Untitled
2.3.3. get the image id of the application service
2.3.3.1. Untitled
2.3.4. get the container id of application service container
2.3.4.1. Untitled
2.3.5. $(APP_SERVICE_NAME)
2.3.5.1. Untitled
2.3.5.2. Untitled
2.3.5.3. Untitled
2.3.6. extract tag arguments
2.3.6.1. Untitled
2.3.6.2. explanation
2.3.6.2.1. MAKECMDGOALS
2.3.6.2.2. ifeq ($(TAG_ARGS))
2.3.6.2.3. eval $(TAG_ARGS):;@:)
2.3.7. result
2.3.7.1. Untitled
2.4. implement build tag functionality
2.4.1. overview
2.4.1.1. Untitled
2.4.2. buildtag variable
2.4.2.1. Untitled
2.4.2.2. only generated once
2.4.2.2.1. Untitled