Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Docker] Support for raspberry pi OS 64 bit #4089

Closed
PolGZ opened this issue Dec 28, 2021 · 16 comments · Fixed by #5808
Closed

[Docker] Support for raspberry pi OS 64 bit #4089

PolGZ opened this issue Dec 28, 2021 · 16 comments · Fixed by #5808
Labels
Docker Everything related to Docker
Milestone

Comments

@PolGZ
Copy link

PolGZ commented Dec 28, 2021

Tried both freshrss:arm and freshrss:arm and :latest-arm, both get:

WARNING: The requested image's platform (linux/arm) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested

Searching in docker-tags it doesn't seem to be an ARM64 version.

@Alkarex Alkarex added the Docker Everything related to Docker label Dec 28, 2021
@Alkarex Alkarex added this to the 1.20.0 milestone Dec 28, 2021
@Alkarex
Copy link
Member

Alkarex commented Dec 28, 2021

Updates on how to perform multi-platform builds on Docker Hub welcome (e.g. buildx).
At the moment, our auto-builds are done with qemu https://github.com/FreshRSS/FreshRSS/blob/edge/Docker/hooks/pre_build

@PolGZ
Copy link
Author

PolGZ commented Dec 28, 2021

Updates on how to perform multi-platform builds on Docker Hub welcome (e.g. buildx). At the moment, our auto-builds are done with qemu https://github.com/FreshRSS/FreshRSS/blob/edge/Docker/hooks/pre_build

I have no experience with docker (this was my second time using a docker) and no programming experience at all, so I don't really know what to do with that. I'll use another rss server for now, but thank you very much for the reply. I'm looking forward to that v. 1.20!

@Alkarex
Copy link
Member

Alkarex commented Dec 28, 2021

@PolGZ You can give a try to this unofficial Docker image, which supports more architectures https://hub.docker.com/r/linuxserver/freshrss

@Alkarex Alkarex modified the milestones: 1.20.0, 1.21.0 May 7, 2022
@math-GH
Copy link
Contributor

math-GH commented Aug 21, 2022

How is the status?

@honnip
Copy link

honnip commented Oct 7, 2022

#!/bin/bash

if [[ $DOCKERFILE_PATH == *-ARM ]]; then
	# https://github.com/balena-io/qemu
	# Download a local copy of QEMU on Docker Hub build machine
	curl -LSs 'https://github.com/balena-io/qemu/releases/download/v3.0.0%2Bresin/qemu-3.0.0+resin-arm.tar.gz' | tar -xzv --strip-components=1 --wildcards '*/qemu-*'

	# https://github.com/multiarch/qemu-user-static
	# Register qemu-*-static for all supported processors except the current one, but also remove all registered binfmt_misc before
	docker run --rm --privileged multiarch/qemu-user-static:register --reset
fi

if [[ $DOCKERFILE_PATH == *-ARM64 ]]; then
	# https://github.com/balena-io/qemu
	# Download a local copy of QEMU on Docker Hub build machine
        # qemu-7.0.0.balena1-aarch64.tar.gz
	curl -LSs 'https://github.com/balena-io/qemu/releases/download/v3.0.0%2Bresin/qemu-3.0.0+resin-aarch64.tar.gz' | tar -xzv --strip-components=1 --wildcards '*/qemu-*'

	# https://github.com/multiarch/qemu-user-static
	# Register qemu-*-static for all supported processors except the current one, but also remove all registered binfmt_misc before
	docker run --rm --privileged multiarch/qemu-user-static:register --reset
fi

I made a tiny progress 🙃

By the way, I could easily create a multi arch image with GitHub Action like here.

@lazyzyf
Copy link

lazyzyf commented Nov 19, 2022

@PolGZ You can give a try to this unofficial Docker image, which supports more architectures https://hub.docker.com/r/linuxserver/freshrss

why the official image does not support more platform.such as arm64?

@Alkarex
Copy link
Member

Alkarex commented Nov 29, 2022

why the official image does not support more platform.such as arm64?

Because as far as I know, there is no native multiplatform support in Docker Hub at the moment, and the QEMU-based workaround we have for arm32v7 is quite heavy.

If anyone becomes aware of a better method than what we are using at the moment, let us know.

It is quite easy to build locally for any platform: https://github.com/FreshRSS/FreshRSS/tree/edge/Docker#build-custom-docker-image
(and I could provide a docker-compose example)

@Alkarex Alkarex modified the milestones: 1.21.0, 1.22.0 Jan 9, 2023
@Alkarex
Copy link
Member

Alkarex commented Feb 7, 2023

Related discussion #5078

Alkarex added a commit to Alkarex/FreshRSS that referenced this issue Mar 28, 2023
Alkarex added a commit that referenced this issue Mar 30, 2023
* Document automated Docker build from git
Fix #5236
Contributes to #4089

* Rolling
@Aevrin
Copy link

Aevrin commented Apr 21, 2023

Just wanted to add to this request. It looks like docker.io supports multiarch under the same tag, and can be configured to build using github actions (I'm no expert in this, but have managed it with a personal project.). I just used buildx and selected the platforms I needed. Could that be offered? The arm7 works fine, but having it offered under one tag would be helpful, as would the arm64 offering.

2023-04-20_22-16
2023-04-20_22-15

platforms: linux/amd64,linux/arm64/v8

@Alkarex Alkarex modified the milestones: 1.22.0, 1.23.0 Oct 23, 2023
@b-reich
Copy link
Contributor

b-reich commented Nov 2, 2023

@Alkarex I could provide an PR for this. Where are the images built? I could offer actions on Github.

@Alkarex
Copy link
Member

Alkarex commented Nov 2, 2023

@b-reich Excellent 👍🏻 Images are built on Docker Hub at the moment

@lazyzyf
Copy link

lazyzyf commented Nov 2, 2023

why no arm46 support in docker hub?

@Alkarex
Copy link
Member

Alkarex commented Nov 2, 2023

why no arm46 support in docker hub?

With the new build system, it is probably easy, and could indeed be popular addition.
Note that we already document a docker-compose with auto-build for any platform

@b-reich
Copy link
Contributor

b-reich commented Nov 2, 2023

why no arm46 support in docker hub?

Take a look at #5808 😃

@fn-ix
Copy link

fn-ix commented Jan 5, 2024

Still getting the same error as the OP after pulling the latest version and executing the quick run command with ... freshrss/freshrss:arm. Am I missing something?

@Alkarex
Copy link
Member

Alkarex commented Jan 5, 2024

@fn-ix please try freshrss/freshrss

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Docker Everything related to Docker
Projects
None yet
Development

Successfully merging a pull request may close this issue.

8 participants