Skip to content

Commit 831ce55

Browse files
authored
docs: update docker image tags and info to build locally (jina-ai#5335)
1 parent 3e74a75 commit 831ce55

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

jina/proto/build-proto.sh

+7-2
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,20 @@
22
set -e
33

44
# 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)
66
# 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
88
#
99
# current dir: jina root (the one with README.md)
1010
# run the following in bash:
1111
# docker run -v $(pwd)/jina/proto:/jina/proto jinaai/protogen
1212
# finally, set back owner of the generated files using: sudo chown -R $(id -u ${USER}):$(id -g ${USER}) ./jina/proto
1313

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+
1419
SRC_DIR=./
1520
MODULE=jina
1621
SRC_NAME="${MODULE}.proto"

0 commit comments

Comments
 (0)