target / mmk-ui-api

UI, API, and Scanner (Rules Engine) services for Merry Maker
Apache License 2.0
122 stars 15 forks source link

Bulld error #73

Open JoshRSec opened 2 years ago

JoshRSec commented 2 years ago

Hello, I am getting the error below when trying to run the full stack demo.

Could you please point me in the right direction, let me know if I can provide any more information.

PS C:\Repos\mmk-ui-api> docker compose -f docker-compose.all.yml up [+] Building 7.9s (50/97) => [mmk-ui-api-ui internal] load build definition from Dockerfile 0.0s => => transferring dockerfile: 761B 0.0s => [mmk-ui-api-scanner internal] load build definition from Dockerfile 0.0s => => transferring dockerfile: 1.22kB 0.0s => [mmk-ui-api-jobs internal] load build definition from Dockerfile 0.0s => => transferring dockerfile: 32B 0.0s => [mmk-ui-api-api internal] load build definition from Dockerfile 0.0s => => transferring dockerfile: 32B 0.0s => [mmk-ui-api-ui internal] load .dockerignore 0.0s => => transferring context: 34B 0.0s => [mmk-ui-api-scanner internal] load .dockerignore 0.0s => => transferring context: 34B 0.0s => [mmk-ui-api-jobs internal] load .dockerignore 0.0s => => transferring context: 34B 0.0s => [mmk-ui-api-api internal] load .dockerignore 0.0s => => transferring context: 34B 0.0s => [mmk-ui-api-ui internal] load metadata for docker.io/abiosoft/caddy:0.11.5-no-stats 1.7s => [mmk-ui-api-api internal] load metadata for docker.io/library/node:16.15.0-alpine 7.7s => [auth] abiosoft/caddy:pull token for registry-1.docker.io 0.0s => [auth] library/node:pull token for registry-1.docker.io 0.0s => [mmk-ui-api-ui internal] load build context 0.0s => => transferring context: 5.62kB 0.0s => [mmk-ui-api-ui stage-0 1/11] FROM docker.io/library/node:16.15.0-alpine@sha256:1a9a71ea86aad332aa7740316d411 0.0s => CACHED [mmk-ui-api-ui stage-1 1/3] FROM docker.io/abiosoft/caddy:0.11.5-no-stats@sha256:fd718202f404b67f8c4e0 0.0s => [mmk-ui-api-scanner internal] load build context 0.0s => => transferring context: 3.08kB 0.0s => [mmk-ui-api-jobs internal] load build context 0.1s => => transferring context: 13.55kB 0.1s => CACHED [mmk-ui-api-api stage-1 2/10] RUN mkdir -p /app 0.0s => [mmk-ui-api-api internal] load build context 0.1s => => transferring context: 13.55kB 0.1s => CACHED [mmk-ui-api-scanner build 2/15] RUN echo "http://dl-cdn.alpinelinux.org/alpine/edge/main" >> /etc/apk 0.0s => CACHED [mmk-ui-api-scanner build 3/15] RUN apk add --no-cache libcrypto3 yara-dev make python3 g++ git c 0.0s => CACHED [mmk-ui-api-scanner build 4/15] RUN update-ca-certificates --fresh 0.0s => CACHED [mmk-ui-api-scanner build 5/15] RUN mkdir -p /app 0.0s => CACHED [mmk-ui-api-scanner build 6/15] WORKDIR /app 0.0s => CACHED [mmk-ui-api-scanner build 7/15] COPY package.json yarn.lock /app/ 0.0s => CACHED [mmk-ui-api-scanner build 8/15] COPY ./scanner/package.json /app/scanner/ 0.0s => CACHED [mmk-ui-api-scanner build 9/15] COPY ./scanner/config /app/scanner/config 0.0s => CACHED [mmk-ui-api-scanner build 10/15] RUN yarn workspace scanner install 0.0s => CACHED [mmk-ui-api-scanner build 11/15] COPY ./scanner/ /app/scanner/ 0.0s => CACHED [mmk-ui-api-scanner build 12/15] WORKDIR /app/scanner 0.0s => ERROR [mmk-ui-api-scanner build 13/15] RUN yarn build 4.8s => CACHED [mmk-ui-api-ui stage-0 2/11] RUN apk add --no-cache bash git openssl wget ca-certificates o 0.0s => CACHED [mmk-ui-api-ui stage-0 3/11] RUN apk add --no-cache --virtual .gyp python3 make g++ 0.0s => CACHED [mmk-ui-api-ui stage-0 4/11] RUN apk add wget ca-certificates 0.0s => CACHED [mmk-ui-api-ui stage-0 5/11] RUN update-ca-certificates --fresh 0.0s => CACHED [mmk-ui-api-ui stage-0 6/11] WORKDIR /app 0.0s => CACHED [mmk-ui-api-ui stage-0 7/11] COPY package.json yarn.lock /app/ 0.0s => CACHED [mmk-ui-api-ui stage-0 8/11] COPY ./frontend/ /app/frontend/ 0.0s => CANCELED [mmk-ui-api-ui stage-0 9/11] RUN yarn workspace frontend install 5.0s => CACHED [mmk-ui-api-jobs stage-0 2/18] RUN apk add --no-cache --repository http://dl-cdn.alpinelinux.org/alpi 0.0s => CACHED [mmk-ui-api-jobs stage-0 3/18] RUN apk add --no-cache -X http://dl-cdn.alpinelinux.org/alpine/edge/te 0.0s => CACHED [mmk-ui-api-jobs stage-0 4/18] RUN apk add wget ca-certificates 0.0s => CACHED [mmk-ui-api-jobs stage-0 5/18] RUN update-ca-certificates --fresh 0.0s => CACHED [mmk-ui-api-jobs stage-0 6/18] RUN apk add --no-cache --virtual .gyp bash git openssh python3 0.0s => CACHED [mmk-ui-api-jobs stage-0 7/18] RUN mkdir -p /home/merrymaker/app 0.0s => CACHED [mmk-ui-api-jobs stage-0 8/18] WORKDIR /home/merrymaker/app 0.0s => CACHED [mmk-ui-api-jobs stage-0 9/18] COPY package.json yarn.lock /home/merrymaker/app/ 0.0s => CACHED [mmk-ui-api-jobs stage-0 10/18] RUN mkdir /home/merrymaker/app/backend 0.0s => CACHED [mmk-ui-api-jobs stage-0 11/18] COPY ./backend/package.json /home/merrymaker/app/backend/ 0.0s => CACHED [mmk-ui-api-jobs stage-0 12/18] COPY ./backend/config /home/merrymaker/app/backend/config 0.0s => CANCELED [mmk-ui-api-jobs stage-0 13/18] RUN yarn workspace backend install 4.8s

[mmk-ui-api-scanner build 13/15] RUN yarn build:

0 1.012 yarn run v1.22.18

0 1.070 $ tsc && cp src/rules/*.yara dist/rules

0 4.537 error TS2688: Cannot find type definition file for 'ioredis'.

0 4.537 The file is in the program because:

0 4.537 Entry point for implicit type library 'ioredis'

0 4.610 error Command failed with exit code 2.

0 4.610 info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.


failed to solve: executor failed running [/bin/sh -c yarn build]: exit code: 2

suresh42326 commented 6 months ago

It's due to packages like g++, yara, yara dev. repositoies might have changed. i am inspecting the issue. can repo contributors help with it?