Skip to content

wangft/registry

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Registry

A Docker image registry for use in the Deis open source PaaS.

This Docker image is based on the official docker distribution image.

Please add any issues you find with this software to the Distribution Project.

Deploying

If you want to use the latest registry image built by they Deis team you can simply start a registry via make deploy.

If however, you want to build and use a custom image see the instructions below.

Build and Deploy

To build a dev release of this image, you will also need a registry to hold the custom images. This can be your own registry, Dockerhub, or Quay.

First, configure your environment to point to the registry location.

$ export DEIS_REGISTRY=myregistry.com:5000  # or quay.io, if using Dockerhub, leave this unset
$ export IMAGE_PREFIX=youruser/             # if using Quay or Dockerhub

To build and push the image run:

$ make docker-build docker-push

Before deploying your custom image you must update the container image specification in the pod manifest. This file is found at contrib/kubernetes/manifests/registry-rc.yaml:

        - name: registry
          image: quay.io/youruser/registry:git-f5c7dc3
          env:
            - name: REGISTRY_STORAGE_DELETE_ENABLED
              value: "true"

Once updated, deploy the registry to your kubernetes cluster with:

$ make deploy

After a while, you should see one pod up with one running:

NAME                  READY     STATUS    RESTARTS   AGE
registry-6wy8o        1/1       Running   0          32s

You can then interact with this pod as you would with any other Kubernetes pod:

$ kubectl logs -f registry-6wy8o
$ kubectl exec -it registry-6wy8o sh

License

© 2014 Engine Yard, Inc.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

About

Repository for the Deis registry component.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Makefile 77.0%
  • Shell 23.0%