aboutsummaryrefslogtreecommitdiffstats
path: root/.github/docker/files/initialize_local_ydb
blob: c77725ce4f4f466a8f62a671b679e15e62f05484 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/bash

INIT_YDB_SCRIPT=/init_ydb

export YDB_LOCAL_SURVIVE_RESTART="true"
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"

/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