aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'docker/run.sh')
-rwxr-xr-xdocker/run.sh22
1 files changed, 22 insertions, 0 deletions
diff --git a/docker/run.sh b/docker/run.sh
new file mode 100755
index 0000000..b9c9a3f
--- /dev/null
+++ b/docker/run.sh
@@ -0,0 +1,22 @@
+#!/bin/sh
+# POSIX sh, not bash!
+die() {
+ set +x
+ echo "$*" 1>&2
+ exit 1
+}
+# export for debugging
+[ "$DEBUG" == "1" ] && set -x
+# go to volume
+cd /repo
+basedir=$PWD
+# create output directory:
+mkdir -p assets
+# install grunt
+npm install -g grunt-cli || die "FAIL:${PWD}: npm install -g grunt-cli"
+# setup
+for d in sources/css/bootstrap sources/css/tyrian . ; do
+ cd $basedir/$d && npm install || die "FAIL:${PWD}: npm install failed"
+done
+# do the build
+cd $basedir && grunt || die "FAIL:${PWD}: grunt"