Skip to content

Commit

Permalink
feat: mount secrets path in container on Cloud Run
Browse files Browse the repository at this point in the history
  • Loading branch information
ngurenyaga committed Jul 14, 2021
1 parent 45d36dc commit cb552a6
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 24 deletions.
1 change: 0 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ ENV PYTHONDONTWRITEBYTECODE 1
ENV BUILD_ENV ${BUILD_ENVIRONMENT}
WORKDIR ${APP_HOME}


# Install required system dependencies
RUN apt-get update && apt-get install --no-install-recommends -y \
# psycopg2 dependencies
Expand Down
22 changes: 0 additions & 22 deletions bin/post_compile

This file was deleted.

6 changes: 5 additions & 1 deletion cloudbuild.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,11 @@ steps:
'--allow-unauthenticated',
'--add-cloudsql-instances', '${_CLOUDSQL_INSTANCE_CONNECTION_NAME}',
'--set-env-vars', 'GOOGLE_CLOUD_PROJECT=$PROJECT_ID,SETTINGS_NAME=mle_django_settings,DJANGO_SETTINGS_MODULE=config.settings.production',
'--min-instances', '1'
'--min-instances', '1',
'--max-instances', '4',
'--memory', '256M',
'--cpu', '1',
'-update-secrets', '/app/.env=mle_django_settings:latest'
]

images:
Expand Down

0 comments on commit cb552a6

Please sign in to comment.