receipt-parser-server icon indicating copy to clipboard operation
receipt-parser-server copied to clipboard

run with docker compose

Open mstewart14 opened this issue 1 year ago • 1 comments

tried the following (note, I'm running on amd64 so had to build it myself) tried the following as a docker-compose.yml

services: receipt-parser-server: image: 76b8a403068d #had to build locally for amd64 container_name: receipt-parser environment: - RECEIPT_PARSER_CONFIG_DIR="/config" volumes: - ./parser/data:/app/data - ./parser/config:/config ports: - 192.168.0.233:8721:8721 restart: unless-stopped

instantly starts restarting and never comes up all the way. why is that? running the launcher script (correctly modified to refer to this image and the IP) works and I end up with a running container. It's important for me for back-up and management purposes.
any help or clues would be appreciated

mstewart14 avatar Apr 13 '24 19:04 mstewart14

What do the container logs say?

Mine say this:

standard_init_linux.go:178: exec user process caused "exec format error"
standard_init_linux.go:178: exec user process caused "exec format error"
standard_init_linux.go:178: exec user process caused "exec format error"
standard_init_linux.go:178: exec user process caused "exec format error"

This indicates an architecture conflict, and it appears to be the case. The DockerHub image says:

$ docker inspect bf07f8de4f4a | grep Arch
        "Architecture": "arm64",

... and I'm trying to run it on:

$ docker info | grep Arch
Architecture: x86_64

This image needs to be built for multiple architectures - I'll try a manual build first, then will see if it can be PR'd.

emcniece avatar May 22 '24 23:05 emcniece