wallix / PEPS

Innovative Open source Email + File sharing

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

make build error

manujvarma opened this issue · comments

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 nodemailer@2.7.2 ldapjs iconv nodemailer-smtp-transport@2.7.2 mailparser@0.6.2 html-to-text tweetnacl@0.13.3 intl-messageformat intl@0.1.4
---> Running in 6ba1f5504d98
WARN engine html-to-text@7.0.0: wanted: {"node":">=10.23.2"} (current: {"node":"4.2.6","npm":"3.5.2"})
WARN engine ldapjs@2.2.4: wanted: {"node":">=10.13.0"} (current: {"node":"4.2.6","npm":"3.5.2"})
WARN engine iconv@3.0.0: wanted: {"node":">=10.0.0"} (current: {"node":"4.2.6","npm":"3.5.2"})
WARN engine html-to-text@7.0.0: wanted: {"node":">=10.23.2"} (current: {"node":"4.2.6","npm":"3.5.2"})
WARN engine ldapjs@2.2.4: wanted: {"node":">=10.13.0"} (current: {"node":"4.2.6","npm":"3.5.2"})
WARN engine iconv@3.0.0: wanted: {"node":">=10.0.0"} (current: {"node":"4.2.6","npm":"3.5.2"})
npm WARN deprecated mailparser@0.6.2: Mailparser versions older than v2.3.0 are deprecated
npm WARN deprecated nodemailer@2.7.2: All versions below 4.0.1 of Nodemailer are deprecated. See https://nodemailer.com/status/
npm WARN deprecated mimelib@0.3.1: This project is unmaintained
npm WARN deprecated mailcomposer@4.0.1: This project is unmaintained
npm WARN deprecated socks@1.1.9: 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 buildmail@4.0.1: This project is unmaintained
/usr/local/bin/html-to-text -> /usr/local/lib/node_modules/html-to-text/bin/cli.js

iconv@3.0.0 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
├─┬ html-to-text@7.0.0
│ ├── deepmerge@4.2.2
│ ├── he@1.2.0
│ ├─┬ htmlparser2@6.1.0
│ │ ├── domelementtype@2.2.0
│ │ ├── domhandler@4.1.0
│ │ ├─┬ domutils@2.5.2
│ │ │ └── dom-serializer@1.3.1
│ │ └── entities@2.2.0
│ └── minimist@1.2.5
├── intl@0.1.4
├─┬ intl-messageformat@9.6.7
│ ├─┬ @formatjs/icu-messageformat-parser@1.1.5
│ │ ├── @formatjs/ecma402-abstract@1.6.5
│ │ └── @formatjs/icu-skeleton-parser@1.1.2
│ ├── fast-memoize@2.5.2
│ └── tslib@2.2.0
├─┬ ldapjs@2.2.4
│ ├── abstract-logging@2.0.1
│ ├─┬ asn1@0.2.4
│ │ └── safer-buffer@2.1.2
│ ├── assert-plus@1.0.0
│ ├─┬ backoff@2.5.0
│ │ └── precond@0.2.3
│ ├── ldap-filter@0.3.3
│ ├─┬ once@1.4.0
│ │ └── wrappy@1.0.2
│ ├── vasync@2.2.0
│ └─┬ verror@1.10.0
│ ├── core-util-is@1.0.2
│ └── extsprintf@1.4.0
├─┬ mailparser@0.6.2
│ ├─┬ encoding@0.1.13
│ │ └─┬ iconv-lite@0.6.2
│ │ └── safer-buffer@2.1.2
│ ├── mime@1.6.0
│ ├─┬ mimelib@0.3.1
│ │ └── addressparser@1.0.1
│ └─┬ uue@3.1.2
│ ├── escape-string-regexp@1.0.5
│ └── extend@3.0.2
├─┬ nodemailer@2.7.2
│ ├─┬ libmime@3.0.0
│ │ ├── iconv-lite@0.4.15
│ │ ├── libbase64@0.1.0
│ │ └── libqp@1.1.0
│ ├─┬ mailcomposer@4.0.1
│ │ └─┬ buildmail@4.0.1
│ │ ├── addressparser@1.0.1
│ │ └── punycode@1.4.1
│ ├─┬ nodemailer-direct-transport@3.3.2
│ │ └─┬ smtp-connection@2.12.0
│ │ └─┬ httpntlm@1.6.1
│ │ ├── httpreq@0.4.24
│ │ └── underscore@1.7.0
│ ├─┬ nodemailer-shared@1.1.0
│ │ └── nodemailer-fetch@1.6.0
│ ├─┬ nodemailer-smtp-pool@2.8.2
│ │ └── nodemailer-wellknown@0.1.10
│ └─┬ socks@1.1.9
│ ├── ip@1.1.5
│ └── smart-buffer@1.1.15
├─┬ nodemailer-smtp-transport@2.7.2
│ ├─┬ nodemailer-shared@1.1.0
│ │ └── nodemailer-fetch@1.6.0
│ ├── nodemailer-wellknown@0.1.10
│ └─┬ smtp-connection@2.12.0
│ └─┬ httpntlm@1.6.1
│ ├── httpreq@0.4.24
│ └── underscore@1.7.0
├── rai@0.1.12
├─┬ simplesmtp@0.3.35
│ └── xoauth2@0.1.8
├── tweetnacl@0.13.3
└─┬ ursa@0.9.4
├─┬ bindings@1.5.0
│ └── file-uri-to-path@1.0.0
└── nan@2.14.2

npm ERR! Linux 4.4.0-148-generic
npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "install" "-g" "ursa" "simplesmtp" "rai" "nodemailer@2.7.2" "ldapjs" "iconv" "nodemailer-smtp-transport@2.7.2" "mailparser@0.6.2" "html-to-text" "tweetnacl@0.13.3" "intl-messageformat" "intl@0.1.4"
npm ERR! node v4.2.6
npm ERR! npm v3.5.2
npm ERR! code ELIFECYCLE

npm ERR! iconv@3.0.0 install: node-gyp rebuild
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the iconv@3.0.0 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 nodemailer@2.7.2 ldapjs iconv nodemailer-smtp-transport@2.7.2 mailparser@0.6.2 html-to-text tweetnacl@0.13.3 intl-messageformat intl@0.1.4] returned a non-zero code: 1
make: *** [build] Error 1

I'm trying to deploy PEPS.
Can someone help me resolve this ?