aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/build-docker-otp
diff options
context:
space:
mode:
authorLukas Larsson <[email protected]>2017-03-06 16:00:21 +0100
committerBjörn Gustavsson <[email protected]>2017-03-08 07:33:20 +0100
commita434fa4622023560e2877a1de698fd4fd15e6b31 (patch)
treefef9fa33e3b797c94762c58dce824777414c0964 /scripts/build-docker-otp
parent3a40993d69a9079f7c890bc365a5f74c96287815 (diff)
downloadotp-a434fa4622023560e2877a1de698fd4fd15e6b31.tar.gz
otp-a434fa4622023560e2877a1de698fd4fd15e6b31.tar.bz2
otp-a434fa4622023560e2877a1de698fd4fd15e6b31.zip
Add docker images for building 32/64 bit erlang
Diffstat (limited to 'scripts/build-docker-otp')
-rwxr-xr-xscripts/build-docker-otp13
1 files changed, 13 insertions, 0 deletions
diff --git a/scripts/build-docker-otp b/scripts/build-docker-otp
new file mode 100755
index 0000000000..d796759691
--- /dev/null
+++ b/scripts/build-docker-otp
@@ -0,0 +1,13 @@
+#!/bin/bash
+
+if [ $# -lt 1 ]; then
+ echo "Usage $0 32|64 [command]"
+ exit 1
+fi
+
+ARCH="$1"
+
+git archive --format=tar.gz --prefix=otp/ HEAD >otp.tar.gz
+
+docker build -t otp --file scripts/Dockerfile.$ARCH .
+docker run --volume="$PWD/logs:/buildroot/otp/logs" -i --rm otp $2