An HTTP triggered Python Cloud Run template.
Install dependencies:
pip3 install -r requirements.txt
Run the function:
python3 main.py
...
* Running on http://192.168.1.74:8080/ (Press CTRL+C to quit)
...
Inside the scripts folder, run test_local.sh to test locally:
./test_local.sh
Hello World!
Run setup.sh to enable required services:
./setup.sh
Run deploy.sh to deploy to Google Cloud:
./deploy.sh
Run test_cloud.sh to test the service in Google Cloud:
./test_cloud.sh
When you're done, you can cleanup created resources:
./cleanup.sh