Git Product home page Git Product logo

Comments (5)

xirixiz avatar xirixiz commented on August 19, 2024

Hi, why do you want to build the docker images yourself? The images are availbale on the Docker hub. However, I think the error might have something to do with the sed command. I use the script on a macbook, and I know sed differs from sed used on Linux systems.

MacOS command:
sed -i '' "s|__QEMU_ARCH__|${qemu_arch}|g" Dockerfile."${docker_arch}"

I think the quotes have to be removed after -i for all sed commands, like this for example:
sed -i "s|__QEMU_ARCH__|${qemu_arch}|g" Dockerfile."${docker_arch}"

Also you have to modify the target repository on the Docker hub as you don't have permission to push an image to my account :). You could also comment out the following:

_push_docker_images
_cleanup

If you'd like to create a local image, not being pushed to the docker hub, and not being removed after creation. But again, I advice you to use the images from the Docker hub.

from dsmr-reader-docker.

L2v2P avatar L2v2P commented on August 19, 2024

I don't want to build the images myself, but I interpreted "You can create specific architecture files by running the update_hub_images.sh file. Dockerfile.cross is being used as input (template)." as necessary to run things on a RPi.

If I just run docker-compose up it results in a continuously failing dsmr container: "standard_init_linux.go:207: exec user process caused "exec format error"". I thought this had something to do with the architecture, hence my building of images.

Any idea on how to solve this then?

from dsmr-reader-docker.

xirixiz avatar xirixiz commented on August 19, 2024

That's correct. The docker-compose file is an example, you should modify the image of dsmr to the correct tag used for rpi.

for example:

xirixiz/dsmr-reader-docker:arm64v8-v1.28.0

or

xirixiz/dsmr-reader-docker:arm64v8-latest

Also you should modify the postgres image:

arm64v8/postgres:10-alpine

Then it should work out of the box

from dsmr-reader-docker.

L2v2P avatar L2v2P commented on August 19, 2024

Ok. I guess my lack of Docker skills start to show. I've modified the docker-compose.yaml file as shown below, but still get the "standard_init_linux.go:207: exec user process caused "exec format error"" error on both containers. Am I still doing something wrong?

version: '3.6'

services:
  dsmrdb:
    image: arm64v8/postgres:10-alpine
    container_name: dsmrdb
    volumes:
      - ./dsmrdb:/var/lib/postgresql/data
      - ./dsmrdb_backups:/dsmr/backups
    restart: always
    environment:
      - POSTGRES_USER=dsmrreader
      - POSTGRES_PASSWORD=dsmrreader
      - POSTGRES_DB=dsmrreader

  dsmr:
    image: xirixiz/dsmr-reader-docker:arm64v8-latest
    container_name: dsmr
    depends_on:
      - dsmrdb
    cap_add:
      - NET_ADMIN
    links:
      - dsmrdb
    restart: always
    environment:
      - DB_HOST=dsmrdb
      - DSMR_USER=admin
      - DSMR_EMAIL=root@localhost
      - DSMR_PASSWORD=admin
      - VIRTUAL_HOST=localhost
    ports:
      - 7777:80
      - 7779:443
    devices:
      - /dev/ttyUSB0:/dev/ttyUSB0

from dsmr-reader-docker.

 avatar commented on August 19, 2024

Installing both 32 bit version of both the reader and postgres resulted into something that worked. Unfortunately it seems that I cannot use both this software and Domoticz in conjunction.

from dsmr-reader-docker.

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.