crmint
crmint copied to clipboard
Refactor: Improve deployment and update dependencies
This commit introduces several improvements to the deployment process and updates various components of your application.
Key changes include:
-
Terraform:
- Updated Google provider versions to 5.0.0.
- Implemented liveness probes for
controllerandjobsCloud Run services by adding a health check endpoint to the controller and configuring the probes in Terraform.
-
Docker:
- Optimized backend Dockerfiles (
controller.Dockerfile,jobs.Dockerfile) by switching to slimmer Python base images (python:3.9-slim-bullseye), removing manual Python installation, and running as a non-root user. - Optimized frontend Dockerfile (
frontend/Dockerfile) by usingnpm cifor more reliable dependency installation and running nginx as a non-root user. - Optimized CLI Dockerfile (
cli/Dockerfile) by adding non-root user execution. - Replaced deprecated
MAINTAINERdirectives withLABEL.
- Optimized backend Dockerfiles (
-
Python Dependencies:
- Updated Flask to
~=2.2.0incommon/requirements.in. - Updated
mysql-connector-pythonto~=8.0.33inrequirements-controller.in. - Standardized and updated
google-api-coreto~=2.15.0andgoogleapis-common-protosto~=1.61.0acrossrequirements-controller.inandrequirements-jobs.in. - Removed restrictive Werkzeug version pin to allow Flask to manage its version.
- Updated Flask to
These changes aim to enhance the reliability, security, and maintainability of your CRMint application.
Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).
View this failed invocation of the CLA check for more information.
For the most up to date status, view the checks section at the bottom of the pull request.