Instantly share code, notes, and snippets.
Created
May 4, 2023 09:27
-
Star
(0)
0
You must be signed in to star a gist -
Fork
(0)
0
You must be signed in to fork a gist
-
Save cmltaWt0/d0832baac7a92f44851212f76ecc8603 to your computer and use it in GitHub Desktop.
course-authoring-dev tutor build
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
tutor images build course-authoring-dev | |
Building image docker.io/overhangio/openedx-course-authoring-dev:16.0.0 | |
docker buildx build --tag=docker.io/overhangio/openedx-course-authoring-dev:16.0.0 --load --target=course-authoring-dev --cache-from=type=registry,ref=docker.io/overhangio/openedx-course-authoring-dev:16.0.0-cache /Users/cmltawt0/code/cc/btr/palm/root/env/plugins/mfe/build/mfe | |
[+] Building 30.5s (21/23) | |
=> [internal] load .dockerignore 0.0s | |
=> => transferring context: 2B 0.0s | |
=> [internal] load build definition from Dockerfile 0.0s | |
=> => transferring dockerfile: 15.58kB 0.0s | |
=> [internal] load metadata for docker.io/library/node:16.14-bullseye-slim 0.8s | |
=> ERROR importing cache manifest from docker.io/overhangio/openedx-course-authoring-dev:16.0.0-cache 0.7s | |
=> [base 1/4] FROM docker.io/library/node:16.14-bullseye-slim@sha256:d54981fe891c9e3442ea05cb668bc8a2a3ee38609ecce52c7b5a609fadc6f64b 0.0s | |
=> [internal] load build context 0.0s | |
=> => transferring context: 64B 0.0s | |
=> CACHED [base 2/4] RUN apt update && apt install -y git gcc libgl1 libxi6 make autoconf libtool pkg-config zlib1g-dev python g++ 0.0s | |
=> CACHED [base 3/4] RUN mkdir -p /openedx/app /openedx/env 0.0s | |
=> CACHED [base 4/4] WORKDIR /openedx/app 0.0s | |
=> CACHED [course-authoring-src 1/2] RUN git clone https://github.com/openedx/frontend-app-course-authoring --branch open-release/palm.master --depth 1 . 0.0s | |
=> CACHED [course-authoring-src 2/2] RUN stat /openedx/app/src/i18n/messages 2> /dev/null || (echo "missing messages folder" && mkdir -p /openedx/app/src/i18n/messages) 0.0s | |
=> CACHED [course-authoring-common 1/5] COPY --from=course-authoring-src /openedx/app/package.json /openedx/app/package.json 0.0s | |
=> CACHED [course-authoring-common 2/5] COPY --from=course-authoring-src /openedx/app/package-lock.json /openedx/app/package-lock.json 0.0s | |
=> ERROR [course-authoring-common 3/5] RUN npm clean-install --no-audit --no-fund --registry=https://registry.npmjs.org/ && rm -rf ~/.npm 28.9s | |
=> CACHED [course-authoring-i18n 1/4] COPY --from=course-authoring-src /openedx/app/src/i18n/messages /openedx/app/src/i18n/messages 0.0s | |
=> CACHED [i18n 1/3] COPY ./i18n /openedx/i18n 0.0s | |
=> CACHED [i18n 2/3] RUN chmod a+x /openedx/i18n/*.js 0.0s | |
=> CACHED [i18n 3/3] RUN echo "copying i18n data" && mkdir -p /openedx/i18n/authn && mkdir -p /openedx/i18n/account && mkdir -p /openedx/i18n/course-authoring && mkdir -p /openedx/i18n/discus 0.0s | |
=> CACHED [course-authoring-i18n 2/4] COPY --from=i18n /openedx/i18n/course-authoring /openedx/i18n/course-authoring 0.0s | |
=> CACHED [course-authoring-i18n 3/4] COPY --from=i18n /openedx/i18n/i18n-merge.js /openedx/i18n/i18n-merge.js 0.0s | |
=> CACHED [course-authoring-i18n 4/4] RUN /openedx/i18n/i18n-merge.js /openedx/app/src/i18n/messages /openedx/i18n/course-authoring /openedx/app/src/i18n/messages 0.0s | |
------ | |
> importing cache manifest from docker.io/overhangio/openedx-course-authoring-dev:16.0.0-cache: | |
------ | |
------ | |
> [course-authoring-common 3/5] RUN npm clean-install --no-audit --no-fund --registry=https://registry.npmjs.org/ && rm -rf ~/.npm: | |
#0 6.826 npm WARN deprecated w3c-hr-time@1.0.2: Use your platform's native performance.now() and performance.timeOrigin. | |
#0 6.937 npm WARN deprecated uuid@3.4.0: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details. | |
#0 6.990 npm WARN deprecated urix@0.1.0: Please see https://github.com/lydell/urix#deprecated | |
#0 7.815 npm WARN deprecated superagent@3.8.3: Please upgrade to v7.0.2+ of superagent. We have fixed numerous issues with streams, form-data, attach(), filesystem errors not bubbling up (ENOENT on attach()), and all tests are now passing. See the releases tab for more information at <https://github.com/visionmedia/superagent/releases>. | |
#0 7.996 npm WARN deprecated stable@0.1.8: Modern JS already guarantees Array#sort() is a stable sort, so this library is deprecated. See the compatibility table on MDN: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/sort#browser_compatibility | |
#0 8.138 npm WARN deprecated source-map-url@0.4.1: See https://github.com/lydell/source-map-url#deprecated | |
#0 8.140 npm WARN deprecated source-map-resolve@0.6.0: See https://github.com/lydell/source-map-resolve#deprecated | |
#0 8.877 npm WARN deprecated resolve-url-loader@5.0.0-beta.1: version 5 is now released | |
#0 8.896 npm WARN deprecated resolve-url@0.2.1: https://github.com/lydell/resolve-url#deprecated | |
#0 8.977 npm WARN deprecated sane@4.1.0: some dependency vulnerabilities fixed, support for node < 10 dropped, and newer ECMAScript syntax/features added | |
#0 9.136 npm WARN deprecated redux-devtools-extension@2.13.9: Package moved to @redux-devtools/extension. | |
#0 10.37 npm WARN deprecated popper.js@1.16.1: You can find the new Popper v2 at @popperjs/core, this package is dedicated to the legacy v1 | |
#0 11.22 npm WARN deprecated mini-create-react-context@0.3.3: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info. | |
#0 12.64 npm WARN deprecated intl-messageformat-parser@5.5.1: We've written a new parser that's 6x faster and is backwards compatible. Please use @formatjs/icu-messageformat-parser | |
#0 13.30 npm WARN deprecated formidable@1.2.6: Please upgrade to latest, formidable@v2 or formidable@v3! Check these notes: https://bit.ly/2ZEqIau | |
#0 15.05 npm WARN deprecated babel-plugin-react-intl@7.9.4: this package has been renamed to babel-plugin-formatjs | |
#0 15.74 npm WARN deprecated @types/schema-utils@2.4.0: This is a stub types definition. schema-utils provides its own type definitions, so you do not need this installed. | |
#0 16.64 npm WARN deprecated core-js@3.8.1: core-js@<3.23.3 is no longer maintained and not recommended for usage due to the number of issues. Because of the V8 engine whims, feature detection in old core-js versions could cause a slowdown up to 100x even if nothing is polyfilled. Some versions have web compatibility issues. Please, upgrade your dependencies to the actual version of core-js. | |
#0 20.74 npm WARN deprecated source-map-resolve@0.5.3: See https://github.com/lydell/source-map-resolve#deprecated | |
#0 24.36 npm WARN deprecated intl-messageformat-parser@6.1.2: We've written a new parser that's 6x faster and is backwards compatible. Please use @formatjs/icu-messageformat-parser | |
#0 25.00 npm WARN deprecated core-js@2.6.12: core-js@<3.23.3 is no longer maintained and not recommended for usage due to the number of issues. Because of the V8 engine whims, feature detection in old core-js versions could cause a slowdown up to 100x even if nothing is polyfilled. Some versions have web compatibility issues. Please, upgrade your dependencies to the actual version of core-js. | |
#0 25.02 npm WARN deprecated core-js@2.6.12: core-js@<3.23.3 is no longer maintained and not recommended for usage due to the number of issues. Because of the V8 engine whims, feature detection in old core-js versions could cause a slowdown up to 100x even if nothing is polyfilled. Some versions have web compatibility issues. Please, upgrade your dependencies to the actual version of core-js. | |
#0 28.74 npm notice | |
#0 28.74 npm notice New major version of npm available! 8.5.0 -> 9.6.6 | |
#0 28.74 npm notice Changelog: <https://github.com/npm/cli/releases/tag/v9.6.6> | |
#0 28.74 npm notice Run `npm install -g npm@9.6.6` to update! | |
#0 28.74 npm notice | |
#0 28.74 npm ERR! code 1 | |
#0 28.74 npm ERR! path /openedx/app/node_modules/canvas | |
#0 28.74 npm ERR! command failed | |
#0 28.74 npm ERR! command sh -c node-pre-gyp install --fallback-to-build --update-binary | |
#0 28.74 npm ERR! Failed to execute '/usr/local/bin/node /usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js configure --fallback-to-build --update-binary --module=/openedx/app/node_modules/canvas/build/Release/canvas.node --module_name=canvas --module_path=/openedx/app/node_modules/canvas/build/Release --napi_version=8 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v93' (1) | |
#0 28.74 npm ERR! node-pre-gyp info it worked if it ends with ok | |
#0 28.74 npm ERR! node-pre-gyp info using node-pre-gyp@1.0.10 | |
#0 28.74 npm ERR! node-pre-gyp info using node@16.14.2 | linux | arm64 | |
#0 28.74 npm ERR! node-pre-gyp http GET https://github.com/Automattic/node-canvas/releases/download/v2.10.1/canvas-v2.10.1-node-v93-linux-glibc-arm64.tar.gz | |
#0 28.74 npm ERR! node-pre-gyp ERR! install response status 404 Not Found on https://github.com/Automattic/node-canvas/releases/download/v2.10.1/canvas-v2.10.1-node-v93-linux-glibc-arm64.tar.gz | |
#0 28.74 npm ERR! node-pre-gyp WARN Pre-built binaries not installable for canvas@2.10.1 and node@16.14.2 (node-v93 ABI, glibc) (falling back to source compile with node-gyp) | |
#0 28.74 npm ERR! node-pre-gyp WARN Hit error response status 404 Not Found on https://github.com/Automattic/node-canvas/releases/download/v2.10.1/canvas-v2.10.1-node-v93-linux-glibc-arm64.tar.gz | |
#0 28.74 npm ERR! gyp info it worked if it ends with ok | |
#0 28.74 npm ERR! gyp info using node-gyp@8.4.1 | |
#0 28.74 npm ERR! gyp info using node@16.14.2 | linux | arm64 | |
#0 28.74 npm ERR! gyp info ok | |
#0 28.74 npm ERR! gyp info it worked if it ends with ok | |
#0 28.74 npm ERR! gyp info using node-gyp@8.4.1 | |
#0 28.74 npm ERR! gyp info using node@16.14.2 | linux | arm64 | |
#0 28.74 npm ERR! gyp ERR! find Python | |
#0 28.74 npm ERR! gyp ERR! find Python Python is not set from command line or npm configuration | |
#0 28.74 npm ERR! gyp ERR! find Python Python is not set from environment variable PYTHON | |
#0 28.74 npm ERR! gyp ERR! find Python checking if "python3" can be used | |
#0 28.74 npm ERR! gyp ERR! find Python - "python3" is not in PATH or produced an error | |
#0 28.74 npm ERR! gyp ERR! find Python checking if "python" can be used | |
#0 28.74 npm ERR! gyp ERR! find Python - executable path is "/usr/bin/python" | |
#0 28.74 npm ERR! gyp ERR! find Python - version is "2.7.18" | |
#0 28.74 npm ERR! gyp ERR! find Python - version is 2.7.18 - should be >=3.6.0 | |
#0 28.74 npm ERR! gyp ERR! find Python - THIS VERSION OF PYTHON IS NOT SUPPORTED | |
#0 28.74 npm ERR! gyp ERR! find Python | |
#0 28.74 npm ERR! gyp ERR! find Python ********************************************************** | |
#0 28.74 npm ERR! gyp ERR! find Python You need to install the latest version of Python. | |
#0 28.74 npm ERR! gyp ERR! find Python Node-gyp should be able to find and use Python. If not, | |
#0 28.74 npm ERR! gyp ERR! find Python you can try one of the following options: | |
#0 28.74 npm ERR! gyp ERR! find Python - Use the switch --python="/path/to/pythonexecutable" | |
#0 28.74 npm ERR! gyp ERR! find Python (accepted by both node-gyp and npm) | |
#0 28.74 npm ERR! gyp ERR! find Python - Set the environment variable PYTHON | |
#0 28.74 npm ERR! gyp ERR! find Python - Set the npm configuration variable python: | |
#0 28.74 npm ERR! gyp ERR! find Python npm config set python "/path/to/pythonexecutable" | |
#0 28.74 npm ERR! gyp ERR! find Python For more information consult the documentation at: | |
#0 28.74 npm ERR! gyp ERR! find Python https://github.com/nodejs/node-gyp#installation | |
#0 28.74 npm ERR! gyp ERR! find Python ********************************************************** | |
#0 28.74 npm ERR! gyp ERR! find Python | |
#0 28.74 npm ERR! gyp ERR! configure error | |
#0 28.74 npm ERR! gyp ERR! stack Error: Could not find any Python installation to use | |
#0 28.74 npm ERR! gyp ERR! stack at PythonFinder.fail (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/find-python.js:330:47) | |
#0 28.74 npm ERR! gyp ERR! stack at PythonFinder.runChecks (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/find-python.js:159:21) | |
#0 28.74 npm ERR! gyp ERR! stack at PythonFinder.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/find-python.js:266:16) | |
#0 28.74 npm ERR! gyp ERR! stack at PythonFinder.execFileCallback (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/find-python.js:297:7) | |
#0 28.74 npm ERR! gyp ERR! stack at ChildProcess.exithandler (node:child_process:390:7) | |
#0 28.74 npm ERR! gyp ERR! stack at ChildProcess.emit (node:events:526:28) | |
#0 28.74 npm ERR! gyp ERR! stack at maybeClose (node:internal/child_process:1092:16) | |
#0 28.74 npm ERR! gyp ERR! stack at Process.ChildProcess._handle.onexit (node:internal/child_process:302:5) | |
#0 28.74 npm ERR! gyp ERR! System Linux 6.1.27-orbstack-00157-ge13e9ffcc54a | |
#0 28.74 npm ERR! gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "configure" "--fallback-to-build" "--update-binary" "--module=/openedx/app/node_modules/canvas/build/Release/canvas.node" "--module_name=canvas" "--module_path=/openedx/app/node_modules/canvas/build/Release" "--napi_version=8" "--node_abi_napi=napi" "--napi_build_version=0" "--node_napi_label=node-v93" | |
#0 28.74 npm ERR! gyp ERR! cwd /openedx/app/node_modules/canvas | |
#0 28.74 npm ERR! gyp ERR! node -v v16.14.2 | |
#0 28.74 npm ERR! gyp ERR! node-gyp -v v8.4.1 | |
#0 28.74 npm ERR! gyp ERR! not ok | |
#0 28.74 npm ERR! node-pre-gyp ERR! build error | |
#0 28.74 npm ERR! node-pre-gyp ERR! stack Error: Failed to execute '/usr/local/bin/node /usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js configure --fallback-to-build --update-binary --module=/openedx/app/node_modules/canvas/build/Release/canvas.node --module_name=canvas --module_path=/openedx/app/node_modules/canvas/build/Release --napi_version=8 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v93' (1) | |
#0 28.74 npm ERR! node-pre-gyp ERR! stack at ChildProcess.<anonymous> (/openedx/app/node_modules/@mapbox/node-pre-gyp/lib/util/compile.js:89:23) | |
#0 28.74 npm ERR! node-pre-gyp ERR! stack at ChildProcess.emit (node:events:526:28) | |
#0 28.74 npm ERR! node-pre-gyp ERR! stack at maybeClose (node:internal/child_process:1092:16) | |
#0 28.74 npm ERR! node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (node:internal/child_process:302:5) | |
#0 28.74 npm ERR! node-pre-gyp ERR! System Linux 6.1.27-orbstack-00157-ge13e9ffcc54a | |
#0 28.74 npm ERR! node-pre-gyp ERR! command "/usr/local/bin/node" "/openedx/app/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build" "--update-binary" | |
#0 28.74 npm ERR! node-pre-gyp ERR! cwd /openedx/app/node_modules/canvas | |
#0 28.74 npm ERR! node-pre-gyp ERR! node -v v16.14.2 | |
#0 28.74 npm ERR! node-pre-gyp ERR! node-pre-gyp -v v1.0.10 | |
#0 28.74 npm ERR! node-pre-gyp ERR! not ok | |
#0 28.74 | |
#0 28.75 npm ERR! A complete log of this run can be found in: | |
#0 28.75 npm ERR! /root/.npm/_logs/2023-05-04T08_13_59_942Z-debug-0.log | |
------ | |
Dockerfile:135 | |
-------------------- | |
134 | ENV PACT_SKIP_BINARY_INSTALL=true | |
135 | >>> RUN npm clean-install --no-audit --no-fund --registry=$NPM_REGISTRY \ | |
136 | >>> && rm -rf ~/.npm | |
137 | | |
-------------------- | |
ERROR: failed to solve: process "/bin/sh -c npm clean-install --no-audit --no-fund --registry=$NPM_REGISTRY && rm -rf ~/.npm" did not complete successfully: exit code: 1 | |
Error: Command failed with status 1: docker buildx build --tag=docker.io/overhangio/openedx-course-authoring-dev:16.0.0 --load --target=course-authoring-dev --cache-from=type=registry,ref=docker.io/overhangio/openedx-course-authoring-dev:16.0.0-cache /Users/cmltawt0/code/cc/btr/palm/root/env/plugins/mfe/build/mfe |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment