-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #53 from lpgauth/upkeep/cleanup
Cleanup
- Loading branch information
Showing
34 changed files
with
79 additions
and
1,451 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,39 +1,28 @@ | ||
FROM cassandra:3.11 | ||
FROM scylladb/scylla:5.2 | ||
|
||
ENV OTP_VERSION="24.1.2" \ | ||
REBAR3_VERSION="3.17.0" | ||
RUN apt-get update | ||
RUN apt-get -y --no-install-recommends install \ | ||
autoconf \ | ||
dpkg-dev \ | ||
gcc \ | ||
g++ \ | ||
make \ | ||
libncurses-dev \ | ||
unixodbc-dev \ | ||
libssl-dev \ | ||
libsctp-dev \ | ||
wget \ | ||
ca-certificates \ | ||
pax-utils \ | ||
git | ||
|
||
RUN set -xe \ | ||
&& OTP_DOWNLOAD_URL="https://github.com/erlang/otp/archive/OTP-${OTP_VERSION}.tar.gz" \ | ||
&& OTP_DOWNLOAD_SHA256="c141a046bb7184a7bb5c3d6da2ed013e465d1fbe4ff5cd16e0fbb7a0e786a152" \ | ||
&& deps='dpkg-dev g++ gcc libncurses5-dev libssl-dev git-all' \ | ||
&& apt-get update \ | ||
&& apt-get install -y --no-install-recommends $deps \ | ||
&& curl -fSL -o otp-src.tar.gz "$OTP_DOWNLOAD_URL" \ | ||
&& echo "$OTP_DOWNLOAD_SHA256 otp-src.tar.gz" | sha256sum -c - \ | ||
&& export ERL_TOP="/usr/src/otp_src_${OTP_VERSION%%@*}" \ | ||
&& mkdir -vp $ERL_TOP \ | ||
&& tar -xzf otp-src.tar.gz -C $ERL_TOP --strip-components=1 \ | ||
&& rm otp-src.tar.gz \ | ||
&& ( cd $ERL_TOP \ | ||
&& gnuArch="$(dpkg-architecture --query DEB_HOST_GNU_TYPE)" \ | ||
&& ./configure --build="$gnuArch" \ | ||
&& make -j$(nproc) \ | ||
&& make -j$(nproc) docs DOC_TARGETS=chunks \ | ||
&& make install install-docs DOC_TARGETS=chunks ) \ | ||
&& find /usr/local -name examples | xargs rm -rf | ||
|
||
CMD ["erl"] | ||
|
||
RUN set -xe \ | ||
&& REBAR3_DOWNLOAD_URL="https://github.com/erlang/rebar3/archive/${REBAR3_VERSION}.tar.gz" \ | ||
&& REBAR3_DOWNLOAD_SHA256="4c7f33a342bcab498f9bf53cc0ee5b698d9598b8fa9ef6a14bcdf44d21945c27" \ | ||
&& mkdir -p /usr/src/rebar3-src \ | ||
&& curl -fSL -o rebar3-src.tar.gz "$REBAR3_DOWNLOAD_URL" \ | ||
&& echo "$REBAR3_DOWNLOAD_SHA256 rebar3-src.tar.gz" | sha256sum -c - \ | ||
&& tar -xzf 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/ \ | ||
&& rm -rf /usr/src/rebar3-src | ||
RUN mkdir -p /OTP/subdir | ||
RUN wget -nv "https://github.com/erlang/otp/archive/OTP-26.2.3.tar.gz" && tar -zxf "OTP-26.2.3.tar.gz" -C /OTP/subdir --strip-components=1 | ||
WORKDIR /OTP/subdir | ||
RUN ./otp_build autoconf | ||
RUN ./configure --with-ssl | ||
RUN make -j$(getconf _NPROCESSORS_ONLN) | ||
RUN make -j$(getconf _NPROCESSORS_ONLN) install | ||
RUN find /usr/local -regex '/usr/local/lib/erlang/\(lib/\|erts-\).*/\(man\|obj\|c_src\|emacs\|info\|examples\)' | xargs rm -rf | ||
RUN find /usr/local -name src | xargs -r find | grep -v '\.hrl$' | xargs rm -v || true | ||
RUN find /usr/local -name src | xargs -r find | xargs rmdir -vp || true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.