mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-25 00:52:02 +00:00
10 lines
399 B
Bash
Executable File
10 lines
399 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -e -x
|
|
|
|
mkdir -p /var/cache/ccache
|
|
DOCKER_ENV+=" --mount=type=bind,source=/var/cache/ccache,destination=/ccache -e CCACHE_DIR=/ccache "
|
|
|
|
PROJECT_ROOT="$(cd "$(dirname "$0")/.."; pwd -P)"
|
|
[[ -n "$CONFIG" ]] && DOCKER_ENV="--env=CONFIG"
|
|
docker run -t --network=host --mount=type=bind,source=${PROJECT_ROOT},destination=/ClickHouse --workdir=/ClickHouse/ci $DOCKER_ENV "$1" "$2"
|