aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStanislav Ovchar <[email protected]>2018-03-30 16:51:01 +0300
committerLoïc Hoguin <[email protected]>2018-04-04 17:41:52 +0200
commitb20df2d7fb690181d10393c97d6103bf2fd0aa86 (patch)
treed131c3e8acedfc15eed59ba55310146f52009698
parentfb4e8687f2c5e55ccead797588fed018bcae646b (diff)
downloaderlang.mk-b20df2d7fb690181d10393c97d6103bf2fd0aa86.tar.gz
erlang.mk-b20df2d7fb690181d10393c97d6103bf2fd0aa86.tar.bz2
erlang.mk-b20df2d7fb690181d10393c97d6103bf2fd0aa86.zip
Add dockerfile to support development on linux
-rw-r--r--docker/Dockerfile24
-rw-r--r--docker/README.md10
2 files changed, 34 insertions, 0 deletions
diff --git a/docker/Dockerfile b/docker/Dockerfile
new file mode 100644
index 0000000..b29d966
--- /dev/null
+++ b/docker/Dockerfile
@@ -0,0 +1,24 @@
+FROM ubuntu
+
+RUN apt-get update && apt-get install -y \
+ git \
+ mercurial \
+ subversion \
+ erlang \
+ build-essential \
+ autoconf \
+ automake \
+ curl \
+ python-sphinx \
+ asciidoc \
+ p7zip-full \
+ unzip
+
+COPY . /erlang.mk
+WORKDIR /erlang.mk
+
+# Run specific test-case with verbose output
+# RUN make check c=escript-deps V=4
+
+RUN make check -j 8 -k
+RUN make check LEGACY=1 -j 8 -k
diff --git a/docker/README.md b/docker/README.md
new file mode 100644
index 0000000..04cdaa3
--- /dev/null
+++ b/docker/README.md
@@ -0,0 +1,10 @@
+# Create Docker image to run erlang.mk tests
+* clone erlang.mk repository
+```
+git clone https://github.com/ninenines/erlang.mk.git
+cd erlang.mk
+```
+* in git working dir
+```
+docker build . -f docker/Dockerfile
+``` \ No newline at end of file