crops / poky-container

A container image that is able to run bitbake/poky. It has helpers to create users and groups within the container. This is so that the output generated in the container will be readable by the user on the host.
GNU General Public License v2.0
209 stars 95 forks source link

deploy: set default distro to Ubuntu-22.04 #93

Closed williamspatrick closed 1 year ago

williamspatrick commented 1 year ago

Ubuntu 18.04 can no longer build the poky/master branch because it requires Python 3.8+. Switch the DEFAULT_DISTRO to a later Ubuntu release so that crops/poky:latest becomes something usable.

Signed-off-by: Patrick Williams patrick@stwcx.xyz

moto-timo commented 1 year ago

The crops/yocto:ubuntu-18.04 container installs the buildtools-tarball 4.1.x which has python3.10:

$ docker run --rm -it crops/poky:latest
pokyuser@65e0ba4337c0:~$ python3
Python 3.10.6 (main, Aug  1 2022, 20:38:21) [GCC 12.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.

We have a lot of users on older Yocto Project releases, so we try to hold back a little bit. We have been contemplating bumping to Ubuntu 20.04 as the base container, but Ubuntu 22.04 is too new for the poor souls trying to build older products. Some folks have already complained about too new of a buildtools-tarball.

Also, are you running docker pull crops/poky:latest before you try to run your builds? The containers rebuild every Friday with package updates from the base distros.

You are also welcome to use one of the other distro/version combinations, e.g. crops/poky:ubuntu-22.04

williamspatrick commented 1 year ago

Some folks have already complained about too new of a buildtools-tarball.

Understood. I use to be using crops/poky to build some Rocko-based systems and that doesn't work anymore for me either. Unfortunately our Rocko-based systems are stuck there due to using a 4.x kernel vintage and way too much effort to try to upgrade them.

Also, are you running docker pull crops/poky:latest before you try to run your builds? The containers rebuild every Friday with package updates from the base distros.

Hmm. I thought we did. We are using CircleCI for building with the crops/poky image and I saw everything was busted when using the Yocto master branch due to old unsupported Python versions. Maybe I have something misconfigured that it isn't pulling on launch like it should. I'll investigate.

Feel free to close the PR.

moto-timo commented 1 year ago

Closing. We will move from Ubuntu-18.04 as default, but we will not move all the way to Ubuntu-22.04 just yet.