Swift Docker Image Tags

Recently, I updated the swift-docker repository to support Ubuntu 18.04 for Swift 4.2. (Add support for Swift 4.2.1 - Ubuntu 18.04 by shahmishal · Pull Request #124 · apple/swift-docker · GitHub)

How should we separate the tags between two Ubuntu versions?

4.2 (Ubuntu 16.04):
4.2-ubuntu16.04
4.2.1-ubuntu16.04
4.2.2-ubuntu16.04

4.2 (Ubuntu 18.04):
4.2-ubuntu18.04
4.2.1-ubuntu18.04
4.2.2-ubuntu18.04
4.2
4.2.1
4.2.2
latest

Any thoughts?

2 Likes

Convention seems to be to use the distribution codename in the tagnames, so xenial for 16.04 and bionic for 18.04. This is the format used by the official MongoDB and MariaDB images. Debian latest is debian:stretch.

Having said that I don't think we should make any changes before we do Swift 5 images. In particular I think swift:4.2 should continue to be 16.04 and not changed to 18.04.

But for those I would suggest:

5.0 (Ubuntu 16.04 Xenial)
5.0-xenial
xenial

5.0 (Ubuntu 18.04 Bionic)
5.0
5.0-bionic
bionic
latest

5 Likes