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

docker build error #790

Open
wade-liwei opened this issue Nov 11, 2023 · 2 comments
Open

docker build error #790

wade-liwei opened this issue Nov 11, 2023 · 2 comments

Comments

@wade-liwei
Copy link

do you have the problem with docker base image: dydxprotocol/indexer-node:16-alpine-m1
when with dydxprotocol/indexer-node:16-alpine, run postgres-package error.

ubuntu@ip-172-31-0-105:~/v4-chain/indexer$ docker compose -f docker-compose-local-deployment.yml up
WARN[0000] The "NPM_TOKEN" variable is not set. Defaulting to a blank string.
[+] Building 0.5s (14/40) docker:default
=> [postgres internal] load build definition from Dockerfile.postgres.local 0.0s
=> => transferring dockerfile: 643B 0.0s
=> [postgres internal] load .dockerignore 0.0s
=> => transferring context: 2B 0.0s
=> [postgres internal] load metadata for docker.io/library/postgres:12-bullseye 0.3s
=> [vulcan internal] load build definition from Dockerfile.service.local 0.0s
=> => transferring dockerfile: 1.95kB 0.0s
=> [vulcan internal] load .dockerignore 0.0s
=> => transferring context: 2B 0.0s
=> [vulcan internal] load metadata for docker.io/dydxprotocol/indexer-node:16-alpine-m1 0.2s
=> CANCELED [vulcan internal] load build context 0.3s
=> => transferring context: 0.3s
=> CACHED [vulcan 1/28] FROM docker.io/dydxprotocol/indexer-node:16-alpine-m1@sha256:070c10d349cbdfff17fac7c5bba290ac7a4f6a9d0b5635c7ed51cb56bdc953a5 0.0s
=> ERROR [vulcan 2/28] RUN apk add --no-cache bash jq aws-cli 0.3s
=> [postgres internal] load build context 0.0s
=> => transferring context: 854B 0.0s
=> [postgres 1/3] FROM docker.io/library/postgres:12-bullseye@sha256:2e851d595911b2d73b1563f7817fe7c911513d2d06e78d8b23d4fa955e649597 0.0s
=> CACHED [postgres 2/3] COPY initialize-docker-postgres-user.sh /docker-entrypoint-initdb.d/ 0.0s
=> CACHED [postgres 3/3] RUN apt update && apt install -y postgresql-12-plpgsql-check postgresql-12-plprofiler postgresql-12-pldebugger 0.0s
=> [postgres] exporting to image 0.0s
=> => exporting layers 0.0s
=> => writing image sha256:3875ed339c85d25a09881fa9f118a5d5123a8116a5ecb634c3ba73c10898dd4f 0.0s
=> => naming to docker.io/library/indexer-postgres 0.0s

[vulcan 2/28] RUN apk add --no-cache bash jq aws-cli:
0.206 exec /bin/sh: exec format error


failed to solve: process "/bin/sh -c apk add --no-cache bash jq aws-cli" did not complete successfully: exit code: 1

@wade-liwei
Copy link
Author

without m1 docker image error:
image

@krabat-h
Copy link

I have the same problem

image

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

3 participants
@wade-liwei @krabat-h and others