-
Notifications
You must be signed in to change notification settings - Fork 21
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
Is there a arm32v6 container? #1
Comments
Hi Gabriel, no - not yet. Are you sure you mean ARM32V2? I've never seen that architecture before, was it just a typo and you need ARM32V7/ ARM32V6 (e.g. for the Raspberry Pi)? However, gBridge images are based on the "alpine" and "php" docker images. Both of them should be available for ARM32V6, I'm unsure about ARM32V7. |
Armv6, 32 bit would be nice! So i can try this out in a Raspberry Pi Zero. Thanks! |
ARM32V6 images are now available, though I couldn't test them, because I currently don't have a RPi with Docker running available. https://hub.docker.com/r/pkap/gbridge-redis-worker-arm32v6/ After creating your docker compose file (https://about.gbridge.kappelt.net/dockergen/), you need to substitute package names by hand:
If you are using Redis and/ or MySQL in the docker container too, you need to replace them too:
|
Thanks! I have to solve first the fact docker-compose > 1.13 does not work in Pi and then will test this and report back. |
Hi, let me know when you made any progress or I can help you. If you want to get quick results in the meantime: I'd like to invite you to the beta test of the hosted gBridge: https://about.gbridge.kappelt.net |
Thanks Peter! I'm having trouble finding an arm32v6 version of docker compose. There is one version in the official repo but it's old and does not support composer 3 specification. Is there an alternative to composer to get all running? |
It is possible to run it without compose, but I wouldn't recommend it. You basically need to "translate" the compose file to plain docker commands, but you have to care about network creation and startup order then. After a quick search, I couldn't find current docker-compose-files for your architecture either. However, since you've docker installed on your system, it should be straightforward to build the current docker-compose on your own: https://www.berthon.eu/2017/getting-docker-compose-on-raspberry-pi-arm-the-easy-way/ The simplest way would be to just change to compose file version. Just change |
As ist seems, you could install a new compose version with the Python package manager, too:
(You might need to install pip, I think the apt-package is called "python-pip") |
Thanks! I succesfully installed docker via pip in a virtualenv but decided to try the available docker-compose (1.8) that is in the official reppo by changing the version file to 2. Looks like this is not liked by it: In the config file the port web line is: |
Diy you fill in the field "Webserver Port" in the "App Settings" while generating the docker file? |
Nice catch! |
Pulling database (mysql:5)... :O |
Did you swap out the docker image names, too? It tries to pull the official mysql package, that is not available for ARM. Try replacing |
Took my time and started from scratch. Made a new Google Action project and changed the containers in the composer file. That MYSQL container asks for a MYSQL_ROOT_PASSWORD, added that env variable to the file and stopped whinning. Now i get constantly this: redis-worker_1 | MQTT client reconnected! redis-worker_1 | > [email protected] start /usr/src/gbridge-redis-worker What can it be? I already tried running the docker as super user. Thanks! PS: does all the logging happens in ram? Because running in a sdcard, i need to minimize the writing. |
Hello? 😊 |
Sorry, I've been on abroad the last couple of days. This message basically means, that the script inside of one of the docker containers is unable to connect to your MQTT server. Could you please double check and show the config of the mqtt broker in the docker-compose.yml file? What MQTT broker have you running (Mosquitto, HiveMQ, ...)? Which version? |
GBRIDGE_REDISWORKER_MQTT: 'mqtt://localhost:51883' Tried setting up a mqtt user just in case there was some kind of conflict with other device connected to the broker and also had this issue. Also tried removing the mqtt:// and same issue. In mosquitto's config the port is 51883 and the protocol mqtt. Had no issues connecting with other google bridge but externally, not in the localhost. |
Local host points to the docker container, not the docker host. Try to use the external IP of the docker host (e.g. 192.x.x.x or 172.x.x.x) instead of localhost |
Yeah! It worked. But now i get: gbridge_web_1 exited with code 139 |
The gbridge_web-Container is based on the However, I (currently) can't find another docker container that contains Apache and PHP for arm32v6. It would be great if you could do a quick search too, in case I'm missing something. It might be possible to use Nginx with PHP, but I haven't worked with Nginx in the last year. So it'll take some time for me to implement. |
I'll look into it, but I think Apache is very bloated for what is needed, NGINX is more lightweight. |
Yeah - totally true. But I know how Apache works and needs to by configured, so it is my first choice here ;) Nginx would probably be way better as a long term solution. |
And what are your requirements for the web side of your application? I may help you out to make the transition. |
I've tried to convert it to NGINX. It works, at least on x86. The new NGINX version is not yet supported by the Web-Docker-Generator, since I've not yet tested this new version thoroughly. Please modify your docker-compose-file as shown: version: '3'
networks:
backend:
driver: bridge
web_frontend:
driver: bridge
services:
database:
#!!! leave as it is
cache:
#!!! leave as it is
web:
image: pkap/gbridge-web-nginx:arm32v6-latest
restart: always
ports:
#!!! leave as it is
environment: &webapp-environment
#!!! leave environment keys as they are
links:
- database
- cache
- web-fpm
depends_on:
- database
- cache
- web-fpm
networks:
- web_frontend
- backend
volumes:
- websrc:/var/www
web-fpm:
image: pkap/gbridge-web-fpm:arm32v6-latest
restart: always
networks:
- backend
volumes:
- websrc:/var/www
environment: *webapp-environment
redis-worker:
image: pkap/gbridge-redis-worker:arm32v6-latest
restart: always
environment:
#!!! leave environment keys as they are
networks:
- backend
links:
- cache
depends_on:
- cache
volumes:
websrc: Have a good one! |
Dang:
|
There were a couple of indentation mistakes in your config file, I've fixed them for you. Please try this one (https://filebin.net/ta8xs2n0m0fchyby/gaz082-config.yaml?t=b3bf2xqb) and just fill in your information |
The docker hypriot/rpi-mysql:latest is old version of mySql. It`s be solved by replacing hypriot/rpi-mysql:latest to williamdes/docker-mariadb-debian:10.2.10-armhf |
Please note the correct package names are:
|
Furthermore;
|
Hello all. It's been quiet around here, but perhaps someone can give me an idea of what I may be doing wrong with my setup. I'm hosting my own gBridge in an rPi 3 exposed via duckDns. Pretty good so far. I was able to follow the instructions in this discussion, and substitute packages as necessary with arm32 equivalents. When I run 'docker-compose up', it all seems to work fine. But when I try to go into production mode via 'docker-compose exec web php artisan migrate' I get an error that makes little sense to me: master@gbridge:/opt/gbridge $ docker-compose exec web php artisan migrate It would suggest that the PATH inside the container is not set up correctly, and therefore it can't find PHP (??). My docker-compose.yml is as follows (changed the extension to "txt" to make the editor happy): Can someone help me shed some light on the cause of the error? Thanks! -LuisB |
you need to run |
@GAZ082 wrote in the gBridge repository (moved):
Hi there. Is there one container for that arch? Thanks!
The text was updated successfully, but these errors were encountered: