Skip to content

Commit 2aedfdc

Browse files
committed
DreamCompute has too small /tmp partition, docker builder
1 parent 387d10f commit 2aedfdc

File tree

4 files changed

+12
-2
lines changed

4 files changed

+12
-2
lines changed

.bowerrc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
22
"analytics": false,
3-
"directory": "static/bower_components"
3+
"directory": "static/bower_components",
4+
"tmp": "./.tmp_bower"
45
}

.npmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
prefix = ./node_modules
22
cache = ./.npm
3+
tmp = ./.tmp_npm
34
HOME = .npmhome
45
cwd = .

Makefile

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
SHELL := bash
22
PATH := bin:${PATH}
33
DATE := `date '+%Y%m%d'`
4+
PWD :=$(shell dirname $(realpath $(lastword $(MAKEFILE_LIST))))
45

56

67
build: src/ node_modules/ static/bower_components/ static/assets/css/highlight.css
@@ -15,9 +16,11 @@ src:
1516
cd ..;\
1617
fi
1718

19+
1820
static/bower_components/: node_modules/
1921
node_modules/.bin/bower install
2022

23+
2124
static/assets/css/highlight.css: node_modules
2225
cp node_modules/highlight.js/styles/solarized_dark.css static/assets/css/highlight.css
2326

@@ -39,4 +42,8 @@ serve:
3942
npm run serve
4043

4144

45+
docker: src/ node_modules/ static/bower_components/
46+
docker run -it --rm -v "${PWD}":/usr/src/app -w /usr/src/app node:4 node build.js
47+
48+
4249
.PHONY: build

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@
2020
},
2121
"scripts": {
2222
"serve": "node serve",
23-
"build": "node build"
23+
"build": "node build",
24+
"start": "node build"
2425
},
2526
"devDependencies": {
2627
"bower": "*",

0 commit comments

Comments
 (0)