You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[ x ] Check if this is a typo or other quick fix and ignore the rest :)
resolveschainguard-dev/internal#5729
Signed-off-by: Mark Drake <mark@chainguard.dev>
Copy file name to clipboardExpand all lines: content/chainguard/chainguard-images/chainguard-registry/pull-through-guides/cloudsmith-pull-through/index.md
+11-12Lines changed: 11 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -35,27 +35,26 @@ In order to complete this tutorial, you will need the following:
35
35
36
36
Chainguard's [Free container images](/chainguard/chainguard-images/about/images-categories/#starter-containers) are free to use, publicly available, and always represent versions tagged as `:latest`.
37
37
38
-
To set up a remote repository in Cloudsmith through which you can pull Free container images, log in to the [Cloudsmith App](https://cloudsmith.io/user/login/). Once there, navigate to the **Repositories** tab and and click the **+ Create Repository** button.
38
+
To set up a remote repository in Cloudsmith through which you can pull Free container images, log in to the [Cloudsmith App](https://cloudsmith.io/user/login/). Once there, navigate to the **Repositories** tab and and click **+ Create Repository**.
39
39
40
-
A modal window will appear where you can enter the following details for your new remote repository:
40
+
A window will appear where you can enter the following details for your new remote repository:
41
41
42
42
***Name** — This is used to refer to your repository. You can choose whatever name you like here, but this guide's examples will use the name `chainguard-public`.
43
43
***Storage Region** — Here, select the region closest to your location.
44
-
***Repository Type** — This setting determines how the repository can be accessed. You can select **Public**, **Private**, or **Open-Source**.
45
44
46
-

45
+

47
46
48
47
Following that, you will need to set an [upstream proxy](https://help.cloudsmith.io/docs/upstream-proxying-caching) for this repository. This is what will let Cloudsmith know where to pull container images from.
49
48
50
-
In the lower left-hand navigation menu, select **Upstream Proxying**. From there, click the **➕ Create Upstream**button and select **Docker** as the upstream source. This will open a modal window where you can enter the details for the upstream source:
49
+
In the lower left-hand navigation menu, select **Upstream Proxying**. From there, click **➕ Create Upstream** and select **Docker** as the upstream source. This will open a window where you can enter the details for the upstream source:
51
50
52
-

51
+

53
52
54
53
This window has a few fields for which you need to enter values. The **Name** field can include any name you'd like for the upstream source, but it can be helpful to choose something descriptive. In our example the name is "Chainguard Public Upstream." Likewise, you can choose whatever **Priority** value you prefer. This dictates the order in which requests are resolved, with `1` being resolved first, `2` second, and so on.
55
54
56
-
The most important field in this window is the **Upstream URL** value. In order to use Cloudsmith as a pull through cache for Free images, this **must** be set to `https://cgr.dev/chainguard`.
55
+
The most important field in this window is the **Proxy URL** value. In order to use Cloudsmith as a pull through cache for Free images, this **must** be set to `https://cgr.dev/chainguard`.
57
56
58
-
Lastly, be sure that the **Mode** is set to **Cache and Proxy** and the **Verify SSL Certificates** option is selected. Then, click the **Create Docker Upstream** button.
57
+
Lastly, be sure that the **Mode** is set to **Cache and Proxy** and the **Verify SSL Certificates** option is selected. Then, click **Create upstream proxy**.
59
58
60
59
If you entered all the details correctly, then the upstream proxy will be created successfully and you can test pulling a Free container image through Cloudsmith.
61
60
@@ -80,7 +79,7 @@ Be sure to replace `<cloudsmith-organization>` and `<cloudsmith-repository>` wit
80
79
81
80
If everything worked correctly, the image will appear in your repository:
82
81
83
-

82
+

84
83
85
84
If you run into issues pulling images like this, ensure that your `docker pull` command specifies the correct Cloudsmith organization and repository.
86
85
@@ -111,15 +110,15 @@ This command will prompt you to select an organization. Be sure to select the or
111
110
112
111
This will create a pull token and print a `docker login` command that can be run in a CI environment to log in with the token. This command includes both `--username` and `--password` arguments. You don't need to run this `docker login` command, but you will need the username and password values in a moment so note them down.
113
112
114
-
Following that, you'll need to create another upstream source. Return to the Cloudsmith web app and navigate to the **Upstream Proxying** page. Click the **➕ Create Upstream** button and select **Docker** as the upstream source. Again, set a **Name** and **Priority** level for this source and ensure that the **Mode** is set to **Cache and Proxy**.
113
+
Following that, you'll need to create another upstream source. Return to the Cloudsmith web app and navigate to the **Upstream Proxying** page. Click **➕ Create Upstream** and select **Docker** as the upstream source. Again, set a **Name** and **Priority** level for this source and ensure that the **Mode** is set to **Cache and Proxy**.
115
114
116
115
When pulling from a private registry through Chainguard, the **Upstream URL** must be set to `https://cgr.dev/`; any other URL here will cause an error.
117
116
118
117
Lastly, you need to add the username and password you received when you generated the pull token to the upstream source. To do this, expand the **Authentication** section and under **Method** select **Username and Password**. Then enter the username and password you noted down earlier in their respective fields.
119
118
120
-

119
+

121
120
122
-
Finally, click the **Create Docker Upstream** button. With that, you're ready to test a Chainguard Production Container through Cloudsmith.
121
+
Finally, click **Create upstream proxy**. With that, you're ready to test a Chainguard Production Container through Cloudsmith.
123
122
124
123
125
124
### Testing pull through of a Chainguard Production Container:
0 commit comments