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

run with docker compose #61

Open
mstewart14 opened this issue Apr 13, 2024 · 1 comment
Open

run with docker compose #61

mstewart14 opened this issue Apr 13, 2024 · 1 comment

Comments

@mstewart14
Copy link

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

@emcniece
Copy link

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.

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