-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
added protobufs instructions to Dockerfile #109
base: develop
Are you sure you want to change the base?
Conversation
django/entrypoint.sh
Outdated
|
||
# Compile protobuf files | ||
echo "Compiling protobuf files..." | ||
protoc --python_out=generated ./protos/*.proto |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe it's best to have ./protos/**/*.proto
instead of just ./protos/*.proto
.
With the **
we are able to better support a folder structure of proto files (for example, if we wanted to separate different .proto files in different folders.
django/entrypoint_prod.sh
Outdated
@@ -7,6 +7,11 @@ until PGPASSWORD="${POSTGRES_PASSWORD}" psql -h "${POSTGRES_HOST}" -U "${POSTGRE | |||
done | |||
>&2 echo "PostgreSQL is up - executing command" | |||
|
|||
# Compile protobuf files | |||
echo "Compiling protobuf files..." | |||
protoc --python_out=generated -I=./protos/ ./protos/*.proto |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
here as well
No description provided.