Browse Source

Add dockerfile to support development on linux

Stanislav Ovchar 7 years ago
parent
commit
b20df2d7fb
2 changed files with 34 additions and 0 deletions
  1. 24 0
      docker/Dockerfile
  2. 10 0
      docker/README.md

+ 24 - 0
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

+ 10 - 0
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
+```