Comments (5)
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.
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.
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.
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.
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)
- NGINX port incorrect after restart when using NGINX_LISTEN_PORT HOT 2
- Container does not start: 20-set-app-defaults: line 213: syntax error near unexpected token `}' HOT 2
- ENABLE_NGINX_SSL does not work anymore HOT 4
- Database is not restoring HOT 1
- Can't connect to a postgres DB using encryption HOT 1
- Documentation request HOT 1
- Mqtt stopt met werken HOT 21
- Wrong media type for manifest HOT 1
- Upgrade the PostgreSQL client portion to version 15 in the docker-image HOT 3
- pg_dump: error :aborting because of server version mismatch HOT 11
- Missing docs / install & configure HOT 4
- Postgres update from 10 to 15 failed (with fix for: User "dsmrreader" does not have a valid SCRAM secret) HOT 6
- Docker container in warning status, logs with errors HOT 7
- SyntaxWarning: invalid escape sequence '\d' HOT 6
- Webinterface not starting on 2024.02.03 HOT 8
- Update path HOT 6
- Postgresql client Upgrade (pg_dump) HOT 47
- Support for docker secrets HOT 16
- MQTT werkt niet meer "Publish_split_topic_meter_statistics() failed: nextval: reached maximum" HOT 3
- DSMR-Reader losing conenction to datalogger since last update (:latest) HOT 48
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 dsmr-reader-docker.