Skip to contentSkip to conversation

docker: change Fedora base image to fedora:27

PATCH In review Paolo Bonzini 3 participants 6 messages Jan 12, 2018

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 docker: change Fedora base image to fedora:27

Using "fedora:latest" makes behavior different depending on when you actually pulled the image from the docker repository. In my case, the supposedly "latest" image was a Fedora 25 download from 8 months ago, and the new "test-debug" test was failing.

Use "27" to improve reproducibility and make it clear when the image is obsolete.

Cc Fam Zheng <[email protected]>
Cc Marc-André Lureau <[email protected]>
---
 tests/docker/dockerfiles/fedora.docker | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tests/docker/dockerfiles/fedora.docker +1 -1
index 32de731..714adad 100644
@@ -1,4 +1,4 @@
-FROM fedora:latest
+FROM fedora:27
 ENV PACKAGES \
     ccache gettext git tar PyYAML sparse flex bison python2 bzip2 hostname \
     glib2-devel pixman-devel zlib-devel SDL-devel libfdt-devel \
Signature · 1 line
1.8.3.1
Reviewed-by on v1 1/1
#1 lore raw

Hi

Quoted 7 lines · Paolo Bonzini

Using "fedora:latest" makes behavior different depending on when you actually pulled the image from the docker repository. In my case, the supposedly "latest" image was a Fedora 25 download from 8 months ago, and the new "test-debug" test was failing.

Use "27" to improve reproducibility and make it clear when the image is obsolete.

Use rawhide instead? :)

Quoted 4 lines
Cc Fam Zheng <[email protected]>
Cc Marc-André Lureau <[email protected]>
Quoted 18 lines
---
 tests/docker/dockerfiles/fedora.docker | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tests/docker/dockerfiles/fedora.docker +1 -2
index 32de731..714adad 100644
@@ -1,4 +1,4 @@
-FROM fedora:latest
+FROM fedora:27
 ENV PACKAGES \
     ccache gettext git tar PyYAML sparse flex bison python2 bzip2 hostname \
     glib2-devel pixman-devel zlib-devel SDL-devel libfdt-devel \
--

1.8.3.1

Signature · 1 line
Marc-André Lureau
#2 lore raw
In reply to Paolo Bonzini

Hi Paolo,

Quoted 10 lines · Paolo Bonzini

Using "fedora:latest" makes behavior different depending on when you actually pulled the image from the docker repository. In my case, the supposedly "latest" image was a Fedora 25 download from 8 months ago, and the new "test-debug" test was failing.

Use "27" to improve reproducibility and make it clear when the image is obsolete.

Cc Fam Zheng <[email protected]>
Cc Marc-André Lureau <[email protected]>

I wonder what script you are using, and if the R: tag in MAINTAINERS is that useful, since I saw few docker patches I'm interestd in but I was not CC'd:

$ ./scripts/get_maintainer.pl -f tests/docker/dockerfiles/fedora.docker
"Alex Bennée" <[email protected]> (maintainer:Build and test au...)
Fam Zheng <[email protected]> (maintainer:Build and test au...)
"Philippe Mathieu-Daudé" <[email protected]> (reviewer:Build and test au...)

tests/docker/dockerfiles/fedora.docker line 1

Quoted 12 lines
---
 tests/docker/dockerfiles/fedora.docker | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tests/docker/dockerfiles/fedora.docker +1 -1
index 32de731..714adad 100644
@@ -1,4 +1,4 @@
-FROM fedora:latest
+FROM fedora:27

I'd rather use the deprecation approach like we use for Debian, see tests/docker/dockerfiles/debian.docker.

That said, you remind me of a series doing the same for Ubuntu I forgot to send, if you want I can add fedora25 and fedora27 before sending.

Regards,

Phil.

Quoted 4 lines
tests/docker/dockerfiles/fedora.docker +0 -0
 ENV PACKAGES \
     ccache gettext git tar PyYAML sparse flex bison python2 bzip2 hostname \
     glib2-devel pixman-devel zlib-devel SDL-devel libfdt-devel \
#3 lore raw
Quoted 11 lines · Philippe Mathieu-Daudé

Hi Paolo,

Quoted 8 lines · Paolo Bonzini

Using "fedora:latest" makes behavior different depending on when you actually pulled the image from the docker repository. In my case, the supposedly "latest" image was a Fedora 25 download from 8 months ago, and the new "test-debug" test was failing.

Use "27" to improve reproducibility and make it clear when the image is obsolete.

Quoted 6 lines
Quoted 2 lines
Cc Fam Zheng <[email protected]>
Cc Marc-André Lureau <[email protected]>

I wonder what script you are using, and if the R: tag in MAINTAINERS is that useful, since I saw few docker patches I'm interestd in but I was not CC'd:

No, it's my fault

Quoted 21 lines
$ ./scripts/get_maintainer.pl -f tests/docker/dockerfiles/fedora.docker
"Alex Bennée" <[email protected]> (maintainer:Build and test au...)
Fam Zheng <[email protected]> (maintainer:Build and test au...)
"Philippe Mathieu-Daudé" <[email protected]> (reviewer:Build and test au...)

tests/docker/dockerfiles/fedora.docker line 1

Quoted 12 lines
---
 tests/docker/dockerfiles/fedora.docker | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tests/docker/dockerfiles/fedora.docker +1 -1
index 32de731..714adad 100644
@@ -1,4 +1,4 @@
-FROM fedora:latest
+FROM fedora:27

I'd rather use the deprecation approach like we use for Debian, see tests/docker/dockerfiles/debian.docker.

Quoted 2 lines

That said, you remind me of a series doing the same for Ubuntu I forgot to send, if you want I can add fedora25 and fedora27 before sending.

That's fine by me (but use "fedora" instead of fedora25).

Paolo

#4 lore raw
Quoted 9 lines
Quoted 9 lines

tests/docker/dockerfiles/fedora.docker line 1

Quoted 5 lines
tests/docker/dockerfiles/fedora.docker +1 -1
@@ -1,4 +1,4 @@
-FROM fedora:latest
+FROM fedora:27

I'd rather use the deprecation approach like we use for Debian, see tests/docker/dockerfiles/debian.docker.

Quoted 4 lines
Quoted 2 lines

That said, you remind me of a series doing the same for Ubuntu I forgot to send, if you want I can add fedora25 and fedora27 before sending.

That's fine by me (but use "fedora" instead of fedora25).

Plan is:

rename fedora -> fedora25
add fedora27
fedora: display a warning and use fedora25 for backward compatibility

#5 lore raw
In reply to Paolo Bonzini
Quoted 4 lines · Paolo Bonzini

Using "fedora:latest" makes behavior different depending on when you actually pulled the image from the docker repository. In my case, the supposedly "latest" image was a Fedora 25 download from 8 months ago, and the new "test-debug" test was failing.

Checking git log, this file was updated in a2bd7252fe8b to support Fedora 24, not even 25 :)

I suppose a8f159d45bcb was to have Fedora 25 working.

Quoted 3 lines

Use "27" to improve reproducibility and make it clear when the image is obsolete.