A Docker image for running very simple Bash tasks on GCP CloudRun service.
Please contact me anytime if you have a problem or request! My information is posted at the bottom of this document.
You do not need to install !
First, start the server process.
docker run --rm -p 8080:8080 genzouw/bash_on_cloud_run date
Then make a request to the server.
curl http://localhost:8080
The specified date command will be executed.
Deploy this to CloudRun.
GCP_PROJECT_ID="YOUR_PROJECT_ID"
GCP_RUN_NAME="YOUR_RUN_NAME"
gcloud \
builds submit \
--project "${GCP_PROJECT_ID}" \
--tag "gcr.io/${GCP_PROJECT_ID}/${GCP_RUN_NAME}"
gcloud \
run deploy "${GCP_RUN_NAME}" \
--project "${GCP_PROJECT_ID}" \
--image "gcr.io/${GCP_PROJECT_ID}/${GCP_RUN_NAME}" \
--max-instances 1 \
--cpu 1 \
--memory 128Mi \
--platform managed \
--no-allow-unauthenticated \
;
| date | version | note |
|---|---|---|
| 2020-12-25 | 0.1 | first release. |
This software is released under the MIT License, see LICENSE.
Got a question ?
File a Github issue, send an email to [email protected] or tweet to @genzouw on Twitter.
Content type
Image
Digest
Size
3.4 MB
Last updated
almost 6 years ago
docker pull genzouw/bash_on_cloud_run