registry

registry.private

registry.private.publish_release(source, config, target)[source]

Publish a new release as a Docker image

Given a source image and dictionary of last-mile configuration, create a target Docker image on the registry.

For example:

publish_release('registry.local:5000/gabrtv/myapp:v22',
                {'ENVVAR': 'values'},
                'registry.local:5000/gabrtv/myapp:v23')

results in a new Docker image at ‘registry.local:5000/gabrtv/myapp:v23’ which contains the new configuration as ENV entries.

registry.mock

registry.mock.publish_release(source, config, target)[source]

Publish a new release as a Docker image

This is a mock implementation used for unit tests