You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by "Abd-elr4hman (via GitHub)" <gi...@apache.org> on 2024/02/07 12:07:30 UTC

[I] apisix-dashboard DockerFile build fail [apisix-dashboard]

Abd-elr4hman opened a new issue, #2926:
URL: https://github.com/apache/apisix-dashboard/issues/2926

   ### Issue description
   
   I am following the [Rebuild Docker image](https://github.com/apache/apisix-dashboard/blob/master/docs/en/latest/deploy-with-docker.md) from docs to build the apisix dashboard image.
   
   I made sure I have the prerequisites installed:
   - docker
   - etcd 3.4.0 + 
   
   when i run the command:
   ```docker build -t apisix-dashboard:dev.```
   i get the error message:
   ```ERROR: failed to solve: process "/bin/sh -c if [ \"$ENABLE_PROXY\" = \"true\" ] ; then yarn config set registry https://registry.npmmirror.com/ ; fi     && yarn install     && yarn build" did not complete successfully: exit code: 1```
   
   
   ### Expected behavior
   
   for the docker image to finish building.
   
   ### How to Reproduce
   
   1. clone the apisix-dashboard repo:
   ```git clone https://github.com/apache/apisix-dashboard.git```
   2. cd into apisix-dashboard
   ```cd apisix-dashboard```
   3. run the command:
   ```docker build -t apisix-dashboard:dev .```
   
   ### Screenshots
   
   <img width="1217" alt="Screenshot 2024-02-07 at 1 55 53 PM" src="https://github.com/apache/apisix-dashboard/assets/87248009/a84a81e6-838e-467a-9fd2-59fce0baf522">
   <img width="1409" alt="Screenshot 2024-02-07 at 1 46 55 PM" src="https://github.com/apache/apisix-dashboard/assets/87248009/a37abd85-7838-43e3-81cd-ca276e5f145f">
   
   
   
   ### Environment
   
   - OS (cmd: `uname -a`): macOS ventura 13.0.1
   - etcd version, if have (cmd: run `etcd --version`): 3.5.12
   
   
   
   ### Additional context
   
   _No response_


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] apisix-dashboard DockerFile build fail [apisix-dashboard]

Posted by "zll600 (via GitHub)" <gi...@apache.org>.
zll600 commented on issue #2926:
URL: https://github.com/apache/apisix-dashboard/issues/2926#issuecomment-1941379065

   @Abd-elr4hman Could you give us more error log?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] apisix-dashboard DockerFile build fail [apisix-dashboard]

Posted by "bravonaut (via GitHub)" <gi...@apache.org>.
bravonaut commented on issue #2926:
URL: https://github.com/apache/apisix-dashboard/issues/2926#issuecomment-1966803914

   @zll600 
   I ran into the same exit code on the same step when building with the dockerfile provided from the all-in-one folders.
   I do get a bit more info as the cert for a dependency is expired. Error persists with `ENABLE_PROXY` as true and false.
   
   
   ![image](https://github.com/apache/apisix-dashboard/assets/97112589/e6323424-339d-4003-9b51-2ec4c132af49)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] apisix-dashboard DockerFile build fail [apisix-dashboard]

Posted by "bravonaut (via GitHub)" <gi...@apache.org>.
bravonaut commented on issue #2926:
URL: https://github.com/apache/apisix-dashboard/issues/2926#issuecomment-1994792173

   @zll600 using the dockerfile you linked, both with proxy on or off, i am now getting the exact same output as @Abd-elr4hman
   
   Following the build more closely, I cannot figure out what exactly is causing the issue, but it is definitely in the build step of the frontend. I've also managed to build the frontend with the same version of node and yarn as defined in the dockerfile in an attempt to find the source of the problem.
   
   Tying into what I said earlier, I was wrongfully referring to the all-in-one folder of [apisix-docker](https://github.com/apache/apisix-docker/tree/master/all-in-one), but, assuming the docker build works fine, what is the reason that a patch has not been released? There was clearly an issue when building a docker image with the dockerfile in 3.0.1 vs current master.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] apisix-dashboard DockerFile build fail [apisix-dashboard]

Posted by "zll600 (via GitHub)" <gi...@apache.org>.
zll600 commented on issue #2926:
URL: https://github.com/apache/apisix-dashboard/issues/2926#issuecomment-1967993111

   @bravonaut I think this problem should be fixed by https://github.com/apache/apisix-dashboard/pull/2918. So could you use https://github.com/apache/apisix-dashboard/blob/master/Dockerfile to have a try?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] apisix-dashboard DockerFile build fail [apisix-dashboard]

Posted by "zll600 (via GitHub)" <gi...@apache.org>.
zll600 commented on issue #2926:
URL: https://github.com/apache/apisix-dashboard/issues/2926#issuecomment-2002339804

   @bravonaut I fix a build problem in master. It is not backport to release/3.0 https://github.com/apache/apisix-dashboard/pull/2918


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] apisix-dashboard DockerFile build fail [apisix-dashboard]

Posted by "juzhiyuan (via GitHub)" <gi...@apache.org>.
juzhiyuan commented on issue #2926:
URL: https://github.com/apache/apisix-dashboard/issues/2926#issuecomment-2813592168

   Hi, we will release a new dashboard to address legacy issues. Refer to https://github.com/apache/apisix-dashboard/issues/2981


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] apisix-dashboard DockerFile build fail [apisix-dashboard]

Posted by "Abd-elr4hman (via GitHub)" <gi...@apache.org>.
Abd-elr4hman commented on issue #2926:
URL: https://github.com/apache/apisix-dashboard/issues/2926#issuecomment-1942711499

   ```
    > [fe-builder 5/5] RUN if [ "false" = "true" ] ; then yarn config set registry https://registry.npmmirror.com/ ; fi     && yarn install     && yarn build:
   0.453 yarn install v1.22.19
   0.671 [1/5] Validating package.json...
   0.677 [2/5] Resolving packages...
   2.466 [3/5] Fetching packages...
   168.5 [4/5] Linking dependencies...
   168.5 warning " > @rjsf/antd@2.2.0" has unmet peer dependency "@babel/runtime-corejs2@^7.10.3".
   168.5 warning " > @rjsf/antd@2.2.0" has unmet peer dependency "antd-dayjs-webpack-plugin@1.0.0".
   168.5 warning " > @rjsf/antd@2.2.0" has unmet peer dependency "core-js@^2.5.7".
   168.5 warning "antd > rc-picker@2.5.10" has incorrect peer dependency "dayjs@^1.8.30".
   168.5 warning " > styled-components@5.2.1" has unmet peer dependency "react-is@>= 16.8.0".
   168.6 warning " > @4tw/cypress-drag-drop@1.6.0" has incorrect peer dependency "cypress@^2.1.0 || ^3.1.0 || ^4.0.0 || ^5.0.0 || ^6.0.0".
   168.6 warning "@cypress/code-coverage > @cypress/webpack-preprocessor@5.12.1" has unmet peer dependency "@babel/core@^7.0.1".
   168.6 warning "@cypress/code-coverage > @cypress/webpack-preprocessor@5.12.1" has unmet peer dependency "@babel/preset-env@^7.0.0".
   168.6 warning "@cypress/code-coverage > @cypress/webpack-preprocessor@5.12.1" has unmet peer dependency "babel-loader@^8.0.2".
   168.6 warning "@cypress/code-coverage > @cypress/webpack-preprocessor@5.12.1" has unmet peer dependency "webpack@^4 || ^5".
   168.6 warning "@umijs/plugin-blocks > @umijs/block-sdk > @umijs/utils > @babel/register@7.12.10" has unmet peer dependency "@babel/core@^7.0.0-0".
   168.6 warning "@umijs/plugin-blocks > @umijs/block-sdk > @umijs/types > @umijs/babel-preset-umi > @babel/plugin-proposal-class-properties@7.12.1" has unmet peer dependency "@babel/core@^7.0.0-0".
   168.6 warning "@umijs/plugin-blocks > @umijs/block-sdk > @umijs/types > @umijs/babel-preset-umi > @babel/plugin-proposal-decorators@7.12.1" has unmet peer dependency "@babel/core@^7.0.0-0".
   168.6 warning "@umijs/plugin-blocks > @umijs/block-sdk > @umijs/types > @umijs/babel-preset-umi > @babel/plugin-proposal-do-expressions@7.12.1" has unmet peer dependency "@babel/core@^7.0.0-0".
   168.6 warning "@umijs/plugin-blocks > @umijs/block-sdk > @umijs/types > @umijs/babel-preset-umi > @babel/plugin-proposal-export-default-from@7.12.1" has unmet peer dependency "@babel/core@^7.0.0-0".
   168.6 warning "@umijs/plugin-blocks > @umijs/block-sdk > @umijs/types > @umijs/babel-preset-umi > @babel/plugin-proposal-function-bind@7.12.1" has unmet peer dependency "@babel/core@^7.0.0-0".
   168.6 warning "@umijs/plugin-blocks > @umijs/block-sdk > @umijs/types > @umijs/babel-preset-umi > @babel/plugin-proposal-logical-assignment-operators@7.12.1" has unmet peer dependency "@babel/core@^7.0.0-0".
   168.6 warning "@umijs/plugin-blocks > @umijs/block-sdk > @umijs/types > @umijs/babel-preset-umi > @babel/plugin-proposal-nullish-coalescing-operator@7.12.1" has unmet peer dependency "@babel/core@^7.0.0-0".
   168.6 warning "@umijs/plugin-blocks > @umijs/block-sdk > @umijs/types > @umijs/babel-preset-umi > @babel/plugin-proposal-optional-chaining@7.12.1" has unmet peer dependency "@babel/core@^7.0.0-0".
   168.6 warning "@umijs/plugin-blocks > @umijs/block-sdk > @umijs/types > @umijs/babel-preset-umi > @babel/plugin-proposal-pipeline-operator@7.12.1" has unmet peer dependency "@babel/core@^7.0.0-0".
   168.6 warning "@umijs/plugin-blocks > @umijs/block-sdk > @umijs/types > @umijs/babel-preset-umi > @babel/plugin-syntax-top-level-await@7.12.1" has unmet peer dependency "@babel/core@^7.0.0-0".
   168.6 warning "@umijs/plugin-blocks > @umijs/block-sdk > @umijs/types > @umijs/babel-preset-umi > @babel/plugin-transform-destructuring@7.12.1" has unmet peer dependency "@babel/core@^7.0.0-0".
   168.6 warning "@umijs/plugin-blocks > @umijs/block-sdk > @umijs/types > @umijs/babel-preset-umi > @babel/plugin-transform-runtime@7.12.1" has unmet peer dependency "@babel/core@^7.0.0-0".
   168.6 warning "@umijs/plugin-blocks > @umijs/block-sdk > @umijs/types > @umijs/babel-preset-umi > @babel/preset-env@7.12.1" has unmet peer dependency "@babel/core@^7.0.0-0".
   168.6 warning "@umijs/plugin-blocks > @umijs/block-sdk > @umijs/types > @umijs/babel-preset-umi > @babel/preset-react@7.12.1" has unmet peer dependency "@babel/core@^7.0.0-0".
   168.6 warning "@umijs/plugin-blocks > @umijs/block-sdk > @umijs/types > @umijs/babel-preset-umi > @babel/preset-typescript@7.12.1" has unmet peer dependency "@babel/core@^7.0.0-0".
   168.6 warning "@umijs/plugin-blocks > @umijs/block-sdk > @umijs/types > @umijs/babel-preset-umi > @umijs/babel-plugin-auto-css-modules@3.3.11" has unmet peer dependency "@babel/core@^7.12.3".
   168.6 warning "@umijs/plugin-blocks > @umijs/block-sdk > @umijs/types > @umijs/babel-preset-umi > @umijs/babel-plugin-import-to-await-require@3.3.11" has unmet peer dependency "@babel/core@^7.12.3".
   168.6 warning "@umijs/plugin-blocks > @umijs/block-sdk > @umijs/types > @umijs/babel-preset-umi > babel-plugin-named-asset-import@0.3.7" has unmet peer dependency "@babel/core@^7.1.0".
   168.6 warning "@umijs/plugin-blocks > @umijs/block-sdk > @umijs/types > @umijs/babel-preset-umi > @babel/plugin-proposal-do-expressions > @babel/plugin-syntax-do-expressions@7.12.13" has unmet peer dependency "@babel/core@^7.0.0-0".
   168.6 warning "@umijs/plugin-blocks > @umijs/block-sdk > @umijs/types > @umijs/babel-preset-umi > @babel/plugin-proposal-export-default-from > @babel/plugin-syntax-export-default-from@7.12.13" has unmet peer dependency "@babel/core@^7.0.0-0".
   168.6 warning "@umijs/plugin-blocks > @umijs/block-sdk > @umijs/types > @umijs/babel-preset-umi > @babel/plugin-proposal-function-bind > @babel/plugin-syntax-function-bind@7.12.13" has unmet peer dependency "@babel/core@^7.0.0-0".
   168.6 warning "@umijs/plugin-blocks > @umijs/block-sdk > @umijs/types > @umijs/babel-preset-umi > @babel/plugin-proposal-pipeline-operator > @babel/plugin-syntax-pipeline-operator@7.12.13" has unmet peer dependency "@babel/core@^7.0.0-0".
   168.6 warning "@umijs/plugin-blocks > @umijs/block-sdk > @umijs/types > @umijs/babel-preset-umi > @babel/preset-react > @babel/plugin-transform-react-jsx-self@7.12.13" has unmet peer dependency "@babel/core@^7.0.0-0".
   168.6 warning "@umijs/plugin-blocks > @umijs/block-sdk > @umijs/types > @umijs/babel-preset-umi > @babel/preset-react > @babel/plugin-transform-react-jsx-source@7.12.13" has unmet peer dependency "@babel/core@^7.0.0-0".
   168.6 warning "@umijs/plugin-esbuild > esbuild-loader@2.6.3" has unmet peer dependency "webpack@^4.40.0 || ^5.0.0".
   168.6 warning "@umijs/preset-react > @umijs/plugin-dva > babel-plugin-dva-hmr@0.4.2" has unmet peer dependency "redbox-react@1.x".
   168.6 warning "@umijs/preset-react > @umijs/plugin-dva > dva-loading@3.0.22" has unmet peer dependency "dva-core@^1.1.0 | ^1.5.0-0 | ^1.6.0-0".
   168.6 warning "@umijs/preset-react > @umijs/plugin-dva > dva > connected-react-router@6.5.2" has unmet peer dependency "react-router@^4.3.1 || ^5.0.0".
   284.8 [5/5] Building fresh packages...
   366.1 $ umi g tmp
   367.2 { dev: undefined, test: undefined }
   369.2 { dev: undefined, test: undefined }
   370.4 $ cd .. && husky install web/.husky
   370.5 husky - not a Git repository, skipping hooks installation
   370.5 Done in 370.03s.
   370.8 yarn run v1.22.19
   370.8 $ yarn copy-folder monaco-editor ./public/ && NODE_OPTIONS=--max_old_space_size=4096 umi build
   371.1 $ node --experimental-modules copy-folder.mjs monaco-editor ./public/
   373.6 { dev: undefined, test: undefined }
   375.5 { dev: undefined, test: undefined }
   377.2 ℹ Compiling Webpack
   378.7 Browserslist: caniuse-lite is outdated. Please run:
   378.7 npx browserslist@latest --update-db
   378.7 
   378.7 Why you should do it regularly:
   378.7 https://github.com/browserslist/browserslist#browsers-data-updating
   383.7 Browserslist: caniuse-lite is outdated. Please run:
   383.7 npx browserslist@latest --update-db
   383.7 
   383.7 Why you should do it regularly:
   383.7 https://github.com/browserslist/browserslist#browsers-data-updating
   616.3 Browserslist: caniuse-lite is outdated. Please run:
   616.3 npx browserslist@latest --update-db
   616.3 
   616.3 Why you should do it regularly:
   616.3 https://github.com/browserslist/browserslist#browsers-data-updating
   857.3 error Command failed with signal "SIGKILL".
   857.3 info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
   ------
   Dockerfile:48
   --------------------
     47 |     
     48 | >>> RUN if [ "$ENABLE_PROXY" = "true" ] ; then yarn config set registry https://registry.npmmirror.com/ ; fi \
     49 | >>>     && yarn install \
     50 | >>>     && yarn build
     51 |     
   --------------------
   ERROR: failed to solve: process "/bin/sh -c if [ \"$ENABLE_PROXY\" = \"true\" ] ; then yarn config set registry https://registry.npmmirror.com/ ; fi     && yarn install     && yarn build" did not complete successfully: exit code: 1```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] apisix-dashboard DockerFile build fail [apisix-dashboard]

Posted by "zll600 (via GitHub)" <gi...@apache.org>.
zll600 commented on issue #2926:
URL: https://github.com/apache/apisix-dashboard/issues/2926#issuecomment-1968011746

   @Abd-elr4hman I can not reproduced your problem.
   
   1. git clone https://github.com/apache/apisix-dashboard.git
   2. cd apisix-dashboard(use latest master)
   3. docker build -t apisix-dashboard:dev .


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] apisix-dashboard DockerFile build fail [apisix-dashboard]

Posted by "juzhiyuan (via GitHub)" <gi...@apache.org>.
juzhiyuan closed issue #2926: apisix-dashboard DockerFile build fail
URL: https://github.com/apache/apisix-dashboard/issues/2926


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org