mirror of
https://github.com/wekan/wekan.git
synced 2025-12-18 16:30:13 +01:00
Fix dockerbuild and modify travis
This commit is contained in:
parent
5166395af1
commit
4e7f56ac74
2 changed files with 20 additions and 5 deletions
|
|
@ -10,13 +10,16 @@ before_install:
|
||||||
- sudo chmod +x docker-compose
|
- sudo chmod +x docker-compose
|
||||||
- sudo mv docker-compose /usr/local/bin
|
- sudo mv docker-compose /usr/local/bin
|
||||||
- sudo docker-compose build --no-cache --force-rm
|
- sudo docker-compose build --no-cache --force-rm
|
||||||
- sudo docker-compose up && docker ps -a
|
- sudo docker-compose up -d wekandb
|
||||||
- sudo docker run wekan-app /bin/sh -c "npm test"
|
- sudo docker-compose up -d wekan
|
||||||
|
- sudo docker exec -ti wekan /bin/sh -c "npm test"
|
||||||
|
# ^^ Note - need to come up with some way of checking the output from docker run
|
||||||
|
# that it was a success... perhaps the nodejs server can output a success message?
|
||||||
|
|
||||||
language: node_js
|
language: node_js
|
||||||
|
|
||||||
node_js:
|
node_js:
|
||||||
- "0.10.48"
|
- "6.10.2"
|
||||||
|
|
||||||
install:
|
install:
|
||||||
- "npm install"
|
- "npm install"
|
||||||
|
|
|
||||||
16
Dockerfile
16
Dockerfile
|
|
@ -12,7 +12,7 @@ ARG SRC_PATH
|
||||||
ENV BUILD_DEPS="wget curl bzip2 build-essential python git ca-certificates"
|
ENV BUILD_DEPS="wget curl bzip2 build-essential python git ca-certificates"
|
||||||
ENV GOSU_VERSION=1.10
|
ENV GOSU_VERSION=1.10
|
||||||
ENV NODE_VERSION ${NODE_VERSION:-v6.10.2}
|
ENV NODE_VERSION ${NODE_VERSION:-v6.10.2}
|
||||||
ENV METEOR_RELEASE ${METEOR_RELEASE:-1.4.3.2}
|
ENV METEOR_RELEASE ${METEOR_RELEASE:-1.4.4}
|
||||||
ENV NPM_VERSION ${NPM_VERSION:-3.10.10}
|
ENV NPM_VERSION ${NPM_VERSION:-3.10.10}
|
||||||
ENV ARCHITECTURE ${ARCHITECTURE:-linux-x64}
|
ENV ARCHITECTURE ${ARCHITECTURE:-linux-x64}
|
||||||
ENV SRC_PATH ${SRC_PATH:-./}
|
ENV SRC_PATH ${SRC_PATH:-./}
|
||||||
|
|
@ -74,10 +74,22 @@ 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 && \
|
||||||
gosu wekan:wekan sh ./install_meteor.sh && \
|
###########################
|
||||||
|
###########################
|
||||||
|
# Temporary fix for https://github.com/wekan/wekan/issues/928 until METEOR releases 1.4.4 +
|
||||||
|
gosu wekan:wekan sh ./install_meteor.sh || \
|
||||||
|
( \
|
||||||
|
gosu wekan:wekan git clone --recursive git://github.com/meteor/meteor.git /home/wekan/.meteor && \
|
||||||
|
cd /home/wekan/.meteor && \
|
||||||
|
gosu wekan:wekan git checkout release/METEOR@1.4.4-rc.6 && \
|
||||||
|
gosu wekan /home/wekan/.meteor/meteor -- help \
|
||||||
|
) && \
|
||||||
|
###########################
|
||||||
|
###########################
|
||||||
\
|
\
|
||||||
# Build app
|
# Build app
|
||||||
cd /home/wekan/app && \
|
cd /home/wekan/app && \
|
||||||
|
gosu wekan /home/wekan/.meteor/meteor add standard-minifier-js && \
|
||||||
gosu wekan /home/wekan/.meteor/meteor npm install && \
|
gosu wekan /home/wekan/.meteor/meteor npm install && \
|
||||||
gosu wekan /home/wekan/.meteor/meteor build --directory /home/wekan/app_build && \
|
gosu wekan /home/wekan/.meteor/meteor build --directory /home/wekan/app_build && \
|
||||||
cd /home/wekan/app_build/bundle/programs/server/ && \
|
cd /home/wekan/app_build/bundle/programs/server/ && \
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue