Open greyireland opened 8 months ago
maybe use docker compose
docker compose -f docker-compose-local-deployment.yml up
failed with error:
=> CANCELED [postgres 3/3] RUN apt update && apt install -y postgresql-12-plpgsql-check postgresql-12-plprofiler postgresql-12-pldebugger 3.3s
=> ERROR [vulcan 2/28] RUN apk add --no-cache bash jq aws-cli 1.2s
------
> [vulcan 2/28] RUN apk add --no-cache bash jq aws-cli:
0.248 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
docker compose -f docker-compose-local-deployment.yml up
WARN[0000] The "DD_API_KEY" variable is not set. Defaulting to a blank string.
[+] Running 15/15
✔ kafka 7 layers [⣿⣿⣿⣿⣿⣿⣿] 0B/0B Pulled 8.0s
✔ df20fa9351a1 Pull complete 0.6s
✔ 84e23dbbc187 Pull complete 3.3s
✔ dc3c7ee89222 Pull complete 1.0s
✔ 38de5b2f63c7 Pull complete 1.1s
✔ 85a302c70da0 Pull complete 1.6s
✔ e33a2e9fd1d2 Pull complete 1.9s
✔ ed4f1a42005e Pull complete 2.3s
✔ redis 6 layers [⣿⣿⣿⣿⣿⣿] 0B/0B Pulled 6.0s
✔ 89d9c30c1d48 Pull complete 1.9s
✔ b2eb22a0b7db Pull complete 2.3s
✔ c5ccbdf10203 Pull complete 2.5s
✔ 29dc5d38440e Pull complete 2.9s
✔ a9bfccb1acb4 Pull complete 3.0s
✔ ae61c5711cf8 Pull complete 3.4s
[+] Building 17.4s (18/62) docker:default
=> [postgres internal] load .dockerignore 0.0s
=> => transferring context: 2B 0.0s
=> [postgres internal] load build definition from Dockerfile.postgres.local 0.0s
=> => transferring dockerfile: 643B 0.0s
=> [vulcan internal] load .dockerignore 0.0s
=> => transferring context: 2B 0.0s
=> [vulcan internal] load build definition from Dockerfile.service.local 0.0s
=> => transferring dockerfile: 1.95kB 0.0s
=> [postgres internal] load metadata for docker.io/library/postgres:12-bullseye 1.7s
=> [postgres-package internal] load metadata for docker.io/dydxprotocol/indexer-node:16-alpine-m1 2.2s
=> [postgres internal] load build context 0.0s
=> => transferring context: 854B 0.0s
=> [postgres 1/3] FROM docker.io/library/postgres:12-bullseye@sha256:b940e8a73d9500e4e629b102dbed67f55b6503906f044ff6b419f02d36a5ed4e 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:e5c8f1d4fa4417f27cfc0a10cfe7638bb7b3388f30f37b3f68b8f467582fd15e 0.0s
=> => naming to docker.io/library/indexer-postgres 0.0s
=> [vulcan internal] load build context 0.3s
=> => transferring context: 5.46MB 0.3s
=> [vulcan 1/28] FROM docker.io/dydxprotocol/indexer-node:16-alpine-m1@sha256:070c10d349cbdfff17fac7c5bba290ac7a4f6a9d0b5635c7ed51cb56bdc953a5 10.0s
=> => resolve docker.io/dydxprotocol/indexer-node:16-alpine-m1@sha256:070c10d349cbdfff17fac7c5bba290ac7a4f6a9d0b5635c7ed51cb56bdc953a5 0.0s
=> => sha256:070c10d349cbdfff17fac7c5bba290ac7a4f6a9d0b5635c7ed51cb56bdc953a5 3.05kB / 3.05kB 0.0s
=> => sha256:7b28e1f9c40bf19837a77b707e1fa8c915b77a473b8457366c282aa18b92563e 8.35kB / 8.35kB 0.0s
=> => sha256:9b18e9b68314027565b90ff6189d65942c0f7986da80df008b8431276885218e 2.71MB / 2.71MB 0.3s
=> => sha256:d4bbdc18f3e0d876c6dd22cb80843cd39643602e791488600c523655514f1f31 36.34MB / 36.34MB 1.0s
=> => sha256:bb54f68a6fc352431a291f292597a7445894ab233ad63742943345a8adfe34b8 2.44MB / 2.44MB 1.0s
=> => extracting sha256:9b18e9b68314027565b90ff6189d65942c0f7986da80df008b8431276885218e 0.0s
=> => sha256:6f6c5903b8c0ef8e2e35ecf2ba7b484d0732333f44224b7bbd07cab3fc8980d0 450B / 450B 0.8s
=> => sha256:dd726519eb34ebc1c34106ec49b09fd2b848f7a606fcf09a2af05ca9f4222008 2.44MB / 2.44MB 1.3s
=> => extracting sha256:d4bbdc18f3e0d876c6dd22cb80843cd39643602e791488600c523655514f1f31 0.8s
=> => sha256:93dfb1412b9f0dc4739417308877896a37f184b186b60458d38c5c700577253e 8.10kB / 8.10kB 1.2s
=> => sha256:c943b3378387f6e6d16945264000a3b79b70d377178cb20ad29222802c2787d9 150.81MB / 150.81MB 4.7s
=> => sha256:25ff7fa9a98c3bb72377c090ef4c330c95d36983bde832473c7f2b18196cfdc5 2.62MB / 2.62MB 1.6s
=> => sha256:c341025bfea47adbe411f347671fa01a234f8145575c010b12afd1bccea3a57f 1.91MB / 1.91MB 1.6s
=> => sha256:27366cfed8da1d73c79daecb22152bb781e30bf1bf4a30f2800c94d5038a88fa 3.82MB / 3.82MB 2.4s
=> => sha256:e06d578855976e177eae11a279856889093d7b1b908f8d96ca0067202e0d71f7 101B / 101B 2.2s
=> => extracting sha256:bb54f68a6fc352431a291f292597a7445894ab233ad63742943345a8adfe34b8 0.0s
=> => extracting sha256:6f6c5903b8c0ef8e2e35ecf2ba7b484d0732333f44224b7bbd07cab3fc8980d0 0.0s
=> => extracting sha256:dd726519eb34ebc1c34106ec49b09fd2b848f7a606fcf09a2af05ca9f4222008 0.0s
=> => extracting sha256:93dfb1412b9f0dc4739417308877896a37f184b186b60458d38c5c700577253e 0.0s
=> => sha256:b876f5d4c8c663636e7968b1a40efa85e1d9c29110c014bb8ffc5c59487ec7ed 35.64MB / 35.64MB 5.3s
=> => sha256:3e80c7f0f0afddd6857904300b95a55b0db9dceed4b3b7acb48f296ec7ee638c 6.64MB / 6.64MB 3.0s
=> => extracting sha256:c943b3378387f6e6d16945264000a3b79b70d377178cb20ad29222802c2787d9 2.9s
=> => extracting sha256:25ff7fa9a98c3bb72377c090ef4c330c95d36983bde832473c7f2b18196cfdc5 0.0s
=> => extracting sha256:c341025bfea47adbe411f347671fa01a234f8145575c010b12afd1bccea3a57f 0.0s
=> => extracting sha256:27366cfed8da1d73c79daecb22152bb781e30bf1bf4a30f2800c94d5038a88fa 0.1s
=> => extracting sha256:e06d578855976e177eae11a279856889093d7b1b908f8d96ca0067202e0d71f7 0.0s
=> => extracting sha256:b876f5d4c8c663636e7968b1a40efa85e1d9c29110c014bb8ffc5c59487ec7ed 1.5s
=> => extracting sha256:3e80c7f0f0afddd6857904300b95a55b0db9dceed4b3b7acb48f296ec7ee638c 0.2s
=> [postgres-package internal] load build definition from Dockerfile.postgres-package.local 0.0s
=> => transferring dockerfile: 1.53kB 0.0s
=> [postgres-package internal] load .dockerignore 0.0s
=> => transferring context: 2B 0.0s
=> [postgres-package internal] load build context 0.4s
=> => transferring context: 4.87MB 0.3s
=> ERROR [postgres-package 2/20] RUN adduser -S dydx 5.6s
=> ERROR [vulcan 2/28] RUN apk add --no-cache bash jq aws-cli 5.6s
------
> [postgres-package 2/20] RUN adduser -S dydx:
0.380 exec /bin/sh: exec format error
------
------
> [vulcan 2/28] RUN apk add --no-cache bash jq aws-cli:
0.407 exec /bin/sh: exec format error
------
failed to solve: process "/bin/sh -c adduser -S dydx" did not complete successfully: exit code: 1
@vincentwschau When is it planned to be repaired? I very much hope that the indexer service can be deployed
@vincentwschau You have linux alpine image for M1 downloaded by default.
$ grep -R "alpine-m1"
...
Dockerfile.service.local:FROM dydxprotocol/indexer-node:16-alpine-m1
Dockerfile.postgres-package.local:FROM dydxprotocol/indexer-node:16-alpine-m1
...
Just change it to dydxprotocol/indexer-node:16-alpine
and it's gonna work.
ERROR: The Compose file is invalid because: Service postgres has neither an image nor a build context specified. At least one must be provided.