clamorisse / node-jawn-docker Goto Github PK
View Code? Open in Web Editor NEWThis is a Dockerfile to create a docker container to be use by members of the Jawn project.
This is a Dockerfile to create a docker container to be use by members of the Jawn project.
The npm tests are failing because leveldb isn't installed. I think you need to install leveldown using something like apt-get install -y libleveldb-dev
.
I'm working on it now. Should have a PR shortly.
If you only run the node tests using docker run --rm node-jawn/jawn npm test
you don't see the error output. You only see:
> [email protected] test /app
> standard && tape test/*.js
That's just the info from the tests starting to run. If they were running properly, you would see a lot more info coming through.
I built the image from the current dockerfile using
docker build -t node-jawn/jawn .
Then cd into the directory with my copy of the jawn code and ran
docker run --rm -it -v "$(pwd):/app/" node-jawn/jawn bash
Then when I run npm test, this is what I get:
> [email protected] test /app
> standard && tape test/*.js
/app/node_modules/bindings/bindings.js:91
throw err
^
Error: Could not locate the bindings file. Tried:
→ /app/node_modules/leveldown/build/leveldown.node
→ /app/node_modules/leveldown/build/Debug/leveldown.node
→ /app/node_modules/leveldown/build/Release/leveldown.node
→ /app/node_modules/leveldown/out/Debug/leveldown.node
→ /app/node_modules/leveldown/Debug/leveldown.node
→ /app/node_modules/leveldown/out/Release/leveldown.node
→ /app/node_modules/leveldown/Release/leveldown.node
→ /app/node_modules/leveldown/build/default/leveldown.node
→ /app/node_modules/leveldown/compiled/0.10.25/linux/x64/leveldown.node
at bindings (/app/node_modules/bindings/bindings.js:88:9)
at Object.<anonymous> (/app/node_modules/leveldown/leveldown.js:4:46)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Module.require (module.js:364:17)
at require (module.js:380:17)
at Object.<anonymous> (/app/node_modules/level/level.js:1:106)
at Module._compile (module.js:456:26)
npm ERR! weird error 8
npm WARN This failure might be due to the use of legacy binary "node"
npm WARN For further explanations, please read
/usr/share/doc/nodejs/README.Debian
npm ERR! not ok code 0
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.