initialize_local_ydb 434 B

123456789101112131415161718
  1. #!/bin/bash
  2. set -x
  3. INIT_YDB_SCRIPT=/init_ydb
  4. export YDB_LOCAL_SURVIVE_RESTART="true"
  5. export YDB_GRPC_ENABLE_TLS="true"
  6. export GRPC_TLS_PORT=${GRPC_TLS_PORT:-2135}
  7. export GRPC_PORT=${GRPC_PORT:-2136}
  8. export YDB_GRPC_TLS_DATA_PATH="/ydb_certs"
  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