BLUE
Profile banner
MT
Mazlum Tosun ๐Ÿ’™ #GCP
@mazlumtosun.bsky.social
๐Ÿ CoFounder Head of Cloud GroupBees #Freelance โ˜๏ธ #GCP Evangelist ๐Ÿš€ #data #FP #IAC #Devops #Serverless ๐ŸŽฌ Youtube www.youtube.com/@GCPLearning-ce9bg
63 followers50 following206 posts
MTmazlumtosun.bsky.social

๐Ÿ‘‰๐Ÿป โš’ 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 ๐•‹๐•–๐•ฃ๐•ฃ๐•’๐•—๐• ๐•ฃ๐•ž

0
MTmazlumtosun.bsky.social

โœ… ๐ŸŒˆ 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 ๐‚๐ฅ๐จ๐ฎ๐ ๐‘๐ฎ๐ง ๐ฃ๐จ๐›

1
MTmazlumtosun.bsky.social

๐Ÿ‘‰๐Ÿป ๐ŸŒฌ The details of this ๐ซ๐ž๐š๐ฅ ๐ฐ๐จ๐ซ๐ฅ๐ ๐ฎ๐ฌ๐ž ๐œ๐š๐ฌ๐ž are: โœ… ๐ŸŒˆ Football related use case โšฝ โœ… ๐ŸŒˆ We use a Python module and the logic separated in several files (๐ฌ๐ž๐ฉ๐š๐ซ๐š๐ญ๐ข๐จ๐ง ๐จ๐Ÿ ๐œ๐จ๐ง๐œ๐ž๐ซ๐ง)

1
MTmazlumtosun.bsky.social

๐Ÿ’ฌ ๐Ÿ’ซ 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.

1
MTmazlumtosun.bsky.social

๐Ÿ’ฌ ๐Ÿ’ซ A ๐ฌ๐ž๐ซ๐ฏ๐ข๐œ๐ž is limited to one hour, needs to be exposed in a Web Server in the container and invoked by HTTP requests.

1
MTmazlumtosun.bsky.social

โ˜„ โญ I wrote a few months ago, a real world use case to deploy a #Python#Module#CloudRun#job#Serverless#GoogleCloudyoutu.be/b6eVoGMPQZc ๐Ÿงต

Cloud Run job with a Python module
Cloud Run job with a Python module

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

2
MTmazlumtosun.bsky.social

Le schรฉma du use case :

0
MTmazlumtosun.bsky.social

โš’ 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 ๐•‹๐•–๐•ฃ๐•ฃ๐•’๐•—๐• ๐•ฃ๐•ž

0
Profile banner
MT
Mazlum Tosun ๐Ÿ’™ #GCP
@mazlumtosun.bsky.social
๐Ÿ CoFounder Head of Cloud GroupBees #Freelance โ˜๏ธ #GCP Evangelist ๐Ÿš€ #data #FP #IAC #Devops #Serverless ๐ŸŽฌ Youtube www.youtube.com/@GCPLearning-ce9bg
63 followers50 following206 posts