Hello All,
I am looking for solution where I am. Running my python code container inside cloud run job and I have given the container command and argument as below
container command - python
container argument - main.py
While creating docker image I also restricted entrypoint script to run only this command and it is tested using docker run command and working
but when I change the container argument in cloud run job its override is there anyway to restrict container argument not editable or not override with any different argument other tha. Main.py
Thanks in advance
Hi @FalconSid,
Welcome to Google Cloud Community!
Cloud Run doesn't directly offer a way to prevent container command and argument edits, here are strategies to effectively achieve this goal:
Dockerfile Entrypoint:
Cloud Run Job Configuration:
Security Measures:
Alternative Solutions:
Remember:
By implementing these approaches, you can effectively restrict edits and ensure consistent execution of your Python code in Cloud Run jobs.
I have configure the docker image with entryoint still cloud run job overrides this value, if yiu any example docker file how to restrict it via Docker image that would be very helpful.
thanks