Я пытался развернуть приложение meteor 1.9 на цифровой океанской капле через mup, но я не могу это сделать. Проблема возникает при точной установке, если я использую abernix / meteord: base image. Если я использую другой образ с другой версией узла, я получаю ошибку установки bcrypt. Это мой файл MUP.
module.exports = {
servers: {
one: {
// TODO: set host address, username, and authentication method
host: "server IP",
username: "root",
password: "my password"
// or neither for authenticate from ssh-agent
}
},
app: {
// TODO: change app name and path
name: "appName",
path: ".",
servers: {
one: {}
},
buildOptions: {
serverOnly: true
},
env: {
// TODO: Change to your app's url
// If you are using ssl, it needs to start with https://
PORT: 2010,
ROOT_URL: "my url",
MONGO_URL: "mongodb://mongodb/meteor",
MONGO_OPLOG_URL: "mongodb://mongodb/local"
},
docker: {
// change to 'abernix/meteord:base' if your app is using Meteor 1.4 - 1.5
image: "abernix/meteord:base",
prepareBundle: false
},
// Show progress bar while uploading bundle to server
// You might need to disable it on CI servers
enableUploadProgressBar: true
},
mongo: {
version: "3.4.1",
servers: {
one: {}
}
}
};
это журнал ошибок, если я использую последнее изображение abernix / meteord: node-12.14.0-base
[192.241.152.237]> core-js@2.6.11 postinstall /bundle/bundle/programs/server/npm/node_modules/@babel/runtime-corejs2/node_modules/core-js
[192.241.152.237]> node -e "try{require('./postinstall')}catch(e){}"
[192.241.152.237]
[192.241.152.237]
[192.241.152.237]> core-js@2.6.11 postinstall /bundle/bundle/programs/server/npm/node_modules/babel-runtime/node_modules/core-js
[192.241.152.237]> node -e "try{require('./postinstall')}catch(e){}"
[192.241.152.237]
[192.241.152.237]
[192.241.152.237]> bcrypt@4.0.1 install /bundle/bundle/programs/server/npm/node_modules/bcrypt
[192.241.152.237]> node-pre-gyp install --fallback-to-build
[192.241.152.237]
[192.241.152.237]node-pre-gyp WARN Using request for node-pre-gyp https download
[192.241.152.237][bcrypt] Success: "/bundle/bundle/programs/server/npm/node_modules/bcrypt/lib/binding/napi-v3/bcrypt_lib.node" is installed via remote
[192.241.152.237]
[192.241.152.237]> sharp@0.24.1 install /bundle/bundle/programs/server/npm/node_modules/sharp
[192.241.152.237]> (node install/libvips && node install/dll-copy && prebuild-install) || (node-gyp rebuild && node install/dll-copy)
[192.241.152.237]
[192.241.152.237]ERR! sharp 'darwin-x64' binaries cannot be used on the 'linux-x64' platform. Please remove the 'node_modules/sharp/vendor' directory and run 'npm install'.
[192.241.152.237]info sharp Attempting to build from source via node-gyp but this may fail due to the above error
[192.241.152.237]info sharp Please see https://sharp.pixelplumbing.com/install for required dependencies
[192.241.152.237]make: Entering directory '/bundle/bundle/programs/server/npm/node_modules/sharp/build'
[192.241.152.237] TOUCH Release/obj.target/libvips-cpp.stamp
[192.241.152.237] CXX(target) Release/obj.target/sharp/src/common.o
[192.241.152.237] CXX(target) Release/obj.target/sharp/src/metadata.o
[192.241.152.237] CXX(target) Release/obj.target/sharp/src/stats.o
[192.241.152.237] CXX(target) Release/obj.target/sharp/src/operations.o
[192.241.152.237] CXX(target) Release/obj.target/sharp/src/pipeline.o
[192.241.152.237] CXX(target) Release/obj.target/sharp/src/sharp.o