Sign inSign up

genzouw/bash_on_cloud_run

By genzouw

•Updated almost 6 years ago

bash_on_cloud_run

Image
0

615

genzouw/bash_on_cloud_run repository overview

⁠Bash on CloudRun

Docker Cloud build status Docker Pulls Docker Cloud Automated build

dockeri.co

⁠Description

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.

⁠Requirements

⁠Installation

You do not need to install !

⁠Usage

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 \
  ;

⁠Relase Note

dateversionnote
2020-12-250.1first release.

⁠License

This software is released under the MIT License, see LICENSE.

⁠Contribution

⁠Help

Got a question ?

File a Github issue⁠, send an email to [email protected]⁠ or tweet to @genzouw⁠ on Twitter.

⁠Author Information

genzouw⁠

Tag summary

Content type

Image

Digest

Size

3.4 MB

Last updated

almost 6 years ago

docker pull genzouw/bash_on_cloud_run