Skip to content

Conversation

@Earlopain
Copy link
Contributor

Previous: #2051

3.0 images are not build/updated anymore


In a separate commit, I've dropped mentions of evn variables that were once set but aren't anymore. See docker-library/ruby#209 and docker-library/ruby#306

Copy link
Contributor

@whalelines whalelines left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the update! A couple thoughts


```dockerfile
FROM %%IMAGE%%:3.0
FROM %%IMAGE%%:3.3
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perhaps it would be better to just use the latest tag in these examples?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Using an explicit version was intentional so that we're modelling the appropriate behavior for end-users who shouldn't be pinning to :latest here -- this is a persistent issue though that we've considered changing our template engine for so that we could have a per-image calculation of this "best example tag" value. (Barring that, IMO this change is correct ❤️)


```console
$ docker run --rm -v "$PWD":/usr/src/app -w /usr/src/app %%IMAGE%%:3.0 bundle install
$ docker run --rm -v "$PWD":/usr/src/app -w /usr/src/app %%IMAGE%%:3.3 bundle install
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It definitely seems safe to use the latest tag on the CLI.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since this generates/updates an artifact that users are supposed to commit to their Git repository, I think I might actually disagree -- users ought to be explicit about which version they're targeting/supporting. 😇

Copy link
Member

@tianon tianon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(approving, but not merging yet since I am open to discussion/convincing on the points where I've disagreed ❤️)

Copy link
Contributor

@whalelines whalelines left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@tianon tianon merged commit 2686af4 into docker-library:master Jul 8, 2024
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.

4 participants