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

Working version for Raspberry Pi with docker-compose (no exec format error) #3

Open
tricoos opened this issue Jul 17, 2021 · 2 comments

Comments

@tricoos
Copy link

tricoos commented Jul 17, 2021

The docker-compose file is outdated (contains non-used environment variables) and won't work for Raspberry Pi as the published images on Docker hub have no ARM builds causing an "exec format error".

Here is a working version you can use - I deleted Dockerfile and renamed Dockerfile.armhf to Dockerfile with the recommended restart setting (I don't know right now if this is actually required):

version: '3'

services:
  hs100tomqtt:
      build: .
      restart: "unless-stopped"

Now create a .env file with this content replacing 127.0.0.1 by the IP address of your MQTT broker:
HS100TOMQTT_MQTT_URL=mqtt://127.0.0.1

Can this be added to the documentation and the non-working as not-used volume and debug settings be removed from the file and the documentation?

@dersimn
Copy link
Owner

dersimn commented Jul 21, 2021

I've a newer workflow for building multi-arch images nowadays, see https://github.com/dersimn/HelloARM/tree/github-workflow

I haven't updated this repository in a while because it works good enough for me, but I'll update it soon.

@tricoos
Copy link
Author

tricoos commented Jul 21, 2021

I've forked, modified and extended your project because your project wouldn't work for me as I needed it:
https://github.com/tricoos/HS100toMQTT
And yes - I didn't use a .env file there ;)

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

No branches or pull requests

2 participants