initialize_local_ydb 463 B

123456789101112131415161718
  1. #!/bin/bash
  2. set -x
  3. INIT_YDB_SCRIPT=/init_ydb
  4. export YDB_GRPC_ENABLE_TLS="true"
  5. export GRPC_TLS_PORT=${GRPC_TLS_PORT:-2135}
  6. export GRPC_PORT=${GRPC_PORT:-2136}
  7. export YDB_GRPC_TLS_DATA_PATH="/ydb_certs"
  8. # Start local_ydb tool. Pass additional arguments for local_ydb
  9. /local_ydb deploy --ydb-working-dir /ydb_data --ydb-binary-path /ydbd --fixed-ports --dont-use-log-files "$@";
  10. if [ -f "$INIT_YDB_SCRIPT" ]; then
  11. sh "$INIT_YDB_SCRIPT";
  12. fi
  13. tail -f /dev/null