Skip to content

Commit

Permalink
Allow building using docker -- might work in jenkins
Browse files Browse the repository at this point in the history
  • Loading branch information
dannon committed Nov 18, 2016
1 parent e5d1b42 commit 2ca6c7f
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
9 changes: 9 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,12 @@ watch: npm-deps bower ## will serve and attempt to reload files

check: npm-deps bower ## checks for broken links
./node_modules/coffee-script/bin/coffee build.coffee --check

docker-npm-deps:
docker run -v `pwd`:/usr/src/app -w /usr/src/app node npm install

docker-bower:
docker run -v `pwd`:/usr/src/app -w /usr/src/app node node node_modules/bower/bin/bower --allow-root install

docker-build: docker-npm-deps docker-bower ## Single endpoint for docker install
docker run -v `pwd`:/usr/src/app -w /usr/src/app node node node_modules/coffee-script/bin/coffee build.coffee
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "labsite-metalsmith",
"version": "0.0.0",
"description": "Taylor Lab Website",
"name": "galaxy-site",
"version": "0.0.1",
"description": "Galaxy Website",
"main": "index.js",
"license": "AFL-3.0",
"repository": {
Expand Down

0 comments on commit 2ca6c7f

Please sign in to comment.