aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKenny Ballou <kballou@devnulllabs.io>2020-01-15 13:38:38 -0700
committerKenny Ballou <kballou@devnulllabs.io>2020-01-15 14:00:44 -0700
commit1eba556126545cc97da30c27e3a6836458339aac (patch)
tree006a96bce18e6b9e19b7d570387360ed240f5da6
parent2d0105e8739010df441ed05fa534145c1ce3b69a (diff)
downloaddockerfiles-1eba556126545cc97da30c27e3a6836458339aac.tar.gz
dockerfiles-1eba556126545cc97da30c27e3a6836458339aac.tar.xz
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 <kballou@devnulllabs.io>
-rw-r--r--centos-erlang/Dockerfile55
1 files changed, 55 insertions, 0 deletions
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