Skip to content

Use a version identifier label in all image tags built by ddev #7389

@stasadev

Description

@stasadev

Is there an existing issue for this?

  • I have searched the existing issues

Is your feature request related to a problem?

Another thing I noticed: if the image doesn't have a specific ddev version in its tag, it won't be rebuilt later.

So if users update ddev and use something like ddev/ddev-solr, the already built Solr image won't be rebuilt with the new ddev.

And ddev delete images doesn't remove deleted add-on image.

Describe your solution

This could be solved by always setting the image: field with proper tag identifier in fixComposeYaml().

Tag Identifier could be some new variable in versionconstants.go or we can rely on the WebTag.

Describe alternatives

Add-ons can set the image: on their own and use $DDEV_VERSION:

services:
  solr:
    image: ddev-solr:${DDEV_VERSION}-built
    build:
      ...

But I don't think that users on DDEV HEAD will be happy about it (because $DDEV_VERSION will change all the time).

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions