Commit 70fd1e32 authored by Mr C0B's avatar Mr C0B Committed by Derek

add rebar-2.6.1

parent 76899252
FROM buildpack-deps:jessie
ENV OTP_VERSION 17.5.6.4
ENV OTP_VERSION=17.5.6.4 LANG=C.UTF-8
# We'll install the build dependencies for erlang-odbc along with the erlang
# build process:
......@@ -20,7 +20,7 @@ RUN set -xe \
&& make -j$(nproc) \
&& make install \
&& find /usr/local -name examples |xargs rm -rf \
&& rm -rf /usr/src/otp-src \
&& apt-get purge -y --auto-remove $buildDeps
&& apt-get purge -y --auto-remove $buildDeps \
&& rm -rf /usr/src/otp-src /var/lib/apt/lists/*
CMD ["erl"]
FROM debian:jessie
ENV OTP_VERSION 17.5.6.4
ENV OTP_VERSION=17.5.6.4 LANG=C.UTF-8
# We'll install the build dependencies, and purge them on the last step to make
# sure our final image contains only what we've just built:
......@@ -38,7 +38,7 @@ RUN set -xe \
&& make -j$(nproc) \
&& make install \
&& find /usr/local -name examples |xargs rm -rf \
&& rm -rf /usr/src/otp-src \
&& apt-get purge -y --auto-remove $buildDeps
&& apt-get purge -y --auto-remove $buildDeps \
&& rm -rf /usr/src/otp-src /var/lib/apt/lists/*
CMD ["erl"]
FROM buildpack-deps:jessie
ENV OTP_VERSION 18.1.3
ENV OTP_VERSION=18.1.3 LANG=C.UTF-8
# We'll install the build dependencies for erlang-odbc along with the erlang
# build process:
......@@ -20,7 +20,22 @@ RUN set -xe \
&& make -j$(nproc) \
&& make install \
&& find /usr/local -name examples |xargs rm -rf \
&& rm -rf /usr/src/otp-src \
&& apt-get purge -y --auto-remove $buildDeps
&& apt-get purge -y --auto-remove $buildDeps \
&& rm -rf /usr/src/otp-src /var/lib/apt/lists/*
CMD ["erl"]
# extra useful tools here
ENV REBAR_VERSION=2.6.1
RUN set -xe \
&& REBAR_DOWNLOAD_SHA1=7f9b799c5dfa06d1779d828c767be2732dacc411 \
&& mkdir -p /usr/src/rebar-src \
&& curl -fSL -o rebar-src.tar.gz "https://github.com/rebar/rebar/archive/$REBAR_VERSION.tar.gz" \
&& echo "$REBAR_DOWNLOAD_SHA1 rebar-src.tar.gz" | sha1sum -c - \
&& tar -xzf 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/ \
&& rm -rf /usr/src/rebar-src
FROM debian:jessie
ENV OTP_VERSION 18.1.3
ENV OTP_VERSION=18.1.3 LANG=C.UTF-8
# We'll install the build dependencies, and purge them on the last step to make
# sure our final image contains only what we've just built:
......@@ -27,7 +27,6 @@ RUN set -xe \
' \
&& apt-get update \
&& apt-get install -y --no-install-recommends $buildDeps \
&& rm -rf /var/lib/apt/lists/* \
&& mkdir -p /usr/src/otp-src \
&& curl -fSL -o otp-src.tar.gz "https://github.com/erlang/otp/archive/OTP-$OTP_VERSION.tar.gz" \
&& echo "$OTP_DOWNLOAD_SHA1 otp-src.tar.gz" | sha1sum -c - \
......@@ -39,7 +38,7 @@ RUN set -xe \
&& make -j$(nproc) \
&& make install \
&& find /usr/local -name examples |xargs rm -rf \
&& rm -rf /usr/src/otp-src \
&& apt-get purge -y --auto-remove $buildDeps
&& apt-get purge -y --auto-remove $buildDeps \
&& rm -rf /usr/src/otp-src /var/lib/apt/lists/*
CMD ["erl"]
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment