Skip to content

Commit

Permalink
add dockerfile 1.1.0
Browse files Browse the repository at this point in the history
correct shell to install dependencies
  • Loading branch information
Gotier committed Nov 15, 2017
1 parent 6808c78 commit 090c848
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 2 deletions.
15 changes: 15 additions & 0 deletions docker/1.1.0/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
FROM alpine:latest
MAINTAINER nicodeur <[email protected]>

RUN apk update && apk add --update git nodejs nodejs-npm tar && npm install npm@latest -g && rm -rf /var/cache/apk/*

RUN wget https://github.com/nicodeur/QualityDashboard/archive/1.1.0.tar.gz && tar xzvf 1.1.0.tar.gz -C /opt/qualityReport

RUN cd /opt/qualityReport && chmod 755 installDependencies.sh && ./installDependencies.sh

WORKDIR /opt/qualityReport

CMD chmod 755 start.sh && chmod 755 front/start.sh && chmod 755 server/start.sh && chmod 755 stop.sh && chmod 755 restart.sh &&\
./start.sh && tail -f logs/server.log

EXPOSE 8085 8086
10 changes: 10 additions & 0 deletions docker/1.1.0/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
version: '2.1'
services:
quality-report:
build: .
ports:
- "8085:8085"
- "8086:8086"
volumes:
- ./localdata/log:/opt/qualityReport/log
- ./localdata/conf:/opt/qualityReport/front/conf
3 changes: 1 addition & 2 deletions installDependencies.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ echo "";
npm install http-server -g



cd ../server

echo "";
Expand All @@ -23,7 +22,7 @@ echo "-------------------------------------------------"
echo "";

npm install

npm install nodemon -g

echo "";
echo "-------------------------------------------------";
Expand Down

0 comments on commit 090c848

Please sign in to comment.