File tree 1 file changed +7
-2
lines changed
1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change 2
2
set -e
3
3
4
4
# Do NOT use this directly, use jinaai/protogen image
5
- # use jinaai/protogen:3.21 in order to use compiler version == 21 (creates pb/docarray_pb2.py)
5
+ # use jinaai/protogen:v21 in order to use compiler version == 21 (creates pb/docarray_pb2.py)
6
6
# and use jinaai/protogen:latest to use compiler version <= 20 (creates pb2/docarray_pb2.py)
7
- # make sure to use jinaai/protogen:3.21 to avoid overriting the module
7
+ # make sure to use jinaai/protogen:v21 to avoid overriting the module
8
8
#
9
9
# current dir: jina root (the one with README.md)
10
10
# run the following in bash:
11
11
# docker run -v $(pwd)/jina/proto:/jina/proto jinaai/protogen
12
12
# finally, set back owner of the generated files using: sudo chown -R $(id -u ${USER}):$(id -g ${USER}) ./jina/proto
13
13
14
+ # The protogen docker image can also be build locally using:
15
+ # docker build -f Dockerfiles/protogen.Dockerfile -t jinaai/protogen:local .
16
+ # or
17
+ # docker build -f Dockerfiles/protogen-3.21.Dockerfile -t jinaai/protogen-3.21:local .
18
+
14
19
SRC_DIR=./
15
20
MODULE=jina
16
21
SRC_NAME=" ${MODULE} .proto"
You can’t perform that action at this time.
0 commit comments