summaryrefslogtreecommitdiffstats
path: root/.github/docker/files/initialize_local_ydb
blob: 5d3b5943c3298372acd7676594875476c27e1bba (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/bash
set -x

INIT_YDB_SCRIPT=/init_ydb

export YDB_GRPC_ENABLE_TLS="true"
export GRPC_TLS_PORT=${GRPC_TLS_PORT:-2135}
export GRPC_PORT=${GRPC_PORT:-2136}
export YDB_GRPC_TLS_DATA_PATH="/ydb_certs"
export YDB_KAFKA_PROXY_PORT=${YDB_KAFKA_PROXY_PORT:-9092}

# Start local_ydb tool. Pass additional arguments for local_ydb
/local_ydb deploy --ydb-working-dir /ydb_data --ydb-binary-path /ydbd --fixed-ports --dont-use-log-files "$@";

if [ -f "$INIT_YDB_SCRIPT" ]; then
  sh "$INIT_YDB_SCRIPT";
fi

tail -f /dev/null