Giter Club home page Giter Club logo

Comments (8)

kimbtech avatar kimbtech commented on July 20, 2024 2

I opened an issue regarding multi plattform builds: #13

from radio-api.

jeglinski avatar jeglinski commented on July 20, 2024 1

Hi Heinz,

@kimbtech has only provided docker images for "linux/amd64" at https://hub.docker.com/r/kimbtechnologies/radio_api/tags.

You have to build a Docker image for your platform "linux/arm64/v8" yourself.

Take the e.g. the file https://github.com/KIMB-technologies/Radio-API/blob/d5dbe02fc23ad75be8899d4fb80dc046f10f5420/docker-compose.dev.yml and run it with docker compose.

The result is a local Docker image for your platform.
Thomas

@kimbtech: thanks your sharing your code. It´s now particularly important to have a good alternative to the "Frontier radio portal",
especially after this announcement: https://subscriptions.frontier-nuvola.net/portal/en/home


Redis at https://hub.docker.com/_/redis/tags don´t build images for "linux/arm64/v8". You habe to build your own Docker image, see: https://github.com/docker-library/redis or try https://hub.docker.com/r/arm64v8/redis.

from radio-api.

kimbtech avatar kimbtech commented on July 20, 2024 1

Hi,
it looks like you use the image trafex/php-nginx as baseimage. This image will not be compatible to Radio-API as Radio-API sets the configurations for https://github.com/KIMB-technologies/PHP-NGINX-Docker.

from radio-api.

tackin avatar tackin commented on July 20, 2024 1

Ahhhhgrrrrr!!!!
Thank you very much for the hint. Great!
It's now up and running.

from radio-api.

tackin avatar tackin commented on July 20, 2024

You have to build a Docker image for your platform "linux/arm64/v8" yourself.

Take the e.g. the file https://github.com/KIMB-technologies/Radio-API/blob/d5dbe02fc23ad75be8899d4fb80dc046f10f5420/docker-compose.dev.yml and run it with docker compose.

The result is a local Docker image for your platform. Thomas

Hi!
Well as I mentioned, the build will fail on arm64. Reasons are multiple:
"FROM" image is not multi-platform as well
pecl not available anymore by default

It's beyond my docker-skills to fix that to make it run.

from radio-api.

kimbtech avatar kimbtech commented on July 20, 2024

Hi,
unfortunately the Radio-API-Image builds on top of the PHP-NGINX-Docker-Image. Both are only available for AMD64 and not ARM which is used by Raspberry Pis.

I do not have a Raspberry Pi to test or run the build process on. In addition, as far as I can see, Github Actions (currently used to automatically build the images) does not provide support for ARM either.
Thus, I can't provide an image for Raspberry Pis.

You might try to build PHP-NGINX-Docker first and afterwards build the image of Radio-API as described above.
I do not get any errors about PECL.

Maybe I'll take a closer look at https://github.com/docker/setup-buildx-action at some point. It may offer a way to create ARM images via Github actions.

from radio-api.

tackin avatar tackin commented on July 20, 2024

You might try to build PHP-NGINX-Docker first and afterwards build the image of Radio-API as described above. I do not get any errors about PECL.

I used this image for testing: https://hub.docker.com/r/trafex/php-nginx
in the dockerfile:

FROM trafex/php-nginx
and I needed to insert

USER root

as well

root@raspi4:/home/pi/work/Radio-API# docker compose up
[+] Building 2.2s (6/10)                                                                                                                                                 docker:default
 => [radio_api internal] load .dockerignore                                                                                                                                        0.0s
 => => transferring context: 2B                                                                                                                                                    0.0s
 => [radio_api internal] load build definition from Dockerfile                                                                                                                     0.0s
 => => transferring dockerfile: 503B                                                                                                                                               0.0s
 => [radio_api internal] load metadata for docker.io/trafex/php-nginx:latest                                                                                                       0.5s
 => CACHED [radio_api 1/6] FROM docker.io/trafex/php-nginx@sha256:243228b3d7373ea2135e9b18e8b3dd74f1ee843d437ddc3aa81fb5f1af1deed8                                                 0.0s
 => [radio_api internal] load build context                                                                                                                                        0.0s
 => => transferring context: 2.06kB                                                                                                                                                0.0s
 => ERROR [radio_api 2/6] RUN apk add --update --no-cache $PHPIZE_DEPS  && pecl install redis  && docker-php-ext-enable redis                                                      1.7s
------
 > [radio_api 2/6] RUN apk add --update --no-cache $PHPIZE_DEPS         && pecl install redis   && docker-php-ext-enable redis:
0.471 fetch https://dl-cdn.alpinelinux.org/alpine/v3.18/main/aarch64/APKINDEX.tar.gz
0.746 fetch https://dl-cdn.alpinelinux.org/alpine/v3.18/community/aarch64/APKINDEX.tar.gz
1.495 OK: 123 MiB in 96 packages
1.689 /bin/sh: pecl: not found
------
WARN[0000] buildx: failed to read current commit information with git rev-parse --is-inside-work-tree
failed to solve: process "/bin/sh -c apk add --update --no-cache $PHPIZE_DEPS \t&& pecl install redis \t&& docker-php-ext-enable redis" did not complete successfully: exit code: 127
root@raspi4:/home/pi/work/Radio-API#

from radio-api.

tackin avatar tackin commented on July 20, 2024

btw:
I added a macvlan-config with an own local IP to my docker-compose of Radio-API for this container-network.
Now I can expose Port 80 multiple times on my docker-host and only have to redirect Frontier-DNS-requests to that new Docker-network-IP in the local net.

from radio-api.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.