Comments (8)
I opened an issue regarding multi plattform builds: #13
from radio-api.
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.
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.
Ahhhhgrrrrr!!!!
Thank you very much for the hint. Great!
It's now up and running.
from radio-api.
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.
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.
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.
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)
- Domain GUI and Radio
- Question ("How To" Videos) HOT 5
- Medion Radio - Network Timeout HOT 7
- Question about nextcloud share HOT 8
- Update own Streams via interval HOT 3
- No GUI interface on the web server. My installation settings are wrong? HOT 2
- Sonoro radio not supported? HOT 4
- Uncaught RedisException: Connection refused HOT 2
- Authentication for token-protected stream HOT 4
- Characters with diacritics are stripped HOT 2
- Rewirting of URLs with parameters HOT 5
- Does this software require redis dependency to function? HOT 26
- "Update Available" still shown after Update
- v2.8.3 with CONF_USE_JSON_CACHE=true errors HOT 4
- Station logo not shown everytime HOT 5
- time.wifiradiofrontier.com HOT 2
- KIMB-technologies/Radio-API HOT 9
- Got a problem after PHP-Update to 8.3. HOT 2
- Need Help HOT 10
- Einstellungen : Reihenfolge ändern HOT 9
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from radio-api.