Skip to content

Commit ae6a264

Browse files
committed
updated protos
1 parent ec43930 commit ae6a264

File tree

710 files changed

+17029
-22377
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

710 files changed

+17029
-22377
lines changed

.gitmodules

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[submodule "ydb-api-protos"]
2+
path = ydb-api-protos
3+
url = https://github.com/ydb-platform/ydb-api-protos.git

Makefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
protobuf:
2+
docker build -f gen-protobuf.Dockerfile . -t ydb-php-sdk-proto-generator
3+
docker run --rm -it -v ${PWD}:${PWD} -w ${PWD} ydb-php-sdk-proto-generator protoc -I./ydb-api-protos -I./ydb-api-protos/protos -I./ydb-api-protos/protos/annotations -I/usr/include --php_out=./protos --grpc_out=./protos --plugin=protoc-gen-grpc=/usr/local/bin/grpc_php_plugin ./ydb-api-protos/*.proto ./ydb-api-protos/protos/*.proto ./ydb-api-protos/protos/annotations/*.proto

gen-protobuf.Dockerfile

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
FROM thecodingmachine/php:8.0-v4-cli
2+
3+
ENV PHP_EXTENSION_GRPC=1
4+
ENV PHP_EXTENSION_BCMATH=1
5+
6+
USER root:root
7+
8+
RUN wget -O /tmp/z.$$ https://github.com/protocolbuffers/protobuf/releases/download/v22.0/protoc-22.0-linux-x86_64.zip \
9+
&& unzip -d /usr/local /tmp/z.$$ bin/protoc \
10+
&& unzip -d /usr /tmp/z.$$ include/google/protobuf/*.proto \
11+
&& rm /tmp/z.$$
12+
13+
RUN chmod a+x /usr/local/bin/protoc
14+
15+
16+
# Copying a compiled version of grpc_php_plugin
17+
18+
COPY php_plugin/grpc_php_plugin /usr/local/bin/grpc_php_plugin
19+
20+
RUN chmod a+x /usr/local/bin/grpc_php_plugin
21+
22+
# [ OR ]
23+
24+
# Building grpc_php_plugin from sources
25+
26+
# RUN sudo apt update
27+
# RUN sudo apt install -y build-essential cmake pkg-config libsystemd-dev
28+
29+
# RUN mkdir -p /opt/grpc && cd /opt/grpc \
30+
# && git clone -b v1.52.1 https://github.com/grpc/grpc grpc-1.25.1 \
31+
# && cd grpc-1.25.1 \
32+
# && git submodule update --init \
33+
# && mkdir -p cmake/build \
34+
# && cd cmake/build \
35+
# && cmake ../.. \
36+
# && make grpc_php_plugin \
37+
# && cp grpc_php_plugin /usr/local/bin/grpc_php_plugin
38+

php_plugin/grpc_php_plugin

4.93 MB
Binary file not shown.
Binary file not shown.

protos/GPBMetadata/Kikimr/PBPublic/Api/Protos/Validation/Validation.php

Lines changed: 0 additions & 24 deletions
This file was deleted.

protos/GPBMetadata/Kikimr/PBPublic/Api/Protos/YdbClickhouseInternal.php

Lines changed: 0 additions & 107 deletions
This file was deleted.
Binary file not shown.
Binary file not shown.
Binary file not shown.

0 commit comments

Comments
 (0)