diff options
author | kballou <kballou@devnulllabs.io> | 2017-06-21 09:07:24 -0600 |
---|---|---|
committer | kballou <kballou@devnulllabs.io> | 2017-06-21 09:07:24 -0600 |
commit | fbb19617b3eb58920ecbabe328dd3efe4f4f02c3 (patch) | |
tree | 669f1679942fff77c4a6dd02a8fa3a4135ec3202 | |
parent | e95fb319dbd51d69db972f11c2218c50b89d6458 (diff) | |
download | docker-erlang-fbb19617b3eb58920ecbabe328dd3efe4f4f02c3.tar.gz docker-erlang-fbb19617b3eb58920ecbabe328dd3efe4f4f02c3.tar.xz |
Add OTP 20.0
-rw-r--r-- | 20/Dockerfile | 51 | ||||
-rw-r--r-- | 20/alpine/Dockerfile | 51 | ||||
-rw-r--r-- | 20/alpine/development/Dockerfile | 51 | ||||
-rw-r--r-- | 20/alpine/onbuild/Dockerfile | 51 | ||||
-rw-r--r-- | 20/development/Dockerfile | 51 | ||||
-rw-r--r-- | 20/onbuild/Dockerfile | 51 | ||||
-rw-r--r-- | 20/options | 6 | ||||
-rw-r--r-- | Makefile | 11 |
8 files changed, 321 insertions, 2 deletions
diff --git a/20/Dockerfile b/20/Dockerfile new file mode 100644 index 0000000..acae7eb --- /dev/null +++ b/20/Dockerfile @@ -0,0 +1,51 @@ +# DOCKER-VERSION 1.9.1 +FROM centos:7 +MAINTAINER kballou@devnulllabs.io + +ENV LANG="en_US.UTF-8" +ENV OTP_VERSION="20.0" +ENV REBAR_VERSION="2.6.4" +ENV REBAR3_VERSION="3.4.1" + +RUN set -xe \ + && yum -y groups install "Development Tools" \ + && yum -y install ncurses \ + ncurses-devel \ + unixODBC \ + unixODBC-devel \ + openssl-devel \ + && curl -fSL "https://github.com/erlang/otp/archive/OTP-20.0.tar.gz" -o otp-src.tar.gz \ + && echo "548815fe08f5b661d38334ffa480e9e0614db5c505da7cb0dc260e729697f2ab otp-src.tar.gz" | sha256sum -c - \ + && mkdir -p /usr/src/otp-src \ + && tar -zxf otp-src.tar.gz -C /usr/src/otp-src --strip-components=1 \ + && rm otp-src.tar.gz \ + && cd /usr/src/otp-src \ + && ./otp_build autoconf \ + && ./configure \ + && make -j 4 \ + && make install \ + && find /usr/local -name examples | xargs rm -rf \ + && cd /usr/src \ + && rm -rf /usr/src/otp-src \ + && mkdir -p /usr/src/rebar-src \ + && curl -fSL "https://github.com/rebar/rebar/archive/${REBAR_VERSION##*@}.tar.gz" -o rebar-src.tar.gz \ + && echo "577246bafa2eb2b2c3f1d0c157408650446884555bf87901508ce71d5cc0bd07 rebar-src.tar.gz" | sha256sum -c - \ + && tar -zxf rebar-src.tar.gz -C /usr/src/rebar-src --strip-components=1 \ + && rm rebar-src.tar.gz \ + && cd /usr/src/rebar-src \ + && ./bootstrap \ + && install -v ./rebar /usr/local/bin \ + && cd /usr/src \ + && rm -rf /usr/src/rebar-src \ + && mkdir -p /usr/src/rebar3-src \ + && curl -fSL "https://github.com/erlang/rebar3/archive/${REBAR3_VERSION##*@}.tar.gz" -o rebar3-src.tar.gz \ + && echo "fa8b056c37ed3781728baf0fc5b1d87a31edbc5f8dd9b50a5d1ad92b0230e5dd rebar3-src.tar.gz" | sha256sum -c - \ + && tar -zxf rebar3-src.tar.gz -C /usr/src/rebar3-src --strip-components=1 \ + && rm rebar3-src.tar.gz \ + && cd /usr/src/rebar3-src \ + && HOME=/home/kb/workspace/docker-erlang ./bootstrap \ + && install -v ./rebar3 /usr/local/bin \ + && rm -rf /usr/src/rebar3-src \ + && yum -y groups erase "Development Tools" + +CMD ["erl"] diff --git a/20/alpine/Dockerfile b/20/alpine/Dockerfile new file mode 100644 index 0000000..acae7eb --- /dev/null +++ b/20/alpine/Dockerfile @@ -0,0 +1,51 @@ +# DOCKER-VERSION 1.9.1 +FROM centos:7 +MAINTAINER kballou@devnulllabs.io + +ENV LANG="en_US.UTF-8" +ENV OTP_VERSION="20.0" +ENV REBAR_VERSION="2.6.4" +ENV REBAR3_VERSION="3.4.1" + +RUN set -xe \ + && yum -y groups install "Development Tools" \ + && yum -y install ncurses \ + ncurses-devel \ + unixODBC \ + unixODBC-devel \ + openssl-devel \ + && curl -fSL "https://github.com/erlang/otp/archive/OTP-20.0.tar.gz" -o otp-src.tar.gz \ + && echo "548815fe08f5b661d38334ffa480e9e0614db5c505da7cb0dc260e729697f2ab otp-src.tar.gz" | sha256sum -c - \ + && mkdir -p /usr/src/otp-src \ + && tar -zxf otp-src.tar.gz -C /usr/src/otp-src --strip-components=1 \ + && rm otp-src.tar.gz \ + && cd /usr/src/otp-src \ + && ./otp_build autoconf \ + && ./configure \ + && make -j 4 \ + && make install \ + && find /usr/local -name examples | xargs rm -rf \ + && cd /usr/src \ + && rm -rf /usr/src/otp-src \ + && mkdir -p /usr/src/rebar-src \ + && curl -fSL "https://github.com/rebar/rebar/archive/${REBAR_VERSION##*@}.tar.gz" -o rebar-src.tar.gz \ + && echo "577246bafa2eb2b2c3f1d0c157408650446884555bf87901508ce71d5cc0bd07 rebar-src.tar.gz" | sha256sum -c - \ + && tar -zxf rebar-src.tar.gz -C /usr/src/rebar-src --strip-components=1 \ + && rm rebar-src.tar.gz \ + && cd /usr/src/rebar-src \ + && ./bootstrap \ + && install -v ./rebar /usr/local/bin \ + && cd /usr/src \ + && rm -rf /usr/src/rebar-src \ + && mkdir -p /usr/src/rebar3-src \ + && curl -fSL "https://github.com/erlang/rebar3/archive/${REBAR3_VERSION##*@}.tar.gz" -o rebar3-src.tar.gz \ + && echo "fa8b056c37ed3781728baf0fc5b1d87a31edbc5f8dd9b50a5d1ad92b0230e5dd rebar3-src.tar.gz" | sha256sum -c - \ + && tar -zxf rebar3-src.tar.gz -C /usr/src/rebar3-src --strip-components=1 \ + && rm rebar3-src.tar.gz \ + && cd /usr/src/rebar3-src \ + && HOME=/home/kb/workspace/docker-erlang ./bootstrap \ + && install -v ./rebar3 /usr/local/bin \ + && rm -rf /usr/src/rebar3-src \ + && yum -y groups erase "Development Tools" + +CMD ["erl"] diff --git a/20/alpine/development/Dockerfile b/20/alpine/development/Dockerfile new file mode 100644 index 0000000..acae7eb --- /dev/null +++ b/20/alpine/development/Dockerfile @@ -0,0 +1,51 @@ +# DOCKER-VERSION 1.9.1 +FROM centos:7 +MAINTAINER kballou@devnulllabs.io + +ENV LANG="en_US.UTF-8" +ENV OTP_VERSION="20.0" +ENV REBAR_VERSION="2.6.4" +ENV REBAR3_VERSION="3.4.1" + +RUN set -xe \ + && yum -y groups install "Development Tools" \ + && yum -y install ncurses \ + ncurses-devel \ + unixODBC \ + unixODBC-devel \ + openssl-devel \ + && curl -fSL "https://github.com/erlang/otp/archive/OTP-20.0.tar.gz" -o otp-src.tar.gz \ + && echo "548815fe08f5b661d38334ffa480e9e0614db5c505da7cb0dc260e729697f2ab otp-src.tar.gz" | sha256sum -c - \ + && mkdir -p /usr/src/otp-src \ + && tar -zxf otp-src.tar.gz -C /usr/src/otp-src --strip-components=1 \ + && rm otp-src.tar.gz \ + && cd /usr/src/otp-src \ + && ./otp_build autoconf \ + && ./configure \ + && make -j 4 \ + && make install \ + && find /usr/local -name examples | xargs rm -rf \ + && cd /usr/src \ + && rm -rf /usr/src/otp-src \ + && mkdir -p /usr/src/rebar-src \ + && curl -fSL "https://github.com/rebar/rebar/archive/${REBAR_VERSION##*@}.tar.gz" -o rebar-src.tar.gz \ + && echo "577246bafa2eb2b2c3f1d0c157408650446884555bf87901508ce71d5cc0bd07 rebar-src.tar.gz" | sha256sum -c - \ + && tar -zxf rebar-src.tar.gz -C /usr/src/rebar-src --strip-components=1 \ + && rm rebar-src.tar.gz \ + && cd /usr/src/rebar-src \ + && ./bootstrap \ + && install -v ./rebar /usr/local/bin \ + && cd /usr/src \ + && rm -rf /usr/src/rebar-src \ + && mkdir -p /usr/src/rebar3-src \ + && curl -fSL "https://github.com/erlang/rebar3/archive/${REBAR3_VERSION##*@}.tar.gz" -o rebar3-src.tar.gz \ + && echo "fa8b056c37ed3781728baf0fc5b1d87a31edbc5f8dd9b50a5d1ad92b0230e5dd rebar3-src.tar.gz" | sha256sum -c - \ + && tar -zxf rebar3-src.tar.gz -C /usr/src/rebar3-src --strip-components=1 \ + && rm rebar3-src.tar.gz \ + && cd /usr/src/rebar3-src \ + && HOME=/home/kb/workspace/docker-erlang ./bootstrap \ + && install -v ./rebar3 /usr/local/bin \ + && rm -rf /usr/src/rebar3-src \ + && yum -y groups erase "Development Tools" + +CMD ["erl"] diff --git a/20/alpine/onbuild/Dockerfile b/20/alpine/onbuild/Dockerfile new file mode 100644 index 0000000..acae7eb --- /dev/null +++ b/20/alpine/onbuild/Dockerfile @@ -0,0 +1,51 @@ +# DOCKER-VERSION 1.9.1 +FROM centos:7 +MAINTAINER kballou@devnulllabs.io + +ENV LANG="en_US.UTF-8" +ENV OTP_VERSION="20.0" +ENV REBAR_VERSION="2.6.4" +ENV REBAR3_VERSION="3.4.1" + +RUN set -xe \ + && yum -y groups install "Development Tools" \ + && yum -y install ncurses \ + ncurses-devel \ + unixODBC \ + unixODBC-devel \ + openssl-devel \ + && curl -fSL "https://github.com/erlang/otp/archive/OTP-20.0.tar.gz" -o otp-src.tar.gz \ + && echo "548815fe08f5b661d38334ffa480e9e0614db5c505da7cb0dc260e729697f2ab otp-src.tar.gz" | sha256sum -c - \ + && mkdir -p /usr/src/otp-src \ + && tar -zxf otp-src.tar.gz -C /usr/src/otp-src --strip-components=1 \ + && rm otp-src.tar.gz \ + && cd /usr/src/otp-src \ + && ./otp_build autoconf \ + && ./configure \ + && make -j 4 \ + && make install \ + && find /usr/local -name examples | xargs rm -rf \ + && cd /usr/src \ + && rm -rf /usr/src/otp-src \ + && mkdir -p /usr/src/rebar-src \ + && curl -fSL "https://github.com/rebar/rebar/archive/${REBAR_VERSION##*@}.tar.gz" -o rebar-src.tar.gz \ + && echo "577246bafa2eb2b2c3f1d0c157408650446884555bf87901508ce71d5cc0bd07 rebar-src.tar.gz" | sha256sum -c - \ + && tar -zxf rebar-src.tar.gz -C /usr/src/rebar-src --strip-components=1 \ + && rm rebar-src.tar.gz \ + && cd /usr/src/rebar-src \ + && ./bootstrap \ + && install -v ./rebar /usr/local/bin \ + && cd /usr/src \ + && rm -rf /usr/src/rebar-src \ + && mkdir -p /usr/src/rebar3-src \ + && curl -fSL "https://github.com/erlang/rebar3/archive/${REBAR3_VERSION##*@}.tar.gz" -o rebar3-src.tar.gz \ + && echo "fa8b056c37ed3781728baf0fc5b1d87a31edbc5f8dd9b50a5d1ad92b0230e5dd rebar3-src.tar.gz" | sha256sum -c - \ + && tar -zxf rebar3-src.tar.gz -C /usr/src/rebar3-src --strip-components=1 \ + && rm rebar3-src.tar.gz \ + && cd /usr/src/rebar3-src \ + && HOME=/home/kb/workspace/docker-erlang ./bootstrap \ + && install -v ./rebar3 /usr/local/bin \ + && rm -rf /usr/src/rebar3-src \ + && yum -y groups erase "Development Tools" + +CMD ["erl"] diff --git a/20/development/Dockerfile b/20/development/Dockerfile new file mode 100644 index 0000000..acae7eb --- /dev/null +++ b/20/development/Dockerfile @@ -0,0 +1,51 @@ +# DOCKER-VERSION 1.9.1 +FROM centos:7 +MAINTAINER kballou@devnulllabs.io + +ENV LANG="en_US.UTF-8" +ENV OTP_VERSION="20.0" +ENV REBAR_VERSION="2.6.4" +ENV REBAR3_VERSION="3.4.1" + +RUN set -xe \ + && yum -y groups install "Development Tools" \ + && yum -y install ncurses \ + ncurses-devel \ + unixODBC \ + unixODBC-devel \ + openssl-devel \ + && curl -fSL "https://github.com/erlang/otp/archive/OTP-20.0.tar.gz" -o otp-src.tar.gz \ + && echo "548815fe08f5b661d38334ffa480e9e0614db5c505da7cb0dc260e729697f2ab otp-src.tar.gz" | sha256sum -c - \ + && mkdir -p /usr/src/otp-src \ + && tar -zxf otp-src.tar.gz -C /usr/src/otp-src --strip-components=1 \ + && rm otp-src.tar.gz \ + && cd /usr/src/otp-src \ + && ./otp_build autoconf \ + && ./configure \ + && make -j 4 \ + && make install \ + && find /usr/local -name examples | xargs rm -rf \ + && cd /usr/src \ + && rm -rf /usr/src/otp-src \ + && mkdir -p /usr/src/rebar-src \ + && curl -fSL "https://github.com/rebar/rebar/archive/${REBAR_VERSION##*@}.tar.gz" -o rebar-src.tar.gz \ + && echo "577246bafa2eb2b2c3f1d0c157408650446884555bf87901508ce71d5cc0bd07 rebar-src.tar.gz" | sha256sum -c - \ + && tar -zxf rebar-src.tar.gz -C /usr/src/rebar-src --strip-components=1 \ + && rm rebar-src.tar.gz \ + && cd /usr/src/rebar-src \ + && ./bootstrap \ + && install -v ./rebar /usr/local/bin \ + && cd /usr/src \ + && rm -rf /usr/src/rebar-src \ + && mkdir -p /usr/src/rebar3-src \ + && curl -fSL "https://github.com/erlang/rebar3/archive/${REBAR3_VERSION##*@}.tar.gz" -o rebar3-src.tar.gz \ + && echo "fa8b056c37ed3781728baf0fc5b1d87a31edbc5f8dd9b50a5d1ad92b0230e5dd rebar3-src.tar.gz" | sha256sum -c - \ + && tar -zxf rebar3-src.tar.gz -C /usr/src/rebar3-src --strip-components=1 \ + && rm rebar3-src.tar.gz \ + && cd /usr/src/rebar3-src \ + && HOME=/home/kb/workspace/docker-erlang ./bootstrap \ + && install -v ./rebar3 /usr/local/bin \ + && rm -rf /usr/src/rebar3-src \ + && yum -y groups erase "Development Tools" + +CMD ["erl"] diff --git a/20/onbuild/Dockerfile b/20/onbuild/Dockerfile new file mode 100644 index 0000000..acae7eb --- /dev/null +++ b/20/onbuild/Dockerfile @@ -0,0 +1,51 @@ +# DOCKER-VERSION 1.9.1 +FROM centos:7 +MAINTAINER kballou@devnulllabs.io + +ENV LANG="en_US.UTF-8" +ENV OTP_VERSION="20.0" +ENV REBAR_VERSION="2.6.4" +ENV REBAR3_VERSION="3.4.1" + +RUN set -xe \ + && yum -y groups install "Development Tools" \ + && yum -y install ncurses \ + ncurses-devel \ + unixODBC \ + unixODBC-devel \ + openssl-devel \ + && curl -fSL "https://github.com/erlang/otp/archive/OTP-20.0.tar.gz" -o otp-src.tar.gz \ + && echo "548815fe08f5b661d38334ffa480e9e0614db5c505da7cb0dc260e729697f2ab otp-src.tar.gz" | sha256sum -c - \ + && mkdir -p /usr/src/otp-src \ + && tar -zxf otp-src.tar.gz -C /usr/src/otp-src --strip-components=1 \ + && rm otp-src.tar.gz \ + && cd /usr/src/otp-src \ + && ./otp_build autoconf \ + && ./configure \ + && make -j 4 \ + && make install \ + && find /usr/local -name examples | xargs rm -rf \ + && cd /usr/src \ + && rm -rf /usr/src/otp-src \ + && mkdir -p /usr/src/rebar-src \ + && curl -fSL "https://github.com/rebar/rebar/archive/${REBAR_VERSION##*@}.tar.gz" -o rebar-src.tar.gz \ + && echo "577246bafa2eb2b2c3f1d0c157408650446884555bf87901508ce71d5cc0bd07 rebar-src.tar.gz" | sha256sum -c - \ + && tar -zxf rebar-src.tar.gz -C /usr/src/rebar-src --strip-components=1 \ + && rm rebar-src.tar.gz \ + && cd /usr/src/rebar-src \ + && ./bootstrap \ + && install -v ./rebar /usr/local/bin \ + && cd /usr/src \ + && rm -rf /usr/src/rebar-src \ + && mkdir -p /usr/src/rebar3-src \ + && curl -fSL "https://github.com/erlang/rebar3/archive/${REBAR3_VERSION##*@}.tar.gz" -o rebar3-src.tar.gz \ + && echo "fa8b056c37ed3781728baf0fc5b1d87a31edbc5f8dd9b50a5d1ad92b0230e5dd rebar3-src.tar.gz" | sha256sum -c - \ + && tar -zxf rebar3-src.tar.gz -C /usr/src/rebar3-src --strip-components=1 \ + && rm rebar3-src.tar.gz \ + && cd /usr/src/rebar3-src \ + && HOME=/home/kb/workspace/docker-erlang ./bootstrap \ + && install -v ./rebar3 /usr/local/bin \ + && rm -rf /usr/src/rebar3-src \ + && yum -y groups erase "Development Tools" + +CMD ["erl"] diff --git a/20/options b/20/options new file mode 100644 index 0000000..85b3a4b --- /dev/null +++ b/20/options @@ -0,0 +1,6 @@ +OTP_VERSION=20.0 +OTP_SRC_SUM=548815fe08f5b661d38334ffa480e9e0614db5c505da7cb0dc260e729697f2ab +REBAR_VERSION=2.6.4 +REBAR_SRC_SUM=577246bafa2eb2b2c3f1d0c157408650446884555bf87901508ce71d5cc0bd07 +REBAR3_VERSION=3.4.1 +REBAR3_SRC_SUM=fa8b056c37ed3781728baf0fc5b1d87a31edbc5f8dd9b50a5d1ad92b0230e5dd @@ -6,12 +6,19 @@ DOCKERFILES:= \ 19/development/Dockerfile \ 19/alpine/Dockerfile \ 19/alpine/onbuild/Dockerfile \ - 19/alpine/development/Dockerfile + 19/alpine/development/Dockerfile \ + 20/Dockerfile \ + 20/onbuild/Dockerfile \ + 20/development/Dockerfile \ + 20/alpine/Dockerfile \ + 20/alpine/onbuild/Dockerfile \ + 20/alpine/development/Dockerfile \ .PHONY: all all: ${DOCKERFILES} -$(DOCKERFILES): template/Dockerfile 19/options +$(DOCKERFILES): template/Dockerfile 19/options 20/options + mkdir -p $(@D) bash template/generate.sh $(shell echo $@ | cut -d '/' -f1)/options $< > $@ .PHONY: clean |