Преглед изворни кода

Merge branch 'master' of https://github.com/porter-dev/porter

sunguroku пре 5 година
родитељ
комит
6c2de303c4
1 измењених фајлова са 26 додато и 0 уклоњено
  1. 26 0
      docs/GCR.md

+ 26 - 0
docs/GCR.md

@@ -0,0 +1,26 @@
+# Google Container Registry (GCR) Connection
+
+To authenticate a private GCR registry, you will first need a Google Cloud service account with registry viewing permissions. To create a new service account, go to your Google Cloud console and navigate to the **IAM & Admin** tab in the navigation menu and select **Service Accounts**:
+
+<img src="https://files.readme.io/a0c0c75-Screen_Shot_2020-06-24_at_2.51.46_PM.png" width="80%">
+
+Select **Create Service Account** and provide a name and brief description for the new service account. Next, choose the role **Viewer** when you are prompted to grant permissions to your service account:
+
+<img src="https://files.readme.io/aa8cda5-Screen_Shot_2020-06-24_at_4.03.33_PM.png" width="80%">
+
+After the service account has been created, you need to create a JSON key for your service account by going to **Actions** -> **Create key** and then selecting JSON as your key type. Once your JSON key file has downloaded, use the `porter connect gcr` command to add the registry to your project. 
+
+For example, for a key named `gcp-key-file.json` on Mac:
+
+```diff
+$ cd ~/Downloads
+$ porter connect gcr 
+Please provide the full path to a service account key file.
+Key file location: ./gcp-key-file.json
++ created gcp integration with id 3
+Give this registry a name: gcr-registry
++ created registry with id 16 and name gcr-test
++ Set the current registry id as 16
+```
+
+Having issues authenticating your private registry? You can reach us at [contact@getporter.dev](mailto:contact@getporter.dev).