cd mongod; docker build -t mongod .
Sending build context to Docker daemon 4.096 kB
Sending build context to Docker daemon
Step 0 : FROM phusion/baseimage:0.10.1
---> b5b7b6fe6f97
Step 1 : RUN apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 9ECBEC467F0CEB10
---> Using cache
---> 9504b7af79f5
Step 2 : RUN echo 'deb http://repo.mongodb.org/apt/debian wheezy/mongodb-org/3.0 main' | tee /etc/apt/sources.list.d/mongodb-org-3.0.list
---> Using cache
---> 895801bf94c3
Step 3 : RUN apt-get update && apt-get install -y mongodb-org-server mongodb-org-shell mongodb-org-tools mongodb-org-mongos
---> Using cache
---> 277fd5d4a06d
Step 4 : EXPOSE 27017
---> Using cache
---> b2c9af57f5e4
Step 5 : CMD /usr/bin/mongod --port 27017 --smallfiles --dbpath /data/db --logpath /mongo.log
---> Using cache
---> 68e098d93163
Successfully built 68e098d93163
cd opa; docker build -t opa .
Sending build context to Docker daemon 4.096 kB
Sending build context to Docker daemon
Step 0 : FROM phusion/baseimage:0.10.1
---> b5b7b6fe6f97
Step 1 : RUN apt-get update && apt-get install -y curl unzip nodejs npm
---> Using cache
---> 753c82ad2f3a
Step 2 : RUN ln -s /usr/bin/nodejs /usr/bin/node
---> Using cache
---> 6b0ea95de208
Step 3 : RUN curl -sf -o /tmp/opa.zip -L https://github.com/MLstate/PEPS/releases/download/0.9.9/opa.zip
---> Using cache
---> 40f6052a417f
Step 4 : RUN mkdir -p /opa && cd /opa && unzip -q /tmp/opa.zip
---> Using cache
---> f3b65cc24199
Step 5 : ENV OPADIR /opa/usr/local/lib/opa
---> Using cache
---> 051f1eef1795
Step 6 : ENV NODE_PATH $OPADIR/static:$OPADIR/stdlib:$OPADIR/stdlib/stdlib.qmljs:/usr/local/lib/node_modules:node_modules:
---> Using cache
---> b38e3748988e
Successfully built b38e3748988e
cd peps; docker build -t peps .
Sending build context to Docker daemon 5.632 kB
Sending build context to Docker daemon
Step 0 : FROM opa:latest
---> b38e3748988e
Step 1 : RUN curl -sf -o /tmp/peps.zip -L https://github.com/MLstate/PEPS/releases/download/0.9.9/peps.zip
---> Using cache
---> d67f8ca6a787
Step 2 : RUN mkdir -p /peps && cd /peps && unzip -q /tmp/peps.zip
---> Using cache
---> 3b5f79b67a4c
Step 3 : RUN rm /tmp/peps.zip
---> Using cache
---> 587c5bdd02b8
Step 4 : RUN /usr/bin/npm install -g ursa simplesmtp rai [email protected] ldapjs iconv [email protected] [email protected] html-to-text [email protected] intl-messageformat [email protected]
---> Running in 6ba1f5504d98
WARN engine [email protected]: wanted: {"node":">=10.23.2"} (current: {"node":"4.2.6","npm":"3.5.2"})
WARN engine [email protected]: wanted: {"node":">=10.13.0"} (current: {"node":"4.2.6","npm":"3.5.2"})
WARN engine [email protected]: wanted: {"node":">=10.0.0"} (current: {"node":"4.2.6","npm":"3.5.2"})
WARN engine [email protected]: wanted: {"node":">=10.23.2"} (current: {"node":"4.2.6","npm":"3.5.2"})
WARN engine [email protected]: wanted: {"node":">=10.13.0"} (current: {"node":"4.2.6","npm":"3.5.2"})
WARN engine [email protected]: wanted: {"node":">=10.0.0"} (current: {"node":"4.2.6","npm":"3.5.2"})
npm WARN deprecated [email protected]: Mailparser versions older than v2.3.0 are deprecated
npm WARN deprecated [email protected]: All versions below 4.0.1 of Nodemailer are deprecated. See https://nodemailer.com/status/
npm WARN deprecated [email protected]: This project is unmaintained
npm WARN deprecated [email protected]: This project is unmaintained
npm WARN deprecated [email protected]: If using 2.x branch, please upgrade to at least 2.1.6 to avoid a serious bug with socket data flow and an import issue introduced in 2.1.0
npm WARN deprecated [email protected]: This project is unmaintained
/usr/local/bin/html-to-text -> /usr/local/lib/node_modules/html-to-text/bin/cli.js
[email protected] install /usr/local/lib/node_modules/iconv
node-gyp rebuild
make: Entering directory '/usr/local/lib/node_modules/iconv/build'
CC(target) Release/obj.target/iconv/binding.o
../binding.c:18:22: fatal error: node_api.h: No such file or directory
compilation terminated.
iconv.target.mk:92: recipe for target 'Release/obj.target/iconv/binding.o' failed
make: Leaving directory '/usr/local/lib/node_modules/iconv/build'
make: *** [Release/obj.target/iconv/binding.o] Error 1
gyp ERR! build error
gyp ERR! stack Error: make failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/usr/share/node-gyp/lib/build.js:269:23)
gyp ERR! stack at emitTwo (events.js:87:13)
gyp ERR! stack at ChildProcess.emit (events.js:172:7)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:200:12)
gyp ERR! System Linux 4.4.0-148-generic
gyp ERR! command "/usr/bin/nodejs" "/usr/bin/node-gyp" "rebuild"
gyp ERR! cwd /usr/local/lib/node_modules/iconv
gyp ERR! node -v v4.2.6
gyp ERR! node-gyp -v v3.0.3
gyp ERR! not ok
/usr/local/lib
├─┬ [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ ├─┬ [email protected]
│ │ ├── [email protected]
│ │ ├── [email protected]
│ │ ├─┬ [email protected]
│ │ │ └── [email protected]
│ │ └── [email protected]
│ └── [email protected]
├── [email protected]
├─┬ [email protected]
│ ├─┬ @formatjs/[email protected]
│ │ ├── @formatjs/[email protected]
│ │ └── @formatjs/[email protected]
│ ├── [email protected]
│ └── [email protected]
├─┬ [email protected]
│ ├── [email protected]
│ ├─┬ [email protected]
│ │ └── [email protected]
│ ├── [email protected]
│ ├─┬ [email protected]
│ │ └── [email protected]
│ ├── [email protected]
│ ├─┬ [email protected]
│ │ └── [email protected]
│ ├── [email protected]
│ └─┬ [email protected]
│ ├── [email protected]
│ └── [email protected]
├─┬ [email protected]
│ ├─┬ [email protected]
│ │ └─┬ [email protected]
│ │ └── [email protected]
│ ├── [email protected]
│ ├─┬ [email protected]
│ │ └── [email protected]
│ └─┬ [email protected]
│ ├── [email protected]
│ └── [email protected]
├─┬ [email protected]
│ ├─┬ [email protected]
│ │ ├── [email protected]
│ │ ├── [email protected]
│ │ └── [email protected]
│ ├─┬ [email protected]
│ │ └─┬ [email protected]
│ │ ├── [email protected]
│ │ └── [email protected]
│ ├─┬ [email protected]
│ │ └─┬ [email protected]
│ │ └─┬ [email protected]
│ │ ├── [email protected]
│ │ └── [email protected]
│ ├─┬ [email protected]
│ │ └── [email protected]
│ ├─┬ [email protected]
│ │ └── [email protected]
│ └─┬ [email protected]
│ ├── [email protected]
│ └── [email protected]
├─┬ [email protected]
│ ├─┬ [email protected]
│ │ └── [email protected]
│ ├── [email protected]
│ └─┬ [email protected]
│ └─┬ [email protected]
│ ├── [email protected]
│ └── [email protected]
├── [email protected]
├─┬ [email protected]
│ └── [email protected]
├── [email protected]
└─┬ [email protected]
├─┬ [email protected]
│ └── [email protected]
└── [email protected]
npm ERR! Linux 4.4.0-148-generic
npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "install" "-g" "ursa" "simplesmtp" "rai" "[email protected]" "ldapjs" "iconv" "[email protected]" "[email protected]" "html-to-text" "[email protected]" "intl-messageformat" "[email protected]"
npm ERR! node v4.2.6
npm ERR! npm v3.5.2
npm ERR! code ELIFECYCLE
npm ERR! [email protected] install: node-gyp rebuild
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script 'node-gyp rebuild'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the iconv package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node-gyp rebuild
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs iconv
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls iconv
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! /npm-debug.log
INFO[0050] The command [/bin/sh -c /usr/bin/npm install -g ursa simplesmtp rai [email protected] ldapjs iconv [email protected] [email protected] html-to-text [email protected] intl-messageformat [email protected]] returned a non-zero code: 1
make: *** [build] Error 1
I'm trying to deploy PEPS.
Can someone help me resolve this ?
cd mongod; docker build -t mongod .
Sending build context to Docker daemon 4.096 kB
Sending build context to Docker daemon
Step 0 : FROM phusion/baseimage:0.10.1
---> b5b7b6fe6f97
Step 1 : RUN apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 9ECBEC467F0CEB10
---> Using cache
---> 9504b7af79f5
Step 2 : RUN echo 'deb http://repo.mongodb.org/apt/debian wheezy/mongodb-org/3.0 main' | tee /etc/apt/sources.list.d/mongodb-org-3.0.list
---> Using cache
---> 895801bf94c3
Step 3 : RUN apt-get update && apt-get install -y mongodb-org-server mongodb-org-shell mongodb-org-tools mongodb-org-mongos
---> Using cache
---> 277fd5d4a06d
Step 4 : EXPOSE 27017
---> Using cache
---> b2c9af57f5e4
Step 5 : CMD /usr/bin/mongod --port 27017 --smallfiles --dbpath /data/db --logpath /mongo.log
---> Using cache
---> 68e098d93163
Successfully built 68e098d93163
cd opa; docker build -t opa .
Sending build context to Docker daemon 4.096 kB
Sending build context to Docker daemon
Step 0 : FROM phusion/baseimage:0.10.1
---> b5b7b6fe6f97
Step 1 : RUN apt-get update && apt-get install -y curl unzip nodejs npm
---> Using cache
---> 753c82ad2f3a
Step 2 : RUN ln -s /usr/bin/nodejs /usr/bin/node
---> Using cache
---> 6b0ea95de208
Step 3 : RUN curl -sf -o /tmp/opa.zip -L https://github.com/MLstate/PEPS/releases/download/0.9.9/opa.zip
---> Using cache
---> 40f6052a417f
Step 4 : RUN mkdir -p /opa && cd /opa && unzip -q /tmp/opa.zip
---> Using cache
---> f3b65cc24199
Step 5 : ENV OPADIR /opa/usr/local/lib/opa
---> Using cache
---> 051f1eef1795
Step 6 : ENV NODE_PATH $OPADIR/static:$OPADIR/stdlib:$OPADIR/stdlib/stdlib.qmljs:/usr/local/lib/node_modules:node_modules:
---> Using cache
---> b38e3748988e
Successfully built b38e3748988e
cd peps; docker build -t peps .
Sending build context to Docker daemon 5.632 kB
Sending build context to Docker daemon
Step 0 : FROM opa:latest
---> b38e3748988e
Step 1 : RUN curl -sf -o /tmp/peps.zip -L https://github.com/MLstate/PEPS/releases/download/0.9.9/peps.zip
---> Using cache
---> d67f8ca6a787
Step 2 : RUN mkdir -p /peps && cd /peps && unzip -q /tmp/peps.zip
---> Using cache
---> 3b5f79b67a4c
Step 3 : RUN rm /tmp/peps.zip
---> Using cache
---> 587c5bdd02b8
Step 4 : RUN /usr/bin/npm install -g ursa simplesmtp rai [email protected] ldapjs iconv [email protected] [email protected] html-to-text [email protected] intl-messageformat [email protected]
---> Running in 6ba1f5504d98
WARN engine [email protected]: wanted: {"node":">=10.23.2"} (current: {"node":"4.2.6","npm":"3.5.2"})
WARN engine [email protected]: wanted: {"node":">=10.13.0"} (current: {"node":"4.2.6","npm":"3.5.2"})
WARN engine [email protected]: wanted: {"node":">=10.0.0"} (current: {"node":"4.2.6","npm":"3.5.2"})
WARN engine [email protected]: wanted: {"node":">=10.23.2"} (current: {"node":"4.2.6","npm":"3.5.2"})
WARN engine [email protected]: wanted: {"node":">=10.13.0"} (current: {"node":"4.2.6","npm":"3.5.2"})
WARN engine [email protected]: wanted: {"node":">=10.0.0"} (current: {"node":"4.2.6","npm":"3.5.2"})
npm WARN deprecated [email protected]: Mailparser versions older than v2.3.0 are deprecated
npm WARN deprecated [email protected]: All versions below 4.0.1 of Nodemailer are deprecated. See https://nodemailer.com/status/
npm WARN deprecated [email protected]: This project is unmaintained
npm WARN deprecated [email protected]: This project is unmaintained
npm WARN deprecated [email protected]: If using 2.x branch, please upgrade to at least 2.1.6 to avoid a serious bug with socket data flow and an import issue introduced in 2.1.0
npm WARN deprecated [email protected]: This project is unmaintained
/usr/local/bin/html-to-text -> /usr/local/lib/node_modules/html-to-text/bin/cli.js
make: Entering directory '/usr/local/lib/node_modules/iconv/build'
CC(target) Release/obj.target/iconv/binding.o
../binding.c:18:22: fatal error: node_api.h: No such file or directory
compilation terminated.
iconv.target.mk:92: recipe for target 'Release/obj.target/iconv/binding.o' failed
make: Leaving directory '/usr/local/lib/node_modules/iconv/build'
make: *** [Release/obj.target/iconv/binding.o] Error 1
gyp ERR! build error
gyp ERR! stack Error:
makefailed with exit code: 2gyp ERR! stack at ChildProcess.onExit (/usr/share/node-gyp/lib/build.js:269:23)
gyp ERR! stack at emitTwo (events.js:87:13)
gyp ERR! stack at ChildProcess.emit (events.js:172:7)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:200:12)
gyp ERR! System Linux 4.4.0-148-generic
gyp ERR! command "/usr/bin/nodejs" "/usr/bin/node-gyp" "rebuild"
gyp ERR! cwd /usr/local/lib/node_modules/iconv
gyp ERR! node -v v4.2.6
gyp ERR! node-gyp -v v3.0.3
gyp ERR! not ok
/usr/local/lib
├─┬ [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ ├─┬ [email protected]
│ │ ├── [email protected]
│ │ ├── [email protected]
│ │ ├─┬ [email protected]
│ │ │ └── [email protected]
│ │ └── [email protected]
│ └── [email protected]
├── [email protected]
├─┬ [email protected]
│ ├─┬ @formatjs/[email protected]
│ │ ├── @formatjs/[email protected]
│ │ └── @formatjs/[email protected]
│ ├── [email protected]
│ └── [email protected]
├─┬ [email protected]
│ ├── [email protected]
│ ├─┬ [email protected]
│ │ └── [email protected]
│ ├── [email protected]
│ ├─┬ [email protected]
│ │ └── [email protected]
│ ├── [email protected]
│ ├─┬ [email protected]
│ │ └── [email protected]
│ ├── [email protected]
│ └─┬ [email protected]
│ ├── [email protected]
│ └── [email protected]
├─┬ [email protected]
│ ├─┬ [email protected]
│ │ └─┬ [email protected]
│ │ └── [email protected]
│ ├── [email protected]
│ ├─┬ [email protected]
│ │ └── [email protected]
│ └─┬ [email protected]
│ ├── [email protected]
│ └── [email protected]
├─┬ [email protected]
│ ├─┬ [email protected]
│ │ ├── [email protected]
│ │ ├── [email protected]
│ │ └── [email protected]
│ ├─┬ [email protected]
│ │ └─┬ [email protected]
│ │ ├── [email protected]
│ │ └── [email protected]
│ ├─┬ [email protected]
│ │ └─┬ [email protected]
│ │ └─┬ [email protected]
│ │ ├── [email protected]
│ │ └── [email protected]
│ ├─┬ [email protected]
│ │ └── [email protected]
│ ├─┬ [email protected]
│ │ └── [email protected]
│ └─┬ [email protected]
│ ├── [email protected]
│ └── [email protected]
├─┬ [email protected]
│ ├─┬ [email protected]
│ │ └── [email protected]
│ ├── [email protected]
│ └─┬ [email protected]
│ └─┬ [email protected]
│ ├── [email protected]
│ └── [email protected]
├── [email protected]
├─┬ [email protected]
│ └── [email protected]
├── [email protected]
└─┬ [email protected]
├─┬ [email protected]
│ └── [email protected]
└── [email protected]
npm ERR! Linux 4.4.0-148-generic
npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "install" "-g" "ursa" "simplesmtp" "rai" "[email protected]" "ldapjs" "iconv" "[email protected]" "[email protected]" "html-to-text" "[email protected]" "intl-messageformat" "[email protected]"
npm ERR! node v4.2.6
npm ERR! npm v3.5.2
npm ERR! code ELIFECYCLE
npm ERR! [email protected] install:
node-gyp rebuildnpm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script 'node-gyp rebuild'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the iconv package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node-gyp rebuild
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs iconv
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls iconv
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! /npm-debug.log
INFO[0050] The command [/bin/sh -c /usr/bin/npm install -g ursa simplesmtp rai [email protected] ldapjs iconv [email protected] [email protected] html-to-text [email protected] intl-messageformat [email protected]] returned a non-zero code: 1
make: *** [build] Error 1
I'm trying to deploy PEPS.
Can someone help me resolve this ?