# Custom Catalog information

**URL:** <https://forums.suse.com/t/custom-catalog-information/1274>\
**Category:** Rancher 1.x\
**Created:** [December 17, 2015, 1:28am UTC](https://forums.suse.com/t/custom-catalog-information/1274 "2015-12-17T01:28:16Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![ebishop](https://avatars.discourse-cdn.com/v4/letter/e/9dc877/32.png) [@ebishop](https://forums.suse.com/u/ebishop)\
**Post date:** [December 17, 2015, 1:28am UTC](https://forums.suse.com/t/custom-catalog-information/1274/1 "2015-12-17T01:28:16Z")

</div>

Do you have documentation and/or examples for adding a custom catalog? For example, directory structure, file naming conventions and any rancher specific required syntax.

Also, are there restrictions things like use of environment variables, and “extends” to pull in common/base yml files.

---

<div class="post-metadata">

**Author:** ![denise](https://avatars.discourse-cdn.com/v4/letter/d/82dd89/32.png) [@denise](https://forums.suse.com/u/denise)\
**Post date:** [December 21, 2015, 7:17pm UTC](https://forums.suse.com/t/custom-catalog-information/1274/2 "2015-12-21T19:17:22Z")

</div>

I just published how to create your own private catalog. I don’t know/think `extends` would work as we only expect the docker-compose.yml and rancher-compose.yml.

[http://docs.rancher.com/rancher/configuration/settings/#creating-private-catalogs](http://docs.rancher.com/rancher/configuration/settings/#creating-private-catalogs)

---

<div class="post-metadata">

**Author:** ![vincent](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/vincent/32/7156_2.png) [@vincent](https://forums.suse.com/u/vincent)\
**Post date:** [December 21, 2015, 7:44pm UTC](https://forums.suse.com/t/custom-catalog-information/1274/3 "2015-12-21T19:44:28Z")

</div>

The contents of the `docker-compose.yml` & `rancher-compose.yml` files and the set of answers provided by the user are sent to the API and run through `rancher-compose`.

So extends will not work because the file you want will not be there where it is run.

Defining environment variables is fine, but similarly the form where you have no equals sign and it copies the value from the host will not work because it won’t be there.

---

<div class="post-metadata">

**Author:** ![ebishop](https://avatars.discourse-cdn.com/v4/letter/e/9dc877/32.png) [@ebishop](https://forums.suse.com/u/ebishop)\
**Post date:** [December 22, 2015, 2:46am UTC](https://forums.suse.com/t/custom-catalog-information/1274/4 "2015-12-22T02:46:19Z")

</div>

So why is a git repo required? I thought you might clone my git repo, which contains all of my compose files. So the files referenced by the extends command would be there. Well they would be on the rancher server I suppose - where the git clone was executed.

---

<div class="post-metadata">

**Author:** ![vincent](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/vincent/32/7156_2.png) [@vincent](https://forums.suse.com/u/vincent)\
**Post date:** [December 22, 2015, 3:59am UTC](https://forums.suse.com/t/custom-catalog-information/1274/5 "2015-12-22T03:59:09Z")

</div>

Well, mainly because we want version control on our catalog and didn’t implement anything else.

The repo is cloned and those specific 2 files are served by the catalog API and given to the UI, which sends them to the stack create API. The container in which the rancher-catalog-service and rancher-compose-executor are run are not necessarily the same.

---

<div class="post-metadata">

**Author:** ![zambon](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/zambon/32/2466_2.png) [@zambon](https://forums.suse.com/u/zambon)\
**Post date:** [October 13, 2016, 8:31pm UTC](https://forums.suse.com/t/custom-catalog-information/1274/6 "2016-10-13T20:31:07Z")

</div>

@vincent In support for extra YAML files planned for the future?
