ClickHouse/docker/bare/prepare

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

24 lines
625 B
Plaintext
Raw Permalink Normal View History

#!/bin/bash
set -e
SRC_DIR=../..
BUILD_DIR=${SRC_DIR}/build
2020-07-03 22:52:19 +00:00
# BTW, .so files are acceptable from any Linux distribution for the last 12 years (at least).
2021-09-22 00:22:57 +00:00
# See https://presentations.clickhouse.com/cpp_russia_2020/ for the details.
2020-07-03 22:52:15 +00:00
mkdir root
pushd root
mkdir lib lib64 etc tmp root
cp ${BUILD_DIR}/programs/clickhouse .
cp /lib/x86_64-linux-gnu/{libc.so.6,libdl.so.2,libm.so.6,libpthread.so.0,librt.so.1,libnss_dns.so.2,libresolv.so.2} lib
cp /lib64/ld-linux-x86-64.so.2 lib64
cp /etc/resolv.conf ./etc
strip clickhouse
# This is needed for chroot but not needed for Docker:
# mkdir proc
# sudo mount --bind /proc proc