enhanced build in docker

This commit is contained in:
Marc Wäckerlin
2015-12-02 15:58:23 +00:00
parent 8de5dfa945
commit af88fdd4fd
3 changed files with 75 additions and 34 deletions

View File

@@ -1,7 +1,11 @@
packages+=" npm"
repos+="universe"
commands+=("npm install -g node" "npm install -g cordova")
packages+=("wheezy:::curl:::npm")
packages+=("nodejs")
repos+=("Ubuntu:::universe")
repos+=("wheezy:::'deb http://ftp.is.debian.org/debian wheezy-backports main'")
commands+=("wheezy:::update-alternatives --install /usr/bin/node nodejs /usr/bin/nodejs 100")
commands+=("wheezy:::curl https://www.npmjs.com/install.sh | sh")
commands+=("npm install -g cordova")
if test -n "${ANDROID_HOME}"; then
envs+=" -e ANDROID_HOME=${ANDROID_HOME}"
dirs+=" -v ${ANDROID_HOME}:${ANDROID_HOME}:ro"
envs+=("-e ANDROID_HOME=${ANDROID_HOME}")
dirs+=("-v ${ANDROID_HOME}:${ANDROID_HOME}:ro")
fi