Import script for building Linux binaries

The tools/make-binaries script creates self-contained OTP releases for
Linux/x64 and Linux/arm64 systems.  All optional ejabberd features are
supported.  Erlang/OTP, Elixir, and all dependencies are downloaded and
built from source (using crosstool-NG).  The generated binaries depend
on glibc 2.17 or later, all other external libraries are linked
statically.

The script should work on any non-ancient Linux/x64 system and requires
just a few common development tools (to bootstrap crosstool-NG).

The release is installed by creating an "ejabberd" user, extracting the
archive into /opt, and moving the systemd unit (or init script) into
place.
This commit is contained in:
Holger Weiss 2022-02-22 00:10:22 +01:00 committed by badlop
parent 2739a52e0f
commit 853be230a8
2 changed files with 1446 additions and 0 deletions

2
.gitignore vendored
View File

@ -37,3 +37,5 @@
/rebar.lock
/log/
Mnesia.nonode@nohost/
# Binaries created with tools/make-binaries:
/ejabberd-*.tar.gz

1444
tools/make-binaries Executable file

File diff suppressed because it is too large Load Diff