Skip to content

Commit e6c11f7

Browse files
committed
#6: Use the latest ydbplatform/local-ydb image for YOJ integration tests
1 parent 6aaa1a3 commit e6c11f7

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

repository-ydb-v2/src/test/script/run-ydb.sh

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,20 +10,13 @@ set -e
1010
# - Explicit row limit = 10_000
1111
# - Auto kill container and data after you press [Enter]
1212
# - No volumes (= no persistence)
13-
# - UNIQUE INDEX constraint support forcefully enabled: it's not enabled by default, at least not in yandex-docker-local-ydb@sha256:f39237e6bab018c2635af765faa893061fc359892e53f7b51d40ab503b90846f
14-
# @see container entrypoint: https://github.com/ydb-platform/ydb/blob/d7773b7d314987d7563ba246476b506f60ef6c68/.github/docker/files/initialize_local_ydb#L12
15-
# @see calls local_ydb script: https://github.com/ydb-platform/ydb/blob/d7773b7d314987d7563ba246476b506f60ef6c68/ydb/public/tools/local_ydb/__main__.py#L99
16-
# @see EnableUniqConstraint in https://github.com/ydb-platform/ydb/blob/d7773b7d314987d7563ba246476b506f60ef6c68/ydb/core/protos/feature_flags.proto, needs to be in lower_snake_case to be passed as argument to /local_ydb
17-
# TODO(nvamelichev): Remove all these shenanigans when yandex-docker-local-ydb:latest will enable UNIQUE INDEXes by default
1813
docker run -d -it --rm --name ydb-local -h localhost \
1914
--platform linux/amd64 \
2015
-p 2135:2135 -p 2136:2136 -p 8765:8765 \
2116
-e GRPC_TLS_PORT=2136 -e GRPC_PORT=2135 -e MON_PORT=8765 \
2217
-e YDB_USE_IN_MEMORY_PDISKS=true \
2318
-e YDB_KQP_RESULT_ROWS_LIMIT=10000 \
24-
--entrypoint=/bin/sh \
25-
cr.yandex/yc/yandex-docker-local-ydb@sha256:f39237e6bab018c2635af765faa893061fc359892e53f7b51d40ab503b90846f \
26-
-c '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 --enable-feature-flag enable_uniq_constraint ; tail -f /dev/null' \
19+
docker.io/ydbplatform/local-ydb@sha256:79b36e76ecc8bc64e208e8949c1710c50d84cf718b575feba0522dba27b377cd \
2720
&
2821

2922
read -r -p "Press [Enter] key to exit..."

0 commit comments

Comments
 (0)