The link ๐ to the @github repository: github.com/tosun-si/tea...
Project showing a complete use case with a Cloud Run Job written with a Python module and multiple files. - tosun-si/teams-league-cloudrun-job
๐๐ป โ Cloud Build is used as Serverless CI CD tool and the jobs are: โก โ Build and publish the Docker image to Artifact Registry โก โ Deploy the scheduler and the Cloud Run job with ๐๐๐๐ ๐ฆ๐ commands โก โ Deploy the scheduler and the Cloud Run job with ๐๐๐ฃ๐ฃ๐๐๐ ๐ฃ๐
โ ๐ We use a ๐๐จ๐๐ค๐๐ซ ๐ณ container and image, containing the Python application and module โ ๐ We create a ๐๐๐ซ๐ฏ๐๐ซ๐ฅ๐๐ฌ๐ฌ cron job with ๐๐ฅ๐จ๐ฎ๐ ๐๐๐ก๐๐๐ฎ๐ฅ๐๐ซ (the scheduler will trigger the job) โ ๐ We create the ๐๐ฅ๐จ๐ฎ๐ ๐๐ฎ๐ง ๐ฃ๐จ๐
๐๐ป ๐ฌ The details of this ๐ซ๐๐๐ฅ ๐ฐ๐จ๐ซ๐ฅ๐ ๐ฎ๐ฌ๐ ๐๐๐ฌ๐ are: โ ๐ Football related use case โฝ โ ๐ We use a Python module and the logic separated in several files (๐ฌ๐๐ฉ๐๐ซ๐๐ญ๐ข๐จ๐ง ๐จ๐ ๐๐จ๐ง๐๐๐ซ๐ง)
๐ฌ ๐ซ A ๐ฃ๐จ๐ is only a traditional program, without the need to have a Web Server and aren't invoked by HTTP requests. Moreover a job is more adapted for long-running jobs, up to 24h.
๐ฌ ๐ซ A ๐ฌ๐๐ซ๐ฏ๐ข๐๐ is limited to one hour, needs to be exposed in a Web Server in the container and invoked by HTTP requests.
โ โญ I wrote a few months ago, a real world use case to deploy a #Python#Module#CloudRun#job#Serverless#GoogleCloudyoutu.be/b6eVoGMPQZc ๐งต
This video shows how to write a Python module and deploy it in a Cloud Run job. Cloud Run jobs are interesting to execute jobs without the need to have a Web Server for the application, compared to Cloud Run Services. Cloud Run jobs can also be adapted for long-running jobs, up to 24h. In the video, we create a scheduler that launches the Cloud Run job. The deployment is done with gcloud and Terraform. #googlecloud #cloudrun #job #serverless #python #module โธ Github : https://github.com/tosun-si/teams-league-cloudrun-job โธ Slides : https://docs.google.com/presentation/d/1dUCiSHEOghgk6jWe3IJfrkzUpY4ObyAv/edit?usp=sharing&ouid=107222582194830665741&rtpof=true&sd=true โธ LinkedIn : https://www.linkedin.com/posts/mazlum-tosun-900b1812_cloud-run-job-with-a-python-module-activity-7221031243679756288-tPA5?utm_source=share&utm_medium=member_desktop โธ Twitter : https://x.com/MazlumTosun3/status/1815268972628938927 Feel free to subscribe to the channel and click on the bell ๐ to receive notifications for the next videos. ๐ฒ Follow me on social networks : โธ Articles : https://medium.com/@mazlum.tosun โธ X : https://twitter.com/MazlumTosun3 โธ LinkedIn : https://www.linkedin.com/in/mazlum-tosun-900b1812/ โธ WhatsApp : https://whatsapp.com/channel/0029VaCjGlrId7nGBZZPJQ1z
Le lien vers le repo ๐ GitHub : github.com/tosun-si/tea...
Project showing a complete use case with a Cloud Run Job written with a Python module and multiple files. - tosun-si/teams-league-cloudrun-job
โ Cloud Build est utilisรฉ comme outil de CI CD Serverless : โ Build and publication de lโimage Docker dans Artifact Registry โ Dรฉployer le scheduler et le job Cloud Run avec des commandes ๐๐๐๐ ๐ฆ๐ โ Dรฉployer le scheduler et le job Cloud Run avec ๐๐๐ฃ๐ฃ๐๐๐ ๐ฃ๐