fix: remove container after generating protoc (#1306)

Add '--rm' option to docker command, so container will be removed
automatically. Otherwise we'll have many exited but not removed
containers as we run 'make protoc'.

Signed-off-by: Eryu Guan <eguan@linux.alibaba.com>
This commit is contained in:
Eryu Guan 2022-05-16 14:10:00 +08:00 committed by Gaius
parent faa5e4e465
commit ce718920c6
No known key found for this signature in database
GPG Key ID: 8B4E5D1290FA2FFB
1 changed files with 1 additions and 1 deletions

View File

@ -9,7 +9,7 @@ proto_modules="base cdnsystem dfdaemon manager scheduler"
echo "generate protos..."
for module in ${proto_modules}; do
if docker run -v $PWD:/defs ${PROTOC_ALL_IMAGE} \
if docker run --rm -v $PWD:/defs ${PROTOC_ALL_IMAGE} \
-d ${PROTO_PATH}/$module -i . \
-l ${LANGUAGE} -o . \
--go-source-relative \