github.com/inflatablewoman/deis@v1.0.1-0.20141111034523-a4511c46a6ce/docs/customizing_deis/registry_settings.rst (about)

     1  :title: Customizing registry
     2  :description: Learn how to tune custom Deis settings.
     3  
     4  .. _registry_settings:
     5  
     6  Customizing registry
     7  =========================
     8  The following settings are tunable for the :ref:`registry` component.
     9  
    10  Dependencies
    11  ------------
    12  Requires: :ref:`cache <cache_settings>`, :ref:`store-gateway <store_gateway_settings>`
    13  
    14  Required by: :ref:`builder <builder_settings>`, :ref:`controller <controller_settings>`
    15  
    16  Considerations: none
    17  
    18  Settings set by registry
    19  --------------------------
    20  The following etcd keys are set by the registry component, typically in its /bin/boot script.
    21  
    22  ===========================              =================================================================================
    23  setting                                  description
    24  ===========================              =================================================================================
    25  /deis/registry/bucketName                store component bucket used for registry image layers (default: registry)
    26  /deis/registry/host                      IP address of the host running registry
    27  /deis/registry/port                      port used by the registry service (default: 5000)
    28  /deis/registry/protocol                  protocol for registry (default: http)
    29  /deis/registry/secretKey                 used for secrets (default: randomly generated)
    30  ===========================              =================================================================================
    31  
    32  Settings used by registry
    33  ---------------------------
    34  The following etcd keys are used by the registry component.
    35  
    36  ====================================      =================================================================================
    37  setting                                   description
    38  ====================================      =================================================================================
    39  /deis/cache/host                          host of the cache component (set by cache)
    40  /deis/cache/port                          port of the cache component (set by cache)
    41  /deis/store/gateway/accessKey             S3 API access used to access store-gateway (set by store-gateway)
    42  /deis/store/gateway/host                  host of the store-gateway component (set by store-gateway)
    43  /deis/store/gateway/port                  port of the store-gateway component (set by store-gateway)
    44  /deis/store/gateway/secretKey             S3 API secret key used to access store-gateway (set by store-gateway)
    45  ====================================      =================================================================================
    46  
    47  The Deis registry component inherits from the Docker registry container, so additional configuration
    48  options can be supplied. For a full explanation of these settings, see the Docker registry `README`_.
    49  
    50  Using a custom registry image
    51  -----------------------------
    52  You can use a custom Docker image for the registry component instead of the image
    53  supplied with Deis:
    54  
    55  .. code-block:: console
    56  
    57      $ deisctl config registry set image=myaccount/myimage:latest
    58  
    59  This will pull the image from the public Docker registry. You can also pull from a private
    60  registry:
    61  
    62  .. code-block:: console
    63  
    64      $ deisctl config registry set image=registry.mydomain.org:5000/myaccount/myimage:latest
    65  
    66  Be sure that your custom image functions in the same way as the `stock registry image`_ shipped with
    67  Deis. Specifically, ensure that it sets and reads appropriate etcd keys.
    68  
    69  .. _`stock registry image`: https://github.com/deis/deis/tree/master/registry
    70  .. _`README`: https://github.com/dotcloud/docker-registry/blob/master/README.md