Merge branch 'master' of github.com:peterbraden/node-opencv into docker-environments

This commit is contained in:
Peter Braden 2015-09-22 19:30:44 +02:00
commit 6edc5de8cf
4 changed files with 15 additions and 23 deletions

View File

@ -12,6 +12,10 @@ node_js:
- '0.12' - '0.12'
- "iojs-v1.0.4" - "iojs-v1.0.4"
sudo: required
services:
- docker
compiler: clang compiler: clang
env: env:
@ -50,6 +54,7 @@ install:
# test our module # test our module
- npm test - npm test
- node lib/opencv.js - node lib/opencv.js
- docker build -t peterbraden/node-opencv .
before_script: before_script:
- echo "Publishing native platform Binary Package? ->" $PUBLISH_BINARY - echo "Publishing native platform Binary Package? ->" $PUBLISH_BINARY

View File

@ -16,5 +16,4 @@ run apt-get update
run apt-get install -y libcv-dev libcvaux-dev libhighgui-dev libopencv-dev run apt-get install -y libcv-dev libcvaux-dev libhighgui-dev libopencv-dev
run curl -sL https://deb.nodesource.com/setup | bash - run curl -sL https://deb.nodesource.com/setup | bash -
run apt-get install -y nodejs run apt-get install -y nodejs
# ensure npm installs at v3.2.0 vice tip
run npm install opencv || cat npm-debug.log run npm install opencv || cat npm-debug.log

View File

@ -1,12 +1,4 @@
# This file describes how to build node-opencv into a runnable linux container with all dependencies installed # This is a dockerfile to test the build on ubuntu 12.04
# To build:
# 1) Install docker (http://docker.io)
# 2) Build: wget https://raw.github.com/dotcloud/docker/v0.1.6/contrib/docker-build/docker-build && python docker-build $USER/node-opencv < Dockerfile
# 3) Test: docker run $USER/node-opencv node -e "console.log(require('opencv').version)"
#
# VERSION 0.1
# DOCKER-VERSION 0.1.6
from ubuntu:12.04 from ubuntu:12.04
run apt-get update -qq run apt-get update -qq
run apt-get install -y software-properties-common python-software-properties run apt-get install -y software-properties-common python-software-properties
@ -15,4 +7,7 @@ run apt-get update
run apt-get install -y libcv-dev libcvaux-dev libhighgui-dev libopencv-dev run apt-get install -y libcv-dev libcvaux-dev libhighgui-dev libopencv-dev
run curl -sL https://deb.nodesource.com/setup | bash - run curl -sL https://deb.nodesource.com/setup | bash -
run apt-get install -y nodejs run apt-get install -y nodejs
run npm install opencv || cat npm-debug.log WORKDIR /root/node-opencv
add . /root/node-opencv
run npm install --unsafe-perm --build-from-source || cat npm-debug.log
run make test

View File

@ -1,13 +1,4 @@
# This file describes how to build node-opencv into a runnable linux container with all dependencies installed # This is a dockerfile to test the build on ubuntu 14.04
# To build:
# 1) Install docker (http://docker.io)
# 2) Build: wget https://raw.github.com/dotcloud/docker/v0.1.6/contrib/docker-build/docker-build && python docker-build $USER/node-opencv < Dockerfile
# 3) Test: docker run $USER/node-opencv node -e "console.log(require('opencv').version)"
#
# VERSION 0.2
# DOCKER-VERSION 8.1.2
# update to 14.04
from ubuntu:14.04 from ubuntu:14.04
run apt-get update -qq run apt-get update -qq
run apt-get install -y software-properties-common python-software-properties run apt-get install -y software-properties-common python-software-properties
@ -16,5 +7,7 @@ run apt-get update
run apt-get install -y libcv-dev libcvaux-dev libhighgui-dev libopencv-dev run apt-get install -y libcv-dev libcvaux-dev libhighgui-dev libopencv-dev
run curl -sL https://deb.nodesource.com/setup | bash - run curl -sL https://deb.nodesource.com/setup | bash -
run apt-get install -y nodejs run apt-get install -y nodejs
# ensure npm installs at v3.2.0 vice tip WORKDIR /root/node-opencv
run npm install opencv || cat npm-debug.log add . /root/node-opencv
run npm install --unsafe-perm --build-from-source || cat npm-debug.log
run make test