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

can't build Postee UI from sources #536

Closed
afdesk opened this issue Mar 9, 2023 · 0 comments · Fixed by #537
Closed

can't build Postee UI from sources #536

afdesk opened this issue Mar 9, 2023 · 0 comments · Fixed by #537

Comments

@afdesk
Copy link
Collaborator

afdesk commented Mar 9, 2023

I did a clone of postee and try to build UI:

git clone git@github.com:aquasecurity/postee.git

but I can't build Postee UI image in my environment:

$ docker build -f Dockerfile.ui -t posteeui:1 .
Sending build context to Docker daemon     14MB
Step 1/27 : FROM node:alpine3.15 as vuebuilder
 ---> e5f532dbeb15
Step 2/27 : COPY ./ui/frontend /frontend
 ---> Using cache
 ---> 5e9ce979cc16
Step 3/27 : WORKDIR /frontend
 ---> Using cache
 ---> 2ba2923a01db
Step 4/27 : RUN yarn install
 ---> Running in 0afc7427cba1
yarn install v1.22.19
warning package-lock.json found. Your project contains lock files generated by tools other than Yarn. It is advised not to mix package managers in order to avoid resolution inconsistencies caused by unsynchronized lock files. To clear this warning, remove package-lock.json.
[1/4] Resolving packages...
warning Resolution field "glob-parent@5.1.2" is incompatible with requested version "glob-parent@^6.0.1"
warning Resolution field "ansi-regex@5.0.1" is incompatible with requested version "ansi-regex@^3.0.0"
[2/4] Fetching packages...
error @achrinza/node-ipc@9.2.5: The engine "node" is incompatible with this module. Expected version "8 || 9 || 10 || 11 || 12 || 13 || 14 || 15 || 16 || 17 || 18". Got "19.2.0"
error Found incompatible module.
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
The command '/bin/sh -c yarn install' returned a non-zero code: 1

the same issue for docker-compose:

$ docker-compose up
Building posteeui
Sending build context to Docker daemon     14MB
Step 1/27 : FROM node:alpine3.15 as vuebuilder
 ---> e5f532dbeb15
Step 2/27 : COPY ./ui/frontend /frontend
 ---> Using cache
 ---> 5e9ce979cc16
Step 3/27 : WORKDIR /frontend
 ---> Using cache
 ---> 2ba2923a01db
Step 4/27 : RUN yarn install
 ---> Running in 0db64c99a563
yarn install v1.22.19
warning package-lock.json found. Your project contains lock files generated by tools other than Yarn. It is advised not to mix package managers in order to avoid resolution inconsistencies caused by unsynchronized lock files. To clear this warning, remove package-lock.json.
[1/4] Resolving packages...
warning Resolution field "glob-parent@5.1.2" is incompatible with requested version "glob-parent@^6.0.1"
warning Resolution field "ansi-regex@5.0.1" is incompatible with requested version "ansi-regex@^3.0.0"
[2/4] Fetching packages...
error @achrinza/node-ipc@9.2.5: The engine "node" is incompatible with this module. Expected version "8 || 9 || 10 || 11 || 12 || 13 || 14 || 15 || 16 || 17 || 18". Got "19.2.0"
error Found incompatible module.
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
The command '/bin/sh -c yarn install' returned a non-zero code: 1
ERROR: Service 'posteeui' failed to build : Build failed
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

Successfully merging a pull request may close this issue.

1 participant