crmint icon indicating copy to clipboard operation
crmint copied to clipboard

Refactor: Improve deployment and update dependencies

Open taigeeoff opened this issue 6 months ago • 1 comments

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 controller and jobs Cloud 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 using npm ci for 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 MAINTAINER directives with LABEL.
  • Python Dependencies:

    • Updated Flask to ~=2.2.0 in common/requirements.in.
    • Updated mysql-connector-python to ~=8.0.33 in requirements-controller.in.
    • Standardized and updated google-api-core to ~=2.15.0 and googleapis-common-protos to ~=1.61.0 across requirements-controller.in and requirements-jobs.in.
    • Removed restrictive Werkzeug version pin to allow Flask to manage its version.

These changes aim to enhance the reliability, security, and maintainability of your CRMint application.

taigeeoff avatar May 19 '25 19:05 taigeeoff

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.

google-cla[bot] avatar May 19 '25 19:05 google-cla[bot]