Skip to content

aquariusmaster/gcp-function

Repository files navigation

GCP functions

Links:

Run server locally

./gradlew runServer --stacktrace

Deploy to GCP

Deploy from source:

gcloud functions deploy health-function \
    --entry-point com.anderb.gcp.functions.HealthHttp \
    --runtime java11 \
    --trigger-http \
    --memory 512MB \
    --allow-unauthenticated

Deploy from a JAR:

gcloud functions deploy health-function \
    --entry-point=com.anderb.gcp.functions.HealthHttp \
    --runtime=java11 \
    --trigger-http \
    --source=build/libs \
    --allow-unauthenticated