Commit 135b7fa5 authored by Roberto Quintanilla's avatar Roberto Quintanilla Committed by Derek

Moved the download fingerprint variable setting so it's first in the build...

Moved the download fingerprint variable setting so it's first in the build chain of commands, making any change on it more evident
parent 698cd6e5
......@@ -4,12 +4,12 @@ ENV OTP_VERSION 17.5.6.4
# We'll install the build dependencies for erlang-odbc along with the erlang
# build process:
RUN buildDeps='unixodbc-dev' \
&& set -xe \
RUN set -xe \
&& OTP_DOWNLOAD_SHA1=8436bbc750dc90580842e907f911255228d2d070 \
&& buildDeps='unixodbc-dev' \
&& apt-get update \
&& apt-get install -y --no-install-recommends $buildDeps \
&& mkdir -p /usr/src/otp-src \
&& OTP_DOWNLOAD_SHA1=8436bbc750dc90580842e907f911255228d2d070 \
&& 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 - \
&& tar -xzf otp-src.tar.gz -C /usr/src/otp-src --strip-components=1 \
......
......@@ -4,7 +4,9 @@ ENV OTP_VERSION 17.5.6.4
# 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:
RUN buildDeps=' \
RUN set -xe \
&& OTP_DOWNLOAD_SHA1=8436bbc750dc90580842e907f911255228d2d070 \
&& buildDeps=' \
autoconf \
bison \
ca-certificates \
......@@ -22,12 +24,10 @@ RUN buildDeps=' \
unixodbc-dev \
make \
' \
&& 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 \
&& OTP_DOWNLOAD_SHA1=8436bbc750dc90580842e907f911255228d2d070 \
&& 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 - \
&& tar -xzf otp-src.tar.gz -C /usr/src/otp-src --strip-components=1 \
......
......@@ -4,12 +4,12 @@ ENV OTP_VERSION 18.1.3
# We'll install the build dependencies for erlang-odbc along with the erlang
# build process:
RUN buildDeps='unixodbc-dev' \
&& set -xe \
RUN set -xe \
&& OTP_DOWNLOAD_SHA1=981e6c03c0a310483e6c14edb7dd2acaa842e2f8 \
&& buildDeps='unixodbc-dev' \
&& apt-get update \
&& apt-get install -y --no-install-recommends $buildDeps \
&& mkdir -p /usr/src/otp-src \
&& OTP_DOWNLOAD_SHA1=981e6c03c0a310483e6c14edb7dd2acaa842e2f8 \
&& 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 - \
&& tar -xzf otp-src.tar.gz -C /usr/src/otp-src --strip-components=1 \
......
......@@ -4,7 +4,9 @@ ENV OTP_VERSION 18.1.3
# 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:
RUN buildDeps=' \
RUN set -xe \
&& OTP_DOWNLOAD_SHA1=981e6c03c0a310483e6c14edb7dd2acaa842e2f8 \
&& buildDeps=' \
autoconf \
bison \
ca-certificates \
......@@ -23,12 +25,10 @@ RUN buildDeps=' \
unixodbc-dev \
make \
' \
&& 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 \
&& OTP_DOWNLOAD_SHA1=981e6c03c0a310483e6c14edb7dd2acaa842e2f8 \
&& 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 - \
&& tar -xzf otp-src.tar.gz -C /usr/src/otp-src --strip-components=1 \
......
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