build: make packages with static binary inside
This patch adds facility to make DEB and RPM packages with a statically
compiled Tarantool binary inside. The build is performed in a Docker
container, using PackPack docker image (centos-7) and CPack.
The packpack/packpack:centos-7 image has all the necessary dependencies
for building Tarantool and quite old glibc 2.17 which theoretically
provides compatibility of the created packages with any distro where
glibc >= 2.17.
The build can be run with the command below:
$ VERSION=3.0.0 ./static-build/make_packages.sh
In the `static_build` directory, there will be the following packages:
tarantool_3.0.0-1_amd64.deb
tarantool-dev_3.0.0-1_amd64.deb
tarantool-3.0.0-1.x86_64.rpm
tarantool-devel-3.0.0-1.x86_64.rpm
`tarantool_3.0.0-1_amd64.deb`, `tarantool-3.0.0-1.x86_64.rpm` are
packages with the Tarantool server binary inside.
`tarantool-dev_3.0.0-1_amd64.deb`, `tarantool-devel-3.0.0-1.x86_64.rpm`
are packages with the Tarantool server development files inside.
NO_DOC=build
NO_TEST=build
Co-authored-by:
Yaroslav Lobankov <y.lobankov@tarantool.org>
Showing
- changelogs/unreleased/add-static-building-packages.md 3 additions, 0 deletionschangelogs/unreleased/add-static-building-packages.md
- static-build/CMakeLists.txt 1 addition, 0 deletionsstatic-build/CMakeLists.txt
- static-build/cmake/MakePackages.cmake 95 additions, 0 deletionsstatic-build/cmake/MakePackages.cmake
- static-build/make_packages.sh 54 additions, 0 deletionsstatic-build/make_packages.sh
static-build/cmake/MakePackages.cmake
0 → 100644
static-build/make_packages.sh
0 → 100755
Please register or sign in to comment