In this video, Shani is explaining the chain templates when defined in Artifactory’s bnarystore.xml.
Hi, my name is Shan, I’m from Frog support. And in this short video, we will talk about what is binary store Chain templates and how to configure it. So the file store configurations are stored in the binary store XML file, which is located under this directory here. By modifying this file, we can implement a variety of different storage configurations. An example, local file system cached file system, cloud storage, and more. These modifications are done using chain templates. So what is a chain template? A basic chain template looks something like this. If you just install the factory, this is probably what your binary store XML file looks like right now.
We can see that the use chain template is the file system. What we don’t see here is the default values configured, which can be customized. This is what a file system template looks like under the hood. We can see again, that the use template is the file system. We can see the data, the file store, and the temp directory is configured locations. If you want to change the file store location, which is where the binaries are stored. We can simply change it through this template here.
Another example is the cache file system chain template. We can see it at a binary provider use is the cache-fti. Here we can configure the cache location or its size. Well those are pretty basic chain templates, we can work with much more complex templates. We can use a number of binary providers. For example, if we look at this Amazon S3 template, which is configured with charting for each cluster, we can see several providers are being used, like the cache, sharing, eventual, and retry.
Each one of these providers can be customized so we can change the cache size, we can change sharing redundancy, we can also configure the connection timeout and set the maximum HTTP client connections. The chain templates give us a lot of diversity and options to configure our storage. You can also modify one of the existing chain templates by extending it with additional binary providers. I highly recommend going over Wiki page, configuring the file store, and reviewing the building chain templates and its parameters in order to see how you can customize it according to your needs.
So that was my video on what is binary store chain templates, and how to configure it. Thanks again for watching. I hope you have enjoyed. Feel free to leave your comments, feedback, or question in the comment section below.