Skip to content

Proper handling of image digests - #230

Open
smoehrle wants to merge 1 commit into
fabfuel:developfrom
reservix:bugfix/image-digest-handling
Open

Proper handling of image digests#230
smoehrle wants to merge 1 commit into
fabfuel:developfrom
reservix:bugfix/image-digest-handling

Conversation

@smoehrle

Copy link
Copy Markdown

Images can be specified like:

nginx
nginx:1.27.0
nginx:1.27.0@sha256:67682bda769fae1ccf5183192b8daf37b64cae99c6c3302650f6f8bf5f0f95df
nginx@sha256:67682bda769fae1ccf5183192b8daf37b64cae99c6c3302650f6f8bf5f0f95df

At the moment ecs-deploy can only handle the second case. With this change, all 4 cases work properly.

@fabfuel

fabfuel commented Jul 25, 2024

Copy link
Copy Markdown
Owner

Hi @smoehrle

Thanks for the nice addition! Would you please add a test like this one which sets a tag with all of your newly supported image digests:

def test_task_set_tag(task_definition):
task_definition.set_images(u'foobar')
for container in task_definition.containers:
assert container[u'image'].endswith(u':foobar')

Thanks!
Fabian

@trigrab
trigrab force-pushed the bugfix/image-digest-handling branch from f1f7d45 to 2b7de08 Compare August 19, 2026 09:09
@trigrab

trigrab commented Aug 19, 2026

Copy link
Copy Markdown

Hi @fabfuel,
sorry for not responding for such a long time.

I updated the code from @smoehrle and added the asked test.

Please let me know if that change is still good for the project. We really would like to see our changes in the upstream project. At the moment we are using a fork with our changes which is a bit of overhead.

We think the changes can be of use for others in the community.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants