Replies: 4 comments 2 replies
-
Make sure you have the following installed in your Dockerfile - gettext python3 build-base - these are required for bcrypt to install on the system and allow for local logins. |
Beta Was this translation helpful? Give feedback.
-
I made the assembly from your Dockerfile. git clone etc... |
Beta Was this translation helpful? Give feedback.
-
I'll check it out now. |
Beta Was this translation helpful? Give feedback.
-
Hi! Updated the image, now this ... G5API | yarn run v1.22.19 |
Beta Was this translation helpful? Give feedback.
-
---> Running in a6c483330096
yarn install v1.22.19
warning package.json: Unable to read "./bin/" directory of module "g5api"
warning [email protected]: Unable to read "./bin/" directory of module "g5api"
warning [email protected]: Unable to read "./bin/" directory of module "g5api"
warning [email protected]: Unable to read "./bin/" directory of module "g5api"
[1/5] Validating package.json...
warning [email protected]: Unable to read "./bin/" directory of module "g5api"
[2/5] Resolving packages...
[3/5] Fetching packages...
[4/5] Linking dependencies...
warning "swagger-jsdoc > swagger-parser > @apidevtools/[email protected]" has unmet peer dependency "openapi-types@>=7".
warning Workspaces can only be enabled in private projects.
[5/5] Building fresh packages...
warning Error running install script for optional dependency: "/Get5API/node_modules/cpu-features: Command failed.
Exit code: 1
Command: node-gyp rebuild
Arguments:
Directory: /Get5API/node_modules/cpu-features
Output:
gyp info it worked if it ends with ok
gyp info using [email protected]
gyp info using [email protected] | linux | x64
gyp info find Python using Python version 3.10.5 found at "/usr/bin/python3"
gyp http GET https://unofficial-builds.nodejs.org/download/release/v16.16.0/node-v16.16.0-headers.tar.gz
gyp http 200 https://unofficial-builds.nodejs.org/download/release/v16.16.0/node-v16.16.0-headers.tar.gz
gyp http GET https://unofficial-builds.nodejs.org/download/release/v16.16.0/SHASUMS256.txt
gyp http 200 https://unofficial-builds.nodejs.org/download/release/v16.16.0/SHASUMS256.txt
gyp info spawn /usr/bin/python3
gyp info spawn args [
gyp info spawn args '/usr/local/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py',
gyp info spawn args 'binding.gyp',
gyp info spawn args '-f',
gyp info spawn args 'make',
gyp info spawn args '-I',
gyp info spawn args '/Get5API/node_modules/cpu-features/build/config.gypi',
gyp info spawn args '-I',
gyp info spawn args '/usr/local/lib/node_modules/npm/node_modules/node-gyp/addon.gypi',
gyp info spawn args '-I',
gyp info spawn args '/root/.cache/node-gyp/16.16.0/include/node/common.gypi',
gyp info spawn args '-Dlibrary=shared_library',
gyp info spawn args '-Dvisibility=default',
gyp info spawn args '-Dnode_root_dir=/root/.cache/node-gyp/16.16.0',
gyp info spawn args '-Dnode_gyp_dir=/usr/local/lib/node_modules/npm/node_modules/node-gyp',
gyp info spawn args '-Dnode_lib_file=/root/.cache/node-gyp/16.16.0/<(target_arch)/node.lib',
gyp info spawn args '-Dmodule_root_dir=/Get5API/node_modules/cpu-features',
gyp info spawn args '-Dnode_engine=v8',
gyp info spawn args '--depth=.',
gyp info spawn args '--no-parallel',
gyp info spawn args '--generator-output',
gyp info spawn args 'build',
gyp info spawn args '-Goutput_dir=.'
gyp info spawn args ]
gyp info spawn make
gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
make: Entering directory '/Get5API/node_modules/cpu-features/build'
ACTION Configuring dependencies /Get5API/node_modules/cpu-features/deps/cpu_features/build/Makefile
/bin/sh: cmake: not found
make: *** [config_deps.target.mk:13: /Get5API/node_modules/cpu-features/deps/cpu_features/build/Makefile] Error 127
make: Leaving directory '/Get5API/node_modules/cpu-features/build'
gyp ERR! build error
gyp ERR! stack Error:
make
failed with exit code: 2gyp ERR! stack at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:194:23)
gyp ERR! stack at ChildProcess.emit (node:events:527:28)
gyp ERR! stack at Process.ChildProcess._handle.onexit (node:internal/child_process:291:12)
gyp ERR! System Linux 5.14.0-70.17.1.el9_0.x86_64
gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /Get5API/node_modules/cpu-features
gyp ERR! node -v v16.16.0
gyp ERR! node-gyp -v v9.0.0
gyp ERR! not ok"
info This module is OPTIONAL, you can safely ignore this error
warning [email protected]: Unable to read "./bin/" directory of module "g5api"
warning [email protected]: Unable to read "./bin/" directory of module "g5api"
warning [email protected]: Unable to read "./bin/" directory of module "g5api"
warning [email protected]: Unable to read "./bin/" directory of module "g5api"
Done in 20.96s.
Removing intermediate container a6c483330096
---> bffa7411b79f
Step 8/9 : COPY . .
---> bb99eb707c3b
Step 9/9 : CMD envsubst < /Get5API/config/production.json.template > /Get5API/config/production.json && yarn migrate-create-prod && yarn migrate-prod-upgrade && yarn startprod && yarn pm2 logs
---> Running in e96fb6ccb9f8
Removing intermediate container e96fb6ccb9f8
---> 75ba2ca7b462
Successfully built 75ba2ca7b462
Successfully tagged bunker56/g5api:latest
It`s normally?
G5V was built without errors...
Beta Was this translation helpful? Give feedback.
All reactions