From 83eebf82fa3aacde7f14e2cb0dc11ddbbaff6c92 Mon Sep 17 00:00:00 2001 From: Tihomir Jovicic Date: Thu, 10 Jun 2021 11:45:52 +0200 Subject: [PATCH] Move Cloud Run image property to GCP config struct Signed-off-by: Tihomir Jovicic --- examples/README.md | 13 ++++---- .../.dagger/env/cloud-run-app/.gitignore | 2 -- .../.dagger/env/cloud-run-app/plan/main.cue | 26 ---------------- .../.dagger/env/cloud-run-app/values.yaml | 30 ------------------- examples/cloud-run-app/main.cue | 26 ---------------- .../go-http-server/.dockerignore | 0 .../go-http-server/Dockerfile | 0 .../go-http-server/go.mod | 0 .../go-http-server/main.go | 0 examples/cloudrun-app/main.cue | 20 +++++++++++++ .../gcp/cloudrun/{cloudrun.cue => main.cue} | 5 +--- .../.dagger/env/default/plan/main.cue | 16 ++++++++++ .../cloudrun/.dagger/env/default/values.yaml | 20 ++++++------- .../default/plan/cloudrun.cue => main.cue} | 7 +++-- 14 files changed, 56 insertions(+), 109 deletions(-) delete mode 100644 examples/cloud-run-app/.dagger/env/cloud-run-app/.gitignore delete mode 100644 examples/cloud-run-app/.dagger/env/cloud-run-app/plan/main.cue delete mode 100644 examples/cloud-run-app/.dagger/env/cloud-run-app/values.yaml delete mode 100644 examples/cloud-run-app/main.cue rename examples/{cloud-run-app => cloudrun-app}/go-http-server/.dockerignore (100%) rename examples/{cloud-run-app => cloudrun-app}/go-http-server/Dockerfile (100%) rename examples/{cloud-run-app => cloudrun-app}/go-http-server/go.mod (100%) rename examples/{cloud-run-app => cloudrun-app}/go-http-server/main.go (100%) create mode 100644 examples/cloudrun-app/main.cue rename stdlib/gcp/cloudrun/{cloudrun.cue => main.cue} (87%) create mode 100644 tests/stdlib/gcp/cloudrun/.dagger/env/default/plan/main.cue rename tests/stdlib/gcp/cloudrun/{.dagger/env/default/plan/cloudrun.cue => main.cue} (79%) diff --git a/examples/README.md b/examples/README.md index 2fa83d9c..11ac2d75 100644 --- a/examples/README.md +++ b/examples/README.md @@ -298,9 +298,9 @@ 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) +This example shows how to deploy an application to GCP Cloud Run. Read the deployment [plan](https://github.com/dagger/dagger/tree/main/examples/cloudrun-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. +NOTE: this example requires the right GCP IAM permissions: `https://cloud.google.com/run/docs/reference/iam/roles#additional-configuration` Components: @@ -311,27 +311,26 @@ How to run: 1. Initialize a new workspace ```sh -cd ./cloud-run-app +cd ./cloudrun-app dagger init ``` 2. Create a new environment ```sh -dagger new cloud-run-app -cp *.cue ./.dagger/env/cloud-run-app/plan/ +dagger new cloudrun-app +cp main.cue ./.dagger/env/cloudrun-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 text gcpConfig.region MY_GCP_REGION dagger input secret gcpConfig.serviceKey -f MY_GCP_SERVICE_KEY_FILE - ``` 4. Deploy! diff --git a/examples/cloud-run-app/.dagger/env/cloud-run-app/.gitignore b/examples/cloud-run-app/.dagger/env/cloud-run-app/.gitignore deleted file mode 100644 index 01ec19b0..00000000 --- a/examples/cloud-run-app/.dagger/env/cloud-run-app/.gitignore +++ /dev/null @@ -1,2 +0,0 @@ -# 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 deleted file mode 100644 index b0eece2f..00000000 --- a/examples/cloud-run-app/.dagger/env/cloud-run-app/plan/main.cue +++ /dev/null @@ -1,26 +0,0 @@ -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 deleted file mode 100644 index c25de1c8..00000000 --- a/examples/cloud-run-app/.dagger/env/cloud-run-app/values.yaml +++ /dev/null @@ -1,30 +0,0 @@ -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//Osy9dLQ0DBD34OMpEp06jYqxBiukBdGGaR71TjLAZfjChfJASsHT9PLopoOtD80tpfT16v44wvJluNwYgjmvsV4s/v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Dcs/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/main.cue b/examples/cloud-run-app/main.cue deleted file mode 100644 index b0eece2f..00000000 --- a/examples/cloud-run-app/main.cue +++ /dev/null @@ -1,26 +0,0 @@ -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/go-http-server/.dockerignore b/examples/cloudrun-app/go-http-server/.dockerignore similarity index 100% rename from examples/cloud-run-app/go-http-server/.dockerignore rename to examples/cloudrun-app/go-http-server/.dockerignore diff --git a/examples/cloud-run-app/go-http-server/Dockerfile b/examples/cloudrun-app/go-http-server/Dockerfile similarity index 100% rename from examples/cloud-run-app/go-http-server/Dockerfile rename to examples/cloudrun-app/go-http-server/Dockerfile diff --git a/examples/cloud-run-app/go-http-server/go.mod b/examples/cloudrun-app/go-http-server/go.mod similarity index 100% rename from examples/cloud-run-app/go-http-server/go.mod rename to examples/cloudrun-app/go-http-server/go.mod diff --git a/examples/cloud-run-app/go-http-server/main.go b/examples/cloudrun-app/go-http-server/main.go similarity index 100% rename from examples/cloud-run-app/go-http-server/main.go rename to examples/cloudrun-app/go-http-server/main.go diff --git a/examples/cloudrun-app/main.cue b/examples/cloudrun-app/main.cue new file mode 100644 index 00000000..4491394e --- /dev/null +++ b/examples/cloudrun-app/main.cue @@ -0,0 +1,20 @@ +package main + +import ( + "dagger.io/gcp" + "dagger.io/gcp/cloudrun" +) + +// Cloud Run service name +serviceName: *"cloudrun-test" | string @dagger(input) + +// Image name +image: string @dagger(input) + +gcpConfig: gcp.#Config + +deploy: cloudrun.#Deploy & { + "serviceName": serviceName + "image": image + config: gcpConfig +} diff --git a/stdlib/gcp/cloudrun/cloudrun.cue b/stdlib/gcp/cloudrun/main.cue similarity index 87% rename from stdlib/gcp/cloudrun/cloudrun.cue rename to stdlib/gcp/cloudrun/main.cue index 2ce87b86..ced19ca7 100644 --- a/stdlib/gcp/cloudrun/cloudrun.cue +++ b/stdlib/gcp/cloudrun/main.cue @@ -13,9 +13,6 @@ import ( // 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) @@ -44,7 +41,7 @@ import ( env: { SERVICE_NAME: serviceName PLATFORM: platform - REGION: region + REGION: config.region IMAGE: image } }, diff --git a/tests/stdlib/gcp/cloudrun/.dagger/env/default/plan/main.cue b/tests/stdlib/gcp/cloudrun/.dagger/env/default/plan/main.cue new file mode 100644 index 00000000..da16b09e --- /dev/null +++ b/tests/stdlib/gcp/cloudrun/.dagger/env/default/plan/main.cue @@ -0,0 +1,16 @@ +package cloudrun + +import ( + "dagger.io/gcp" + "dagger.io/gcp/cloudrun" +) + +TestConfig: gcpConfig: gcp.#Config & { + region: "us-west2" +} + +TestCloudRun: deploy: cloudrun.#Deploy & { + config: TestConfig.gcpConfig + serviceName: "cloudrun-test4" + 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 index bff70a40..100bb271 100644 --- a/tests/stdlib/gcp/cloudrun/.dagger/env/default/values.yaml +++ b/tests/stdlib/gcp/cloudrun/.dagger/env/default/values.yaml @@ -2,27 +2,25 @@ 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/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Hf1SR+Ug340f3zc9A6zI32/FrF5O5rnoNQnaHAxzKO/daDHw7dGajMhkgDGDR+7lJorLBfIEeFp6/FNWiT7QuGhYlnskY0NuEXQUKbon+RJGSzcaAQYds/TwVKkotqzrNkIAxUSYd/K4HXVtffGZ6pL58VHP81gS0h472tcn881qmoiJX3r+iaiLVL1OcLfs4p+EWzQe5HxMynwyF5I49CDG7ttzupAykbd7BWtRPJD6ilWz72fo5xdcXjIIvPVt7S45xfscIZNxW8Qw5C8Kzmxf69VtKnZcEqQ6l9aTGRDCjUMRjWJL5aboq8J71vEt6Q4JVPIAmWzJS7/4n9MrUn8M4ZIyg//l4bovuR4uiMHNaL57h38cTP0kjhIXeiMWcxLYolzHyy1gs/AOQ8Vni6Wt1K5nWts5BafhXWv2f4AZQkxvtUHeMQykYpK2f+AnrXAWJtoP3s5rE2VoSjvbMEpEIz2DvcGb0cgjIE9WfSx2U/vOuOZ1ryJVr7NNj8HEdM1ueBRo7qtrYFOFhpLVNzEibWzVHUdgjLJSVPdZ10mjRHXQq+rcSHD+u147fmzU/APKG0KrGehr+q4Sq9cfFmbCxfiBbiBx/XWr0OneI2DBETPS4O4/Vnxwo/Ta2tY1EYZ+6yQ1EufxLRbafsqlNcerI8BXNVkR1uchwjMLgSLhMWZgXOl5y7cNJ+kQrwPkAD7sXJJLm4xc/es2usXIViiPoXdqFcEcmEGn3/LifWe8/mzbtkg/iaIWX8waPbdAShysYP4vaWTiM5uV1az4dzI4eeq+cJ0okBDVYVWwgVfaaM1BXpjHus=,iv:z5kMvxwHNWlkPyLSY4m4uJWlI0Ex49Mou5ggjYOAJZU=,tag:X87YuciqrxzbHxN84U/czw==,type:str] sops: kms: [] gcp_kms: [] azure_kv: [] hc_vault: [] age: - - recipient: age1gxwmtwahzwdmrskhf90ppwlnze30lgpm056kuesrxzeuyclrwvpsupwtpk + - recipient: age1j6nrevprudhes65akfpl7sl65pktl4wj272gh7xl82ul3aaugppq6zxujg enc: | -----BEGIN AGE ENCRYPTED FILE----- - YWdlLWVuY3J5cHRpb24ub3JnL3YxCi0+IFgyNTUxOSBCRThSTEE1Rm5HU2Y2NkJZ - SEd2blAyeEVnMHBqRGxXMEQ3TGFzWTBwd1EwCnA0OFVmTCsxSmpNV29adGt2ZHFH - WE9vN1ZoNENFV2t1TGVuZkdwVndNbVUKLS0tIGpHZEptYWxEZVNjcXF4NkoyWHRv - ZXd6Qmd1YUtxMnVTVkYybWgrV3pVK2MKowMeOZU3j3BxERT0DwhQYCGUDBK6gCdo - WByubiBATdsb7h7ytCC4HutWppynK4MpU+Ya9NP83AZuXo+Wa2u6aQ== + YWdlLWVuY3J5cHRpb24ub3JnL3YxCi0+IFgyNTUxOSBlS2FGbmN6NHUvQURxNHFM + VGhOSkpzemlqRy9VRm1YWmgzVjlyL3dwYmdvCjFCKzVZU0F6c3d1cW1zY2dhenF5 + VDNWMkU1Tk9jNzhiZFJyTmdWS0hSMFkKLS0tIHFka3R5M3lIaUUwQy9vL2psVlda + bmNoN29yMHhPQ3cwVzNpUkxIQ0ZnM1EKJht8ms14xoJljhph1bC8E7zZAp9NIYAR + pSpl03AeVHVO8TIJT7P4Fb/sWTpeO43WNDVpLdVOqb1zYSAKZ5G3AQ== -----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] + lastmodified: "2021-06-10T09:04:25Z" + mac: ENC[AES256_GCM,data:CKp5GwZZWUk35GsqU7447Km24t7B1pqV6VwcRZetzVbeXPT9Wc5hVfTqR8HYWE/vxz8CwkkJSkqYgdS72JUBJaoZLSXBLO6C50QqPDUdMunZp0pTidKuubET4Jmr2hflMv473CQhBr0wmhKlRJLv3u83Zx/XqKljgl7gZ2HkJ7c=,iv:7RaadjoAANIo21IA/myn+pXsQdAgH5I6LZw4iK2y2rA=,tag:pASgOqReKaoG/yUSr9BCyA==,type:str] pgp: [] encrypted_suffix: secret version: 3.7.1 diff --git a/tests/stdlib/gcp/cloudrun/.dagger/env/default/plan/cloudrun.cue b/tests/stdlib/gcp/cloudrun/main.cue similarity index 79% rename from tests/stdlib/gcp/cloudrun/.dagger/env/default/plan/cloudrun.cue rename to tests/stdlib/gcp/cloudrun/main.cue index 879666e4..22e849d1 100644 --- a/tests/stdlib/gcp/cloudrun/.dagger/env/default/plan/cloudrun.cue +++ b/tests/stdlib/gcp/cloudrun/main.cue @@ -5,11 +5,12 @@ import ( "dagger.io/gcp/cloudrun" ) -TestConfig: gcpConfig: gcp.#Config +TestConfig: gcpConfig: gcp.#Config & { + region: "us-west2" +} TestCloudRun: deploy: cloudrun.#Deploy & { - config: TestConfig.gcpConfig serviceName: "cloudrun-test" - region: "us-west2" + config: TestConfig.gcpConfig image: "gcr.io/dagger-ci/cloudrun-test:latest" }