Open-Assistant icon indicating copy to clipboard operation
Open-Assistant copied to clipboard

Build container images for linux/arm64 too

Open FastestMolasses opened this issue 2 years ago • 4 comments

Trying to run the docker containers on a raspberry pi, however the existing images do not support the linux/arm64 architecture.

FastestMolasses avatar Jan 30 '23 08:01 FastestMolasses

@FastestMolasses the official images such as redis, postgres, maildev are already multi-arch.

Is the oasst-postgres image the one causing an issue? You can replace it by plain postgres.

For the other images, can you try building them with

docker buildx bake -f docker-compose.yaml --set '*.platform=linux/arm64'

or

export DOCKER_BUILDKIT=1
export COMPOSE_DOCKER_CLI_BUILD=1
export DOCKER_DEFAULT_PLATFORM=linux/arm64

docker compose build

?

occupytheweb avatar Jan 30 '23 22:01 occupytheweb

I also tried to develop in a raspberry pi, but in a raspberry pi 3 (arm/v7), and had problems with the images. I've detected that at least these images give problems:

  • ghcr.io/laion-ai/open-assistant/oasst-postgres
  • redislabs/redisinsight:latest
  • oasst-backend, which uses Dockerfile.backend, which is based on tiangolo/uvicorn-gunicorn-fastapi, which is only available for amd64

Using docker buildx as suggested above doesn't work because some of these images don't have an arm64 version available.

GuilleHoardings avatar Jan 31 '23 22:01 GuilleHoardings

Given that we depend on postgres and redis, it's not clear if rasberry pi will be easy to support. What's the key use case for running everything on rasberry pi?

fozziethebeat avatar Feb 06 '23 12:02 fozziethebeat

My use case is that I would like to develop on a Raspberry Pi that I have. For translating the website, which is basically what I'm doing now, I think the Raspberry Pi should be able to handle it.

Anyway, I don't know if many people are in the same situation as me, so maybe it's not important...

GuilleHoardings avatar Feb 06 '23 14:02 GuilleHoardings