From 5d8219a8f3175607a9132a7505863348be23511b Mon Sep 17 00:00:00 2001 From: Tihomir Jovicic Date: Wed, 9 Jun 2021 12:01:27 +0200 Subject: [PATCH] Add Cloud Run support Signed-off-by: Tihomir Jovicic --- docs/programming/guides/cloudrun.md | 43 +++++++++++++++ docs/reference/universe/gcp/cloudrun.md | 25 +++++++++ examples/README.md | 46 +++++++++++++++- .../.dagger/env/cloud-run-app/.gitignore | 2 + .../.dagger/env/cloud-run-app/plan/main.cue | 26 ++++++++++ .../.dagger/env/cloud-run-app/values.yaml | 30 +++++++++++ .../go-http-server/.dockerignore | 13 +++++ .../cloud-run-app/go-http-server/Dockerfile | 33 ++++++++++++ examples/cloud-run-app/go-http-server/go.mod | 3 ++ examples/cloud-run-app/go-http-server/main.go | 35 +++++++++++++ examples/cloud-run-app/main.cue | 26 ++++++++++ stdlib/gcp/cloudrun/cloudrun.cue | 52 +++++++++++++++++++ tests/README.md | 2 +- .../cloudrun/.dagger/env/default/.gitignore | 2 + .../.dagger/env/default/plan/cloudrun.cue | 15 ++++++ .../cloudrun/.dagger/env/default/values.yaml | 28 ++++++++++ 16 files changed, 379 insertions(+), 2 deletions(-) create mode 100644 docs/programming/guides/cloudrun.md create mode 100644 docs/reference/universe/gcp/cloudrun.md create mode 100644 examples/cloud-run-app/.dagger/env/cloud-run-app/.gitignore create mode 100644 examples/cloud-run-app/.dagger/env/cloud-run-app/plan/main.cue create mode 100644 examples/cloud-run-app/.dagger/env/cloud-run-app/values.yaml create mode 100644 examples/cloud-run-app/go-http-server/.dockerignore create mode 100644 examples/cloud-run-app/go-http-server/Dockerfile create mode 100644 examples/cloud-run-app/go-http-server/go.mod create mode 100644 examples/cloud-run-app/go-http-server/main.go create mode 100644 examples/cloud-run-app/main.cue create mode 100644 stdlib/gcp/cloudrun/cloudrun.cue create mode 100644 tests/stdlib/gcp/cloudrun/.dagger/env/default/.gitignore create mode 100644 tests/stdlib/gcp/cloudrun/.dagger/env/default/plan/cloudrun.cue create mode 100644 tests/stdlib/gcp/cloudrun/.dagger/env/default/values.yaml diff --git a/docs/programming/guides/cloudrun.md b/docs/programming/guides/cloudrun.md new file mode 100644 index 00000000..9a1ef73b --- /dev/null +++ b/docs/programming/guides/cloudrun.md @@ -0,0 +1,43 @@ +# Deploy an application to GCP Cloud Run + +This example shows how to deploy an application to GCP Cloud Run. Read the deployment [plan](https://github.com/dagger/dagger/tree/main/examples/cloud-run-app) + +NOTE: this example requires an EKS cluster to allow authentication with your AWS credentials; but can easily be adapter to deploy to any Kubernetes cluster. + +Components: + +- [Cloud Run](https://cloud.google.com/run) + +How to run: + +1. Initialize a new workspace + +```sh +cd ./cloud-run-app +dagger init +``` + +2. Create a new environment + +```sh +dagger new cloud-run-app +cp *.cue ./.dagger/env/cloud-run-app/plan/ +``` + +3. Configure the Cloud Run service + +```sh +dagger input text serviceName MY_APP_NAME +dagger input text region MY_GCP_REGION +dagger input text image MY_GCR_IMAGE_NAME + +dagger input text gcpConfig.project MY_GCP_PROJECT +dagger input secret gcpConfig.serviceKey -f MY_GCP_SERVICE_KEY_FILE + +``` + +4. Deploy! + +```sh +dagger up +``` diff --git a/docs/reference/universe/gcp/cloudrun.md b/docs/reference/universe/gcp/cloudrun.md new file mode 100644 index 00000000..aa9e2121 --- /dev/null +++ b/docs/reference/universe/gcp/cloudrun.md @@ -0,0 +1,25 @@ +--- +sidebar_label: cloudrun +--- + +# dagger.io/gcp/cloudrun + +## #Deploy + +Deploy deploys a Cloud Run service based on provided GCR image + +### #Deploy Inputs + +| Name | Type | Description | +| ------------- |:-------------: |:-------------: | +|*config.region* | `string` |GCP region | +|*config.project* | `string` |GCP project | +|*config.serviceKey* | `dagger.#Secret` |GCP service key | +|*serviceName* | `string` |service name | +|*region* | `*"us-west2" \| string` |region to which deploy the service | +|*image* | `string` |GCR image ref | +|*platform* | `*"managed" \| string` |Cloud Run platform | + +### #Deploy Outputs + +_No output._ diff --git a/examples/README.md b/examples/README.md index 5de5c8b1..2fa83d9c 100644 --- a/examples/README.md +++ b/examples/README.md @@ -287,7 +287,7 @@ dagger input text cluster.clusterName MY_CLUSTER_NAME 5. Load the Helm chart ```sh -dagger input dir helmChart.chart ./kubernetes-app/testdata/mychart +dagger input dir helmChart.chart ./testdata/mychart ``` 6. Deploy! @@ -295,3 +295,47 @@ dagger input dir helmChart.chart ./kubernetes-app/testdata/mychart ```sh dagger up ``` + +## Deploy an application to GCP Cloud Run + +This example shows how to deploy an application to GCP Cloud Run. Read the deployment [plan](https://github.com/dagger/dagger/tree/main/examples/cloud-run-app) + +NOTE: this example requires an EKS cluster to allow authentication with your AWS credentials; but can easily be adapter to deploy to any Kubernetes cluster. + +Components: + +- [Cloud Run](https://cloud.google.com/run) + +How to run: + +1. Initialize a new workspace + +```sh +cd ./cloud-run-app +dagger init +``` + +2. Create a new environment + +```sh +dagger new cloud-run-app +cp *.cue ./.dagger/env/cloud-run-app/plan/ +``` + +3. Configure the Cloud Run service + +```sh +dagger input text serviceName MY_APP_NAME +dagger input text region MY_GCP_REGION +dagger input text image MY_GCR_IMAGE_NAME + +dagger input text gcpConfig.project MY_GCP_PROJECT +dagger input secret gcpConfig.serviceKey -f MY_GCP_SERVICE_KEY_FILE + +``` + +4. Deploy! + +```sh +dagger up +``` diff --git a/examples/cloud-run-app/.dagger/env/cloud-run-app/.gitignore b/examples/cloud-run-app/.dagger/env/cloud-run-app/.gitignore new file mode 100644 index 00000000..01ec19b0 --- /dev/null +++ b/examples/cloud-run-app/.dagger/env/cloud-run-app/.gitignore @@ -0,0 +1,2 @@ +# dagger state +state/** diff --git a/examples/cloud-run-app/.dagger/env/cloud-run-app/plan/main.cue b/examples/cloud-run-app/.dagger/env/cloud-run-app/plan/main.cue new file mode 100644 index 00000000..b0eece2f --- /dev/null +++ b/examples/cloud-run-app/.dagger/env/cloud-run-app/plan/main.cue @@ -0,0 +1,26 @@ +package main + +import ( + "dagger.io/gcp" + "dagger.io/gcp/cloudrun" +) + +// Cloud Run service name +serviceName: *"cloudrun-test" | string @dagger(input) + +// GCP region +region: *"us-west2" | string @dagger(input) + +// Image name +image: *"gcr.io/dagger-ci/cloudrun-test" | string @dagger(input) + +gcpConfig: gcp.#Config & { + region: region +} + +deploy: cloudrun.#Deploy & { + serviceName: serviceName + image: image + config: gcpConfig + region: region +} diff --git a/examples/cloud-run-app/.dagger/env/cloud-run-app/values.yaml b/examples/cloud-run-app/.dagger/env/cloud-run-app/values.yaml new file mode 100644 index 00000000..c25de1c8 --- /dev/null +++ b/examples/cloud-run-app/.dagger/env/cloud-run-app/values.yaml @@ -0,0 +1,30 @@ +name: cloud-run-app +inputs: + gcpConfig.project: + text: dagger-ci + gcpConfig.serviceKey: + secret: ENC[AES256_GCM,data:1+764K9v6qxPIzNU9sQ3VvTPJjMpd/HdZpRej8jIhi9OJR30+eQV/kfysnLqx28IBwVgvCeUwJb72cZHOjREdMqH6SzDcmyHZfrKL37l8QHMe9XIl5QPZyRH1Hos/W4ZQD7wlPQxWvwcDEw6fKr+JbFEC/t/sCDePIO70LrJTiClT8yJVtw0o2Va908nEKqNDxDr4/4DZoUctBeBZTMPSHohgdH+DZ34jGrne/zhKK9taxRzkIvt3da0PylzfzOaogEvnJCsvWoLlMM1jSjIwGzEDRDd8PnmSp+ZbauJXIFaHPPCowDn0W/BAngIQ2b+Cz9AOAvSMa7qk3skdVgXCadCvlpKaspXICFsC1rdRevNTP4B0T9YCTSeQfAZw9TE4R/IO9kU5USpy4oUHbnt1MKg60y5kSHbW+cpDN0oOTyfDLVKbbhMMW6ID9LtkoTVZX111vv8UVvq1ndxqmbZavY7rn5siT8X0X92m5yZqWbxeUlUd/TIVoHQeXvOPp5AIpLvdiqbK9aYFKP1jPmGYA3Q60MiLD34hch8rb2rYDZCfCaZABXD8HWTlWoQEhPeiWBgOCR+/FyhL3PkQDqIThg5J1H88+1PmhNThrV0fbYKkT8wZumosC+/MOaVqaAT9dyPE4u//Osy9dLQ0DBD34OMpEp06jYqxBiukBdGGaR71TjLAZfjChfJASsHT9PLopoO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ZhfxH2BmgSjUlWO9W2W9691eK8wTDcs/fkrthSJFdUzqbZhLPeRBIhwxBLOW86opqHP2hgjY6H6GR7NLwIHchKI72wgdrDMdUd1u3CKhdhqZ+XtK0f1s2A1zQH3sWLpeQknSBi3LFNjSgptHWcVs4xhDgToRjWnYugjSYGRCpCWYVLhDLnGJ0BpfcEZjAmQ+glqTJ7qBVVkZL0/tXebFFg3AUhMK1M4vZzLy0E4x10ZBuY3TEKZziR2KGjmP3098E8=,iv:XBNEXLnpNnuUAyaEWuobkPeeBGYPIrEiqrqIS/r0Lu0=,tag:Ft6wBjWDFYKBNm52Dn1vxQ==,type:str] + region: + text: us-west2 + serviceName: + text: cloudrun-test3 +sops: + kms: [] + gcp_kms: [] + azure_kv: [] + hc_vault: [] + age: + - recipient: age1j6nrevprudhes65akfpl7sl65pktl4wj272gh7xl82ul3aaugppq6zxujg + enc: | + -----BEGIN AGE ENCRYPTED FILE----- + YWdlLWVuY3J5cHRpb24ub3JnL3YxCi0+IFgyNTUxOSBxWWdlTDFWK0VNQTNoUExS + Y20yNVZTT0hxNi91d3JvTUZ3UFNuRStUQTNvCnVEOVlTUjhvNU5MejdldWt0eWxR + UnZ4T0lUd3dsSURaNzRXWGVKQWllWTgKLS0tIHV0QkFWTDk2RE9hK2EyNm9GRVll + dmE4QXJmK255RHNIVzJjNjFwRCtCMzQKaAfgT/Q7uU4urlcgtz25Pbwx/p4iyEX/ + YpZaWQuVR2J9jtEh86oYZYGLxO5SAvqO5v20tfxXdVzZQkw0/QVPhQ== + -----END AGE ENCRYPTED FILE----- + lastmodified: "2021-06-10T06:06:28Z" + mac: ENC[AES256_GCM,data:qlX0EtuyHMNhMoVtR0xwD6kM2i+Jbq6NC6oQwZkEb4Pe8yy1cXKtHOvzDQAmMOL/vyE82fRtTmvfc85gA8vgw320TzXDcqxkpbVlML/5O7lDvOBwePvwajwG5JOlBXl+UJWMrH5nYfRPas1B4RSV7lksqXf/+a2+O0b2NN0UWDM=,iv:GqffDMMcLDefh6HU8fmaXlOk4xkjhq0sP5jkWAsiZKo=,tag:ttbyp8H7ZviPebmga9oJ7g==,type:str] + pgp: [] + encrypted_suffix: secret + version: 3.7.1 diff --git a/examples/cloud-run-app/go-http-server/.dockerignore b/examples/cloud-run-app/go-http-server/.dockerignore new file mode 100644 index 00000000..4cc30b02 --- /dev/null +++ b/examples/cloud-run-app/go-http-server/.dockerignore @@ -0,0 +1,13 @@ +# The .dockerignore file excludes files from the container build process. +# +# https://docs.docker.com/engine/reference/builder/#dockerignore-file + +# Exclude locally vendored dependencies. +vendor/ + +# Exclude "build-time" ignore files. +.dockerignore +.gcloudignore + +# Exclude git history and configuration. +.gitignore diff --git a/examples/cloud-run-app/go-http-server/Dockerfile b/examples/cloud-run-app/go-http-server/Dockerfile new file mode 100644 index 00000000..21e1f572 --- /dev/null +++ b/examples/cloud-run-app/go-http-server/Dockerfile @@ -0,0 +1,33 @@ +# Use the offical golang image to create a binary. +# This is based on Debian and sets the GOPATH to /go. +# https://hub.docker.com/_/golang +FROM golang:1.16-buster as builder + +# Create and change to the app directory. +WORKDIR /app + +# Retrieve application dependencies. +# This allows the container build to reuse cached dependencies. +# Expecting to copy go.mod and if present go.sum. +COPY go.* ./ +RUN go mod download + +# Copy local code to the container image. +COPY . ./ + +# Build the binary. +RUN go build -v -o server + +# Use the official Debian slim image for a lean production container. +# https://hub.docker.com/_/debian +# https://docs.docker.com/develop/develop-images/multistage-build/#use-multi-stage-builds +FROM debian:buster-slim +RUN set -x && apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y \ + ca-certificates && \ + rm -rf /var/lib/apt/lists/* + +# Copy the binary to the production image from the builder stage. +COPY --from=builder /app/server /app/server + +# Run the web service on container startup. +CMD ["/app/server"] diff --git a/examples/cloud-run-app/go-http-server/go.mod b/examples/cloud-run-app/go-http-server/go.mod new file mode 100644 index 00000000..c7f4692c --- /dev/null +++ b/examples/cloud-run-app/go-http-server/go.mod @@ -0,0 +1,3 @@ +module github.com/dagger-cloud-run-example + +go 1.16 diff --git a/examples/cloud-run-app/go-http-server/main.go b/examples/cloud-run-app/go-http-server/main.go new file mode 100644 index 00000000..ced0a060 --- /dev/null +++ b/examples/cloud-run-app/go-http-server/main.go @@ -0,0 +1,35 @@ +// Sample run-helloworld is a minimal Cloud Run service. +package main + +import ( + "fmt" + "log" + "net/http" + "os" +) + +func main() { + log.Print("starting server...") + http.HandleFunc("/", handler) + + // Determine port for HTTP service. + port := os.Getenv("PORT") + if port == "" { + port = "8080" + log.Printf("defaulting to port %s", port) + } + + // Start HTTP server. + log.Printf("listening on port %s", port) + if err := http.ListenAndServe(":"+port, nil); err != nil { + log.Fatal(err) + } +} + +func handler(w http.ResponseWriter, r *http.Request) { + name := os.Getenv("NAME") + if name == "" { + name = "World" + } + fmt.Fprintf(w, "Hello %s!\n", name) +} diff --git a/examples/cloud-run-app/main.cue b/examples/cloud-run-app/main.cue new file mode 100644 index 00000000..b0eece2f --- /dev/null +++ b/examples/cloud-run-app/main.cue @@ -0,0 +1,26 @@ +package main + +import ( + "dagger.io/gcp" + "dagger.io/gcp/cloudrun" +) + +// Cloud Run service name +serviceName: *"cloudrun-test" | string @dagger(input) + +// GCP region +region: *"us-west2" | string @dagger(input) + +// Image name +image: *"gcr.io/dagger-ci/cloudrun-test" | string @dagger(input) + +gcpConfig: gcp.#Config & { + region: region +} + +deploy: cloudrun.#Deploy & { + serviceName: serviceName + image: image + config: gcpConfig + region: region +} diff --git a/stdlib/gcp/cloudrun/cloudrun.cue b/stdlib/gcp/cloudrun/cloudrun.cue new file mode 100644 index 00000000..2ce87b86 --- /dev/null +++ b/stdlib/gcp/cloudrun/cloudrun.cue @@ -0,0 +1,52 @@ +package cloudrun + +import ( + "dagger.io/dagger/op" + "dagger.io/gcp" +) + +// Deploy deploys a Cloud Run service based on provided GCR image +#Deploy: { + // GCP Config + config: gcp.#Config + + // service name + serviceName: string @dagger(input) + + // region to which deploy the service + region: *"us-west2" | string @dagger(input) + + // GCR image ref + image: string @dagger(input) + + // Cloud Run platform + platform: *"managed" | string @dagger(input) + + #up: [ + op.#Load & { + from: gcp.#GCloud & { + "config": config + } + }, + + op.#Exec & { + args: [ + "/bin/bash", + "--noprofile", + "--norc", + "-eo", + "pipefail", + "-c", + #""" + gcloud run deploy "$SERVICE_NAME" --image "$IMAGE" --region "$REGION" --platform "$PLATFORM" --allow-unauthenticated + """#, + ] + env: { + SERVICE_NAME: serviceName + PLATFORM: platform + REGION: region + IMAGE: image + } + }, + ] +} diff --git a/tests/README.md b/tests/README.md index 5d4bb2de..3f600c67 100644 --- a/tests/README.md +++ b/tests/README.md @@ -3,7 +3,7 @@ ## TL;DR ```shell -# Install dependancies +# Install dependencies yarn install # Install gnu parallel if needed diff --git a/tests/stdlib/gcp/cloudrun/.dagger/env/default/.gitignore b/tests/stdlib/gcp/cloudrun/.dagger/env/default/.gitignore new file mode 100644 index 00000000..01ec19b0 --- /dev/null +++ b/tests/stdlib/gcp/cloudrun/.dagger/env/default/.gitignore @@ -0,0 +1,2 @@ +# dagger state +state/** diff --git a/tests/stdlib/gcp/cloudrun/.dagger/env/default/plan/cloudrun.cue b/tests/stdlib/gcp/cloudrun/.dagger/env/default/plan/cloudrun.cue new file mode 100644 index 00000000..879666e4 --- /dev/null +++ b/tests/stdlib/gcp/cloudrun/.dagger/env/default/plan/cloudrun.cue @@ -0,0 +1,15 @@ +package cloudrun + +import ( + "dagger.io/gcp" + "dagger.io/gcp/cloudrun" +) + +TestConfig: gcpConfig: gcp.#Config + +TestCloudRun: deploy: cloudrun.#Deploy & { + config: TestConfig.gcpConfig + serviceName: "cloudrun-test" + region: "us-west2" + image: "gcr.io/dagger-ci/cloudrun-test:latest" +} diff --git a/tests/stdlib/gcp/cloudrun/.dagger/env/default/values.yaml b/tests/stdlib/gcp/cloudrun/.dagger/env/default/values.yaml new file mode 100644 index 00000000..bff70a40 --- /dev/null +++ b/tests/stdlib/gcp/cloudrun/.dagger/env/default/values.yaml @@ -0,0 +1,28 @@ +name: default +inputs: + TestConfig.gcpConfig.project: + text: dagger-ci + TestConfig.gcpConfig.region: + text: us-west2-a + TestConfig.gcpConfig.serviceKey: + secret: ENC[AES256_GCM,data:UEKTXvyrBgHKOYE9vSGoHua9wWALjghxWu+ui9K3MAS+1mnVlc1qjTbwv/1/hIIkRNlyhY6WlN0k3x2imusFFInzrNZ5G4FJHGiP/zaazd7shUS8LZsh1cL0I1jnsaDJaz4Zw0yVu+FT1z2/+9l81U9MrtvbLNKFSqZJsrymZl5lUCxiRsUEBiC0/rOoOlQ88kfnxUdBXnG7ABciqPUK7cYaMo5RbB1a9YfacB8S2sosClxK727jUgD20I12ru+y5Y/hg00BhBl9bIg35VTI8PFeZvRqQowqaJO+i1BjQbBYef8s9faYdZGEP0hUrvUpPek4Z0ZBDRbxRfRFAiXBbWbvCJErGlsmcNGqllixgDbcYQNKBTjZEKke4PGHtahmPXOIOO9/fxnUCoci//azJ5fUP0Kdiw06DQYQnngwRSA/nOqTBiuWcfiTLY00iQxoh+8Mt5/CMTXhRz8PpRpvXtKLe4ogaVbEBMOXe8+nMtwt0H6kV+YmHgA+vVHw0WYtBF6gmKnXuGWT/dz94SHGe9oMiK7H7KtfRCyN1SBAx3H9R3qitt9114TlWRBvfrVtDsb/E0MQdnbXZQirJ/2ev78DTc5bdRTFus2vvHZB2RP+wr7sB8A+jcWS1RBv0NJOZoPlHqKIfB93NBhI8wU+lqEbTn2Zm0LAvGVypws3ci+0GJFReIok9yGc/WucFBDMWi8tDOwUdbreX7EpdGLSn9Rwq0Oeuo5Udy5Qo4xFAC/v2yCzqb7MrZzX1S+OHyNObUTGuEyTOL8t91KYBebHtLK0Ud9qQoYuO5IvYCGeKIHr5FDFCYKDJAlW8Y9Iw27LsU45rqeHTjUi1BqOLfXZbns79w8WYiz5bqc3eMXmYOgCKtU5BwLo9LV7WR+FW8cCi9gSJHnRbc8uT9V1NWaGeoKuaPXpBWLH/GTKXEKuy1HXz+yPgQsYYN2yrGNgmgXpKbxgp92h6LR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tag:apejA4UTYTuwT4CUSeoaRQ==,type:str] +sops: + kms: [] + gcp_kms: [] + azure_kv: [] + hc_vault: [] + age: + - recipient: age1gxwmtwahzwdmrskhf90ppwlnze30lgpm056kuesrxzeuyclrwvpsupwtpk + enc: | + -----BEGIN AGE ENCRYPTED FILE----- + YWdlLWVuY3J5cHRpb24ub3JnL3YxCi0+IFgyNTUxOSBCRThSTEE1Rm5HU2Y2NkJZ + SEd2blAyeEVnMHBqRGxXMEQ3TGFzWTBwd1EwCnA0OFVmTCsxSmpNV29adGt2ZHFH + WE9vN1ZoNENFV2t1TGVuZkdwVndNbVUKLS0tIGpHZEptYWxEZVNjcXF4NkoyWHRv + ZXd6Qmd1YUtxMnVTVkYybWgrV3pVK2MKowMeOZU3j3BxERT0DwhQYCGUDBK6gCdo + WByubiBATdsb7h7ytCC4HutWppynK4MpU+Ya9NP83AZuXo+Wa2u6aQ== + -----END AGE ENCRYPTED FILE----- + lastmodified: "2021-05-28T02:07:09Z" + mac: ENC[AES256_GCM,data:QqbgWep3l7dIfE4imJ3SKsMdexh7DgUvjtGwSgKbHHnT0p2MwIdFMY7pB0ZJvlc3ZwQyioT3wqF9xgn4U60a4piGtDYsyWjZn52tQAPy0p9c+sOHn+WlFVu1FJeljU4Q3mlEqdA6g993nsbJp9RnNShpc65rQXUMLkw2lXhOAak=,iv:1pp1D1fUFGI+Kn/H2efaqroJV+rzJRGmWo2ZTseTDis=,tag:ePCkD/G2KEbN7cxiMpy9fg==,type:str] + pgp: [] + encrypted_suffix: secret + version: 3.7.1