Skip to content

#1635 FEAT: Set Docker image building process #1708

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

Merged
merged 4 commits into from
Jan 7, 2022

Conversation

atharva3010
Copy link
Contributor

@atharva3010 atharva3010 commented Jan 6, 2022

Thank you for your contribution to the KodaDot NFT gallery.

👇 _ Do a quick check before the merge.

PR type

  • Bugfix
  • Feature
  • Refactoring

Before submitting Pull Request, please make sure:

  • My contribution builds clean without any errors or warnings
  • I've merged recent default branch -- main-nuxt and I've no conflicts
  • I've tried respect high code quality standards
  • I've didn't break any original functionality
  • I've posted screenshot of demonstrated change in this PR

Optional

  • I've tested it at </rmrk/collection/26902bc2f7c20c546a-1FVG7>
  • I've tested PR on mobile and everything seems works
  • I found edge cases

What's new?

Had issue bounty label ?

  • Fill up your KSM address: Payout

Community participation

Screenshot

  • My fix has changed something on UI, a screenshot is best to understand changes for others.

@netlify
Copy link

netlify bot commented Jan 6, 2022

✔️ Deploy Preview for koda-nuxt ready!

🔨 Explore the source changes: 7579eb2

🔍 Inspect the deploy log: https://app.netlify.com/sites/koda-nuxt/deploys/61d83ed7ae6a3b000864baa9

😎 Browse the preview: https://deploy-preview-1708--koda-nuxt.netlify.app

@atharva3010 atharva3010 changed the title #1635 FEAT: Docker setup #1635 FEAT: Set Docker image building process Jan 6, 2022
@atharva3010
Copy link
Contributor Author

Updated README.md with docs on how to run.

@atharva3010
Copy link
Contributor Author

atharva3010 commented Jan 6, 2022

To publish the image to docker-hub, I'll need to setup an organization repository, and will need to pair with a maintainer. Ping me whenever available.

https://docs.docker.com/docker-hub/repos/

@atharva3010
Copy link
Contributor Author

image

Copy link
Contributor

@roiLeo roiLeo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here is what's showing for me in localhost after docker-compose up:
Screenshot 2022-01-07 at 08-38-48 Screenshot

can you tell us what you have changed?
I would be happy to test again

@atharva3010
Copy link
Contributor Author

@roiLeo Did you do docker-compose up --build first?

@atharva3010
Copy link
Contributor Author

@roiLeo Thanks for reviewing, I think you raise some valid first time questions and it'll probably be a good idea for me to add comments highlighting why specific steps exist.

@atharva3010 atharva3010 requested a review from roiLeo January 7, 2022 08:17
@roiLeo
Copy link
Contributor

roiLeo commented Jan 7, 2022

2nd test:
Here's the command I've run

docker system prune

&

docker-compose up --build

[+] Building 631.5s (12/12) FINISHED
Nuxt Client build was rly long too.

Everything work now.

Copy link
Contributor

@roiLeo roiLeo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

works well for me (until???)

@atharva3010
Copy link
Contributor Author

@roiLeo Glad you got it working!
Depending on the hardware you are running, virtualisation will always be slower compared to running on bare metal.

Do note, that building an image is a long process and only needed whenever a new image is fetched. From next time, to run KodaDot, you just need to do:

docker-compose up

@roiLeo
Copy link
Contributor

roiLeo commented Jan 7, 2022

@atharva3010 when I'm switching branch and try to docker compose up I've got this error:

Error response from daemon: Conflict. The container name "/Kodadot" is already in use by container "11608dda5116e2b58329ccb5facfde7585fabcd0236a33ef1854c669fbfb3d76". You have to remove (or rename) that container to be able to reuse that name.

any idea how to fix this?

@atharva3010
Copy link
Contributor Author

@roiLeo You don't need to run docker-compose up again when you switch branches. It's already running 😀

Hot module replacement will detect the changes and you'll automatically see the new changes applied.

In cases when a new package has been added, docker will error out and you'll have to docker-compose up --build once again.

@yangwao
Copy link
Member

yangwao commented Jan 7, 2022

image

image

@yangwao
Copy link
Member

yangwao commented Jan 7, 2022

With node:lts it at least built for me.

At least working but still can not access it

image

@yangwao
Copy link
Member

yangwao commented Jan 7, 2022

Seems it's listening somewhere
image

image

@atharva3010
Copy link
Contributor Author

Do not use the address mentioned by docker, that is not proxied, use localhost:9090

@yangwao
Copy link
Member

yangwao commented Jan 7, 2022

Do not use the address mentioned by docker, that is not proxied, use localhost:9090

yup works! perfect!
so now, how do we figure out why is listening to that address? Like first-time-contributor will be looking there at logs.

@atharva3010
Copy link
Contributor Author

@yangwao I think the first time contributors will be aware of localhost:9090 from the readme where it states where it is listening.

Regarding "why it is listening to that address", honestly, because it's dockerised and running in a virtual machine. Nuxt being nuxt doesn't detect localhost there and outputs the port with the base address on it.

@vikiival
Copy link
Member

vikiival commented Jan 7, 2022

➜  nft-gallery git:(#1635) docker-compose up
WARNING: Found orphan containers (Kodadot) for this project. If you removed or renamed this service in your compose file, you can run this command with the --remove-orphans flag to clean it up.
Building frontend
[+] Building 72.1s (11/12)
 => [internal] load build definition from Dockerfile                                                              0.0s
 => => transferring dockerfile: 246B                                                                              0.0s
 => [internal] load .dockerignore                                                                                 0.0s
 => => transferring context: 81B                                                                                  0.0s
 => [internal] load metadata for docker.io/library/node:16.13.1-alpine3.14                                        2.3s
 => [auth] library/node:pull token for registry-1.docker.io                                                       0.0s
 => [internal] load build context                                                                                 3.2s
 => => transferring context: 95.82MB                                                                              3.1s
 => [1/7] FROM docker.io/library/node:16.13.1-alpine3.14@sha256:a9b9cb880fa429b0bea899cd3b1bc081ab7277cc97e6d2dc  4.8s
 => => resolve docker.io/library/node:16.13.1-alpine3.14@sha256:a9b9cb880fa429b0bea899cd3b1bc081ab7277cc97e6d2dc  0.0s
 => => sha256:a9b9cb880fa429b0bea899cd3b1bc081ab7277cc97e6d2dcd84bd9753b2027e1 1.43kB / 1.43kB                    0.0s
 => => sha256:9801e92cc0764e0c53621116fb59c2588acafc220c00bd061eaee4e56d9da62e 1.16kB / 1.16kB                    0.0s
 => => sha256:8074a83d0ba920a4f47c82a57c32f90755335c78bf2c9d58cbb92b5d45b50ca9 6.55kB / 6.55kB                    0.0s
 => => sha256:9e51fd6710e5c813ca2d0ab03b2eb8f30e94f171a415275d6bf252a544f1ceb9 34.86MB / 34.86MB                  3.6s
 => => sha256:0b62c400df730add9d8c51843344107d05864a342452c6524cd0f5d67bd97976 2.41MB / 2.41MB                    1.4s
 => => sha256:5433f4536c226bb579aedeff3fd5d82defe2e010abd58a7c61a79d1eaf66174e 450B / 450B                        1.4s
 => => extracting sha256:9e51fd6710e5c813ca2d0ab03b2eb8f30e94f171a415275d6bf252a544f1ceb9                         0.9s
 => => extracting sha256:0b62c400df730add9d8c51843344107d05864a342452c6524cd0f5d67bd97976                         0.1s
 => => extracting sha256:5433f4536c226bb579aedeff3fd5d82defe2e010abd58a7c61a79d1eaf66174e                         0.0s
 => [2/7] WORKDIR /app                                                                                            0.1s
 => [3/7] COPY package.json .                                                                                     0.0s
 => [4/7] COPY yarn.lock .                                                                                        0.0s
 => [5/7] RUN apk add --no-cache git                                                                              2.2s
 => ERROR [6/7] RUN yarn install                                                                                 62.6s
------
 > [6/7] RUN yarn install:
#11 0.228 yarn install v1.22.15
#11 0.300 [1/5] Validating package.json...
#11 0.302 [2/5] Resolving packages...
#11 0.925 [3/5] Fetching packages...
#11 41.31 info [email protected]: The platform "linux" is incompatible with this module.
#11 41.31 info "[email protected]" is an optional dependency and failed compatibility check. Excluding it from installation.
#11 41.32 info [email protected]: The platform "linux" is incompatible with this module.
#11 41.32 info "[email protected]" is an optional dependency and failed compatibility check. Excluding it from installation.
#11 41.33 [4/5] Linking dependencies...
#11 41.33 warning " > @nuxtjs/[email protected]" has unmet peer dependency "apollo-cache-inmemory@^1.6.6".
#11 41.33 warning "@nuxtjs/apollo > [email protected]" has unmet peer dependency "@vue/cli-shared-utils@^3.0.0 || ^4.0.0-0".
#11 41.33 warning "@nuxtjs/apollo > vue-cli-plugin-apollo > [email protected]" has incorrect peer dependency "graphql@^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0".
#11 41.33 warning "@nuxtjs/apollo > vue-cli-plugin-apollo > apollo > apollo-language-server > @apollographql/[email protected]" has incorrect peer dependency "graphql@^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0".
#11 41.34 warning "@nuxtjs/apollo > vue-cli-plugin-apollo > apollo > apollo-language-server > @apollographql/graphql-language-service-interface > @apollographql/[email protected]" has incorrect peer dependency "graphql@^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0".
#11 41.34 warning "@nuxtjs/apollo > vue-cli-plugin-apollo > apollo > apollo-language-server > @apollographql/graphql-language-service-interface > @apollographql/[email protected]" has incorrect peer dependency "graphql@^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0".
#11 41.34 warning "@nuxtjs/apollo > vue-cli-plugin-apollo > apollo > apollo-language-server > @apollographql/graphql-language-service-interface > @apollographql/[email protected]" has incorrect peer dependency "graphql@^0.12.0 || ^0.13.0 || ^14.0.0".
#11 41.34 warning " > @polkadot/[email protected]" has unmet peer dependency "@polkadot/api@*".
#11 41.34 warning " > @polkadot/[email protected]" has unmet peer dependency "@polkadot/util@*".
#11 41.34 warning " > @polkadot/[email protected]" has unmet peer dependency "@polkadot/util-crypto@*".
#11 41.34 warning " > @polkadot/[email protected]" has unmet peer dependency "@polkadot/api@*".
#11 41.34 warning " > @polkadot/[email protected]" has unmet peer dependency "@polkadot/keyring@*".
#11 41.34 warning " > @polkadot/[email protected]" has unmet peer dependency "@polkadot/ui-settings@*".
#11 41.34 warning " > @polkadot/[email protected]" has unmet peer dependency "@polkadot/util@*".
#11 41.34 warning "@polkadot/ui-keyring > @polkadot/[email protected]" has unmet peer dependency "@polkadot/[email protected]".
#11 41.34 warning "@polkadot/ui-keyring > @polkadot/[email protected]" has unmet peer dependency "@polkadot/networks@*".
#11 41.34 warning " > @polkadot/[email protected]" has unmet peer dependency "@polkadot/util@*".
#11 41.34 warning " > @polkadot/[email protected]" has unmet peer dependency "@polkadot/util-crypto@*".
#11 41.34 warning " > [email protected]" has unmet peer dependency "webpack@^4.27.0 || ^5.0.0".
#11 41.34 warning "nuxt > @nuxt/[email protected]" has unmet peer dependency "consola@*".
#11 41.34 warning " > @babel/[email protected]" has unmet peer dependency "@babel/core@^7.0.0-0".
#11 41.34 warning " > [email protected]" has unmet peer dependency "esm@^3.2.25".
#11 41.34 warning "@nuxt/types > [email protected]" has unmet peer dependency "webpack@^4.36.0 || ^5.0.0".
#11 41.34 warning "@nuxt/typescript-build > [email protected]" has unmet peer dependency "webpack@>= 4".
#11 41.34 warning "@nuxt/typescript-build > [email protected]" has unmet peer dependency "webpack@*".
#11 41.34 warning " > [email protected]" has unmet peer dependency "prettier@>=2.0.0".
#11 41.34 warning " > [email protected]" has unmet peer dependency "webpack@^4.36.0 || ^5.0.0".
#11 59.44 [5/5] Building fresh packages...
#11 60.99 error /app/node_modules/utf-8-validate: Command failed.
#11 60.99 Exit code: 1
#11 60.99 Command: node-gyp-build
#11 60.99 Arguments:
#11 60.99 Directory: /app/node_modules/utf-8-validate
#11 60.99 Output:
#11 60.99 gyp info it worked if it ends with ok
#11 60.99 gyp info using [email protected]
#11 60.99 gyp info using [email protected] | linux | arm64
#11 60.99 gyp ERR! find Python
#11 60.99 gyp ERR! find Python Python is not set from command line or npm configuration
#11 60.99 gyp ERR! find Python Python is not set from environment variable PYTHON
#11 60.99 gyp ERR! find Python checking if "python3" can be used
#11 60.99 gyp ERR! find Python - "python3" is not in PATH or produced an error
#11 60.99 gyp ERR! find Python checking if "python" can be used
#11 60.99 gyp ERR! find Python - "python" is not in PATH or produced an error
#11 60.99 gyp ERR! find Python
#11 60.99 gyp ERR! find Python **********************************************************
#11 60.99 gyp ERR! find Python You need to install the latest version of Python.
#11 60.99 gyp ERR! find Python Node-gyp should be able to find and use Python. If not,
#11 60.99 gyp ERR! find Python you can try one of the following options:
#11 60.99 gyp ERR! find Python - Use the switch --python="/path/to/pythonexecutable"
#11 60.99 gyp ERR! find Python   (accepted by both node-gyp and npm)
#11 60.99 gyp ERR! find Python - Set the environment variable PYTHON
#11 60.99 gyp ERR! find Python - Set the npm configuration variable python:
#11 60.99 gyp ERR! find Python   npm config set python "/path/to/pythonexecutable"
#11 60.99 gyp ERR! find Python For more information consult the documentation at:
#11 60.99 gyp ERR! find Python https://github.com/nodejs/node-gyp#installation
#11 60.99 gyp ERR! find Python **********************************************************
#11 60.99 gyp ERR! find Python
#11 60.99 gyp ERR! configure error
#11 60.99 gyp ERR! stack Error: Could not find any Python installation to use
#11 60.99 gyp ERR! stack     at PythonFinder.fail (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/find-python.js:330:47)
#11 60.99 gyp ERR! stack     at PythonFinder.runChecks (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/find-python.js:159:21)
#11 60.99 gyp ERR! stack     at PythonFinder.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/find-python.js:202:16)
#11 60.99 gyp ERR! stack     at PythonFinder.execFileCallback (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/find-python.js:294:16)
#11 60.99 gyp ERR! stack     at exithandler (node:child_process:404:5)
#11 60.99 gyp ERR! stack     at ChildProcess.errorhandler (node:child_process:416:5)
#11 60.99 gyp ERR! stack     at ChildProcess.emit (node:events:390:28)
#11 60.99 gyp ERR! stack     at Process.ChildProcess._handle.onexit (node:internal/child_process:288:12)
#11 60.99 gyp ERR! stack     at onErrorNT (node:internal/child_process:477:16)
#11 60.99 gyp ERR! stack     at processTicksAndRejections (node:internal/process/task_queues:83:21)
#11 60.99 gyp ERR! System Linux 5.10.47-linuxkit
#11 60.99 gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
#11 60.99 gyp ERR! cwd /app/node_modules/utf-8-validate
#11 60.99 gyp ERR! node -v v16.13.1
#11 60.99 gyp ERR! node-gyp -v v8.3.0
#11 60.99 gyp ERR! not ok
#11 60.99 info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
#11 61.15 warning Error running install script for optional dependency: "/app/node_modules/node-hid: Command failed.
#11 61.15 Exit code: 1
#11 61.15 Command: prebuild-install --runtime napi || node-gyp rebuild
#11 61.15 Arguments:
#11 61.15 Directory: /app/node_modules/node-hid
#11 61.15 Output:
#11 61.15 prebuild-install WARN install No prebuilt binaries found (target=3 runtime=napi arch=arm64 libc=musl platform=linux)
#11 61.15 gyp info it worked if it ends with ok
#11 61.15 gyp info using [email protected]
#11 61.15 gyp info using [email protected] | linux | arm64
#11 61.15 gyp ERR! find Python
#11 61.15 gyp ERR! find Python Python is not set from command line or npm configuration
#11 61.15 gyp ERR! find Python Python is not set from environment variable PYTHON
#11 61.15 gyp ERR! find Python checking if \"python3\" can be used
#11 61.15 gyp ERR! find Python - \"python3\" is not in PATH or produced an error
#11 61.15 gyp ERR! find Python checking if \"python\" can be used
#11 61.15 gyp ERR! find Python - \"python\" is not in PATH or produced an error
#11 61.15 gyp ERR! find Python
#11 61.15 gyp ERR! find Python **********************************************************
#11 61.15 gyp ERR! find Python You need to install the latest version of Python.
#11 61.15 gyp ERR! find Python Node-gyp should be able to find and use Python. If not,
#11 61.15 gyp ERR! find Python you can try one of the following options:
#11 61.15 gyp ERR! find Python - Use the switch --python=\"/path/to/pythonexecutable\"
#11 61.15 gyp ERR! find Python   (accepted by both node-gyp and npm)
#11 61.15 gyp ERR! find Python - Set the environment variable PYTHON
#11 61.15 gyp ERR! find Python - Set the npm configuration variable python:
#11 61.15 gyp ERR! find Python   npm config set python \"/path/to/pythonexecutable\"
#11 61.15 gyp ERR! find Python For more information consult the documentation at:
#11 61.15 gyp ERR! find Python https://github.com/nodejs/node-gyp#installation
#11 61.15 gyp ERR! find Python **********************************************************
#11 61.15 gyp ERR! find Python
#11 61.15 gyp ERR! configure error
#11 61.15 gyp ERR! stack Error: Could not find any Python installation to use
#11 61.15 gyp ERR! stack     at PythonFinder.fail (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/find-python.js:330:47)
#11 61.15 gyp ERR! stack     at PythonFinder.runChecks (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/find-python.js:159:21)
#11 61.15 gyp ERR! stack     at PythonFinder.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/find-python.js:202:16)
#11 61.15 gyp ERR! stack     at PythonFinder.execFileCallback (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/find-python.js:294:16)
#11 61.15 gyp ERR! stack     at exithandler (node:child_process:404:5)
#11 61.15 gyp ERR! stack     at ChildProcess.errorhandler (node:child_process:416:5)
#11 61.15 gyp ERR! stack     at ChildProcess.emit (node:events:390:28)
#11 61.15 gyp ERR! stack     at Process.ChildProcess._handle.onexit (node:internal/child_process:288:12)
#11 61.15 gyp ERR! stack     at onErrorNT (node:internal/child_process:477:16)
#11 61.15 gyp ERR! stack     at processTicksAndRejections (node:internal/process/task_queues:83:21)
#11 61.15 gyp ERR! System Linux 5.10.47-linuxkit
#11 61.15 gyp ERR! command \"/usr/local/bin/node\" \"/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js\" \"rebuild\"
#11 61.15 gyp ERR! cwd /app/node_modules/node-hid
#11 61.15 gyp ERR! node -v v16.13.1
#11 61.15 gyp ERR! node-gyp -v v8.3.0
#11 61.15 gyp ERR! not ok"
#11 61.15 info This module is OPTIONAL, you can safely ignore this error
#11 61.82 info This module is OPTIONAL, you can safely ignore this error
#11 61.82 warning Error running install script for optional dependency: "/app/node_modules/usb-detection: Command failed.
#11 61.82 Exit code: 1
#11 61.82 Command: prebuild-install || node-gyp rebuild
#11 61.82 Arguments:
#11 61.82 Directory: /app/node_modules/usb-detection
#11 61.82 Output:
#11 61.82 prebuild-install WARN install No prebuilt binaries found (target=16.13.1 runtime=node arch=arm64 libc=musl platform=linux)
#11 61.82 gyp info it worked if it ends with ok
#11 61.82 gyp info using [email protected]
#11 61.82 gyp info using [email protected] | linux | arm64
#11 61.82 gyp ERR! find Python
#11 61.82 gyp ERR! find Python Python is not set from command line or npm configuration
#11 61.82 gyp ERR! find Python Python is not set from environment variable PYTHON
#11 61.82 gyp ERR! find Python checking if \"python3\" can be used
#11 61.82 gyp ERR! find Python - \"python3\" is not in PATH or produced an error
#11 61.82 gyp ERR! find Python checking if \"python\" can be used
#11 61.82 gyp ERR! find Python - \"python\" is not in PATH or produced an error
#11 61.82 gyp ERR! find Python
#11 61.82 gyp ERR! find Python **********************************************************
#11 61.82 gyp ERR! find Python You need to install the latest version of Python.
#11 61.82 gyp ERR! find Python Node-gyp should be able to find and use Python. If not,
#11 61.82 gyp ERR! find Python you can try one of the following options:
#11 61.82 gyp ERR! find Python - Use the switch --python=\"/path/to/pythonexecutable\"
#11 61.82 gyp ERR! find Python   (accepted by both node-gyp and npm)
#11 61.82 gyp ERR! find Python - Set the environment variable PYTHON
#11 61.82 gyp ERR! find Python - Set the npm configuration variable python:
#11 61.82 gyp ERR! find Python   npm config set python \"/path/to/pythonexecutable\"
#11 61.82 gyp ERR! find Python For more information consult the documentation at:
#11 61.82 gyp ERR! find Python https://github.com/nodejs/node-gyp#installation
#11 61.82 gyp ERR! find Python **********************************************************
#11 61.82 gyp ERR! find Python
#11 61.82 gyp ERR! configure error
#11 61.82 gyp ERR! stack Error: Could not find any Python installation to use
#11 61.82 gyp ERR! stack     at PythonFinder.fail (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/find-python.js:330:47)
#11 61.82 gyp ERR! stack     at PythonFinder.runChecks (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/find-python.js:159:21)
#11 61.82 gyp ERR! stack     at PythonFinder.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/find-python.js:202:16)
#11 61.82 gyp ERR! stack     at PythonFinder.execFileCallback (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/find-python.js:294:16)
#11 61.82 gyp ERR! stack     at exithandler (node:child_process:404:5)
#11 61.82 gyp ERR! stack     at ChildProcess.errorhandler (node:child_process:416:5)
#11 61.82 gyp ERR! stack     at ChildProcess.emit (node:events:390:28)
#11 61.82 gyp ERR! stack     at Process.ChildProcess._handle.onexit (node:internal/child_process:288:12)
#11 61.82 gyp ERR! stack     at onErrorNT (node:internal/child_process:477:16)
#11 61.82 gyp ERR! stack     at processTicksAndRejections (node:internal/process/task_queues:83:21)
#11 61.82 gyp ERR! System Linux 5.10.47-linuxkit
#11 61.82 gyp ERR! command \"/usr/local/bin/node\" \"/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js\" \"rebuild\"
#11 61.82 gyp ERR! cwd /app/node_modules/usb-detection
#11 61.82 gyp ERR! node -v v16.13.1
#11 61.82 gyp ERR! node-gyp -v v8.3.0
#11 61.82 gyp ERR! not ok"
------
executor failed running [/bin/sh -c yarn install]: exit code: 1
ERROR: Service 'frontend' failed to build : Build failed

Copy link
Member

@vikiival vikiival left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unable to build :/

@roiLeo
Copy link
Contributor

roiLeo commented Jan 7, 2022

>>> /wip/nft-gallery   #1635  docker compose up --build                                                                  ✔  10163  11:45:36
[+] Building 8.1s (12/12) FINISHED
 => [internal] load build definition from Dockerfile                                                                                                                         0.0s
 => => transferring dockerfile: 241B                                                                                                                                         0.0s
 => [internal] load .dockerignore                                                                                                                                            0.0s
 => => transferring context: 81B                                                                                                                                             0.0s
 => [internal] load metadata for docker.io/library/node:16.13.1-alpine3.14                                                                                                   0.7s
 => [1/7] FROM docker.io/library/node:16.13.1-alpine3.14@sha256:a9b9cb880fa429b0bea899cd3b1bc081ab7277cc97e6d2dcd84bd9753b2027e1                                             0.0s
 => [internal] load build context                                                                                                                                            7.1s
 => => transferring context: 106.73MB                                                                                                                                        7.1s
 => CACHED [2/7] WORKDIR /app                                                                                                                                                0.0s
 => CACHED [3/7] COPY package.json .                                                                                                                                         0.0s
 => CACHED [4/7] COPY yarn.lock .                                                                                                                                            0.0s
 => CACHED [5/7] RUN apk add --no-cache git                                                                                                                                  0.0s
 => CACHED [6/7] RUN yarn install                                                                                                                                            0.0s
 => CACHED [7/7] COPY . .                                                                                                                                                    0.0s
 => exporting to image                                                                                                                                                       0.1s
 => => exporting layers                                                                                                                                                      0.0s
 => => writing image sha256:387f8584d66e2694aed5aeb0968ef900fa8083574705fb837c88fba870585f67                                                                                 0.0s
 => => naming to docker.io/library/nft-gallery_frontend                                                                                                                      0.0s

Use 'docker scan' to run Snyk tests against images to find vulnerabilities and learn how to fix them
[+] Running 2/2
 ⠿ Network nft-gallery_default  Created                                                                                                                                      0.1s
 ⠿ Container Kodadot            Created                                                                                                                                      0.5s
Attaching to Kodadot
Kodadot  | yarn run v1.22.15
Kodadot  | $ nuxt
Kodadot  | /bin/sh: nuxt: not found
Kodadot  | error Command failed with exit code 127.
Kodadot  | info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
Kodadot exited with code 127

@atharva3010
Copy link
Contributor Author

Okay, pushed some more changes.

  • sudo is no longer required, being logged into docker is important to download images from dockerhub.
  • Set node to lts as alpine build was causing issues on some machines due to not bundling git and python by default.

@yangwao
Copy link
Member

yangwao commented Jan 7, 2022

Perfect! @atharva3010 let's add the KSM address so we can merge it! ;)

@atharva3010
Copy link
Contributor Author

@yangwao done!

@atharva3010 atharva3010 requested a review from vikiival January 7, 2022 13:37
@yangwao
Copy link
Member

yangwao commented Jan 7, 2022

@yangwao yangwao merged commit 5711f0e into kodadot:main-nuxt Jan 7, 2022
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 this pull request may close these issues.

Set Docker image building process
4 participants