make METEOR_EDGE optional. Fix node_gyp bug in docker build.

- make METEOR_EDGE optional.
- Fix node_gyp bug in docker build.
- Cannot fix `npm install` because this
runs in the travis container and that is running
on an old ubuntu 12.0 - some way to get a newer version?
- remove npm install for now.
- possibly run tests against docker container
as alternative.
This commit is contained in:
Stephen Moloney 2017-04-27 21:58:48 +01:00
parent 72d1d74869
commit 162f8ab361
2 changed files with 13 additions and 19 deletions

View file

@ -18,10 +18,4 @@ before_install:
language: node_js language: node_js
node_js: node_js:
- "6.10.2" - "4.8.1"
install:
- "npm install"
script:
- "npm test"

View file

@ -5,16 +5,18 @@ MAINTAINER wekan
ARG NODE_VERSION ARG NODE_VERSION
ARG METEOR_RELEASE ARG METEOR_RELEASE
ARG METEOR_EDGE ARG METEOR_EDGE
ARG USE_EDGE
ARG NPM_VERSION ARG NPM_VERSION
ARG ARCHITECTURE ARG ARCHITECTURE
ARG SRC_PATH ARG SRC_PATH
# Set the environment variables (defaults where required) # Set the environment variables (defaults where required)
ENV BUILD_DEPS="wget curl bzip2 build-essential python git ca-certificates" ENV BUILD_DEPS="wget curl bzip2 build-essential python git ca-certificates gcc-4.9"
ENV GOSU_VERSION=1.10 ENV GOSU_VERSION=1.10
ENV NODE_VERSION ${NODE_VERSION:-v4.8.1} ENV NODE_VERSION ${NODE_VERSION:-v4.8.1}
ENV METEOR_RELEASE ${METEOR_RELEASE:-1.4.5} ENV METEOR_RELEASE ${METEOR_RELEASE:-1.4.4.1}
ENV METEOR_EDGE ${METEOR_EDGE:-1.4.4.1} ENV USE_EDGE ${USE_EDGE:-false}
ENV METEOR_EDGE ${METEOR_EDGE:-1.4.4-rc.6}
ENV NPM_VERSION ${NPM_VERSION:-4.5.0} ENV NPM_VERSION ${NPM_VERSION:-4.5.0}
ENV ARCHITECTURE ${ARCHITECTURE:-linux-x64} ENV ARCHITECTURE ${ARCHITECTURE:-linux-x64}
ENV SRC_PATH ${SRC_PATH:-./} ENV SRC_PATH ${SRC_PATH:-./}
@ -76,18 +78,16 @@ RUN \
sed -i "s|RELEASE=.*|RELEASE=${METEOR_RELEASE}\"\"|g" ./install_meteor.sh && \ sed -i "s|RELEASE=.*|RELEASE=${METEOR_RELEASE}\"\"|g" ./install_meteor.sh && \
echo "Starting meteor ${METEOR_RELEASE} installation... \n" && \ echo "Starting meteor ${METEOR_RELEASE} installation... \n" && \
chown wekan:wekan ./install_meteor.sh && \ chown wekan:wekan ./install_meteor.sh && \
########################### \
########################### # Check if opting for a release candidate instead of major release
# Block for ensuring installation of release candidates - perhaps remove later. if [ "$USE_EDGE" = false ]; then \
gosu wekan:wekan sh ./install_meteor.sh || \ gosu wekan:wekan sh ./install_meteor.sh; \
( \ else \
gosu wekan:wekan git clone --recursive git://github.com/meteor/meteor.git /home/wekan/.meteor && \ gosu wekan:wekan git clone --recursive git://github.com/meteor/meteor.git /home/wekan/.meteor && \
cd /home/wekan/.meteor && \ cd /home/wekan/.meteor && \
gosu wekan:wekan git checkout release/METEOR@${METEOR_EDGE} && \ gosu wekan:wekan git checkout release/METEOR@${METEOR_EDGE} && \
gosu wekan /home/wekan/.meteor/meteor -- help \ gosu wekan /home/wekan/.meteor/meteor -- help; \
) && \ fi && \
###########################
###########################
\ \
# Build app # Build app
cd /home/wekan/app && \ cd /home/wekan/app && \