From 1eba556126545cc97da30c27e3a6836458339aac Mon Sep 17 00:00:00 2001 From: Kenny Ballou Date: Wed, 15 Jan 2020 13:38:38 -0700 Subject: import centos-erlang from docker-erlang Import Dockerfile from [docker-erlang][0]. [0]: https://git.devnulllabs.io/docker-erlang.git Signed-off-by: Kenny Ballou --- centos-erlang/Dockerfile | 55 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100644 centos-erlang/Dockerfile diff --git a/centos-erlang/Dockerfile b/centos-erlang/Dockerfile new file mode 100644 index 0000000..b561760 --- /dev/null +++ b/centos-erlang/Dockerfile @@ -0,0 +1,55 @@ +FROM centos:7 +MAINTAINER kballou@devnulllabs.io + +ENV LANG="en_US.UTF-8" +ENV OTP_VER="22.2.2" +ENV REBAR_VERSION="2.6.4" +ENV REBAR3_VERSION="3.13.0" +ENV ELIXIR_VERSION="1.9.4" + +RUN set -xe \ + && yum -y groupinstall "Development Tools" \ + && yum -y install ncurses \ + ncurses-devel \ + unixODBC \ + unixODBC-devel \ + openssl-devel \ + && OTP_SRC_URL="https://github.com/erlang/otp/archive/OTP-$OTP_VER.tar.gz" \ + && OTP_SRC_SUM="92df7d22239b09f7580572305c862da1fb030a97cef7631ba060ac51fa3864cc" \ + && curl -fSL "$OTP_SRC_URL" -o otp-src.tar.gz \ + && echo "${OTP_SRC_SUM} 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 \ + && make install \ + && find /usr/local -name examples | xargs rm -rf \ + && cd /usr/src \ + && rm -rf /usr/src/otp-src \ + && REBAR_SRC_URL="https://github.com/rebar/rebar/archive/${REBAR_VERSION##*@}.tar.gz" \ + && REBAR_SRC_SUM="577246bafa2eb2b2c3f1d0c157408650446884555bf87901508ce71d5cc0bd07" \ + && mkdir -p /usr/src/rebar-src \ + && curl -fSL "$REBAR_SRC_URL" -o rebar-src.tar.gz \ + && echo "${REBAR_SRC_SUM} 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 \ + && REBAR3_SRC_URL="https://github.com/erlang/rebar3/archive/${REBAR3_VERSION##*@}.tar.gz" \ + && REBAR3_SRC_SUM="49ecf89d04676d077712a10d8252bbda73998a3badf8b342481530fbc685a123" \ + && mkdir -p /usr/src/rebar3-src \ + && curl -fSL "$REBAR3_SRC_URL" -o rebar3-src.tar.gz \ + && echo "${REBAR3_SRC_SUM} 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=$PWD ./bootstrap \ + && install -v ./rebar3 /usr/local/bin \ + && cd /usr/src \ + && rm -rf /usr/src/rebar3-src -- cgit v1.2.1