Closed ssfivy closed 4 years ago
Wow, thanks for this! I'm fixing it right now.
Hi @ssfivy,
This should be fixed with 531a5e82f087c7ee75e2aeff9ad32ac6cb2c9550.
I also added b5a1a2713fea92aaf36059f2bf3df3162ef034db to hopefully prevent this in the future.
Tested with the commands above, seems good to me now, thanks!
Analysis
Recent commit 7389f739a825ed14db499194f693eb5b6deb17fb changed the base image from ubuntu 16.04 to 18.04.
However, the sed command in build-and-test.sh here : https://github.com/crops/poky-container/blob/7389f739a825ed14db499194f693eb5b6deb17fb/build-and-test.sh#L21
are still trying to pattern-match against 16.04. This results in all images in docker hub to become Ubuntu 18.04 images since the base image isn't updated to opensuse, fedora, etc.
.travis.yml probably also needs updating, if this previous commit is an indication: a7959cc9ff22d8ecdd1b5fb7af22d9c778348c4f
How to reproduce:
Run any of these commands:
a.
docker run -it crops/poky:fedora-30
b.docker run -it crops/poky:opensuse-15.1
c.docker run -it crops/poky:ubuntu-19.04
Inside the container, run
cat /etc/os-release
Expected result:
Different information on different distros, and none of them saying ubuntu 18.04
Got result:
On all distro tags: