balena-io / docs

Documentation for the balenaCloud platform.
https://docs.balena.io/
Apache License 2.0
68 stars 363 forks source link

Update base images to include Raspbian #1254

Open garethtdavies opened 4 years ago

garethtdavies commented 4 years ago

Raspian is missing from https://www.balena.io/docs/reference/base-images/base-images/ but is available here https://hub.docker.com/r/balenalib/rpi-raspbian/tags.

The list of architectures, distributions and language stacks should be automated to reflect what is available on DockerHub.

lurch commented 4 years ago

NIT1: There's a 'b' in "Raspbian" :wink:

NIT2: For the link you posted, DockerHub says "OS/ARCH: linux/amd64" for each image - is that just a DockerHub bug / limitation?

garethtdavies commented 4 years ago

I don't know whether this is a Docker thing (will investigate during resolving this issue) but that behavior is consistent with other images e.g. https://hub.docker.com/r/balenalib/aarch64-ubuntu-node/tags

lurch commented 4 years ago

I did a bit of clicking around and e.g. https://hub.docker.com/r/arm64v8/postgres/tags says linux/arm64

klutchell commented 3 years ago

The balenalib/rpi-rasbian images are not proper balena base images and don't contain our helper functions like install_packages, cross-build, balena-idle, etc.

As far as I can tell they only exist to fill a gap because armv6 is not available from official debian base images. You can see the need by comparing these two Dockerfiles.

https://github.com/balena-io-library/base-images/blob/8e39e5184f4ebca0bd95411b159e98557f8e3f9b/balena-base-images/rpi/debian/buster/run/Dockerfile#L1-L2

https://github.com/balena-io-library/base-images/blob/8e39e5184f4ebca0bd95411b159e98557f8e3f9b/balena-base-images/armv7hf/debian/buster/run/Dockerfile#L1-L2