Skip to content

GitSumito/cloudfunctions-imagemagick-on-gcp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

export YOUR_INPUT_BUCKET_NAME=tsukada-input
gsutil mb gs://$YOUR_INPUT_BUCKET_NAME

export YOUR_OUTPUT_BUCKET_NAME=tsukada-output
gsutil mb gs://$YOUR_OUTPUT_BUCKET_NAME


mkdir project
cd project
git clone https://github.com/GoogleCloudPlatform/golang-samples.git
cd golang-samples/functions/imagemagick/

gcloud functions deploy BlurOffensiveImages --runtime go111 --trigger-bucket $YOUR_INPUT_BUCKET_NAME --set-env-vars BLURRED_BUCKET_NAME=$YOUR_OUTPUT_BUCKET_NAME

gsutil cp *.png gs://$YOUR_INPUT_BUCKET_NAME

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages