Skip to content
This repository has been archived by the owner on May 6, 2020. It is now read-only.

Proposal feat(controller): allow deis pull from deis-registry #1227

Open
deis-admin opened this issue Jan 19, 2017 · 6 comments
Open

Proposal feat(controller): allow deis pull from deis-registry #1227

deis-admin opened this issue Jan 19, 2017 · 6 comments
Labels

Comments

@deis-admin
Copy link

From @aledbf on March 20, 2015 1:7

Something like

deis pull —from-internal-registry application-a:version -a application-b

to allow the deploy in application-b from application-a without using internal ip addresses

Copied from original issue: deis/deis#3341

@deis-admin
Copy link
Author

From @mboersma on March 26, 2015 22:2

This could also be a use case for deis push, and we would rather add new functionality to that than on top of deis pull I think.

@deis-admin
Copy link
Author

From @babarinde on April 15, 2015 12:40

This s really a needed feature.
Thanks for the work
@aledbf @mboersma
Can I Pull (and Push ) from the deis-registry from a coreos node in the cluster ?
Also if i do deis pull example.com:5000/image:v2 -a app
Is this good practice as against using the Internal Ip of the registry

@deis-admin
Copy link
Author

From @aledbf on April 15, 2015 12:52

@babarinde the idea of this proposal is to avoid the search of the ip inside the cluster where the registry is running.

Can I Pull (and Push ) from the deis-registry from a coreos node in the cluster ?

yes, just use the ip inside the cluster docker pull <ip>:5000/app:vXX

Also if i do deis pull example.com:5000/image:v2 -a app

that's the idea of deis pull :) (http://deis.io/demo-deis-pull-in-action/)

Is this good practice as against using the Internal Ip of the registry

I don't know if is a "good practice" but for me solves a huge problem (have 1 app as "template" and N "copies", is useful to pull from the cluster without any external connection)

@deis-admin
Copy link
Author

From @babarinde on April 16, 2015 7:23

@aledbf

that's the idea of deis pull :) (http://deis.io/demo-deis-pull-in-action/)

How does deis resolve example.com:5000 to the internal IP of the registry when the registry is not scaled to 3?

@deis-admin
Copy link
Author

From @aledbf on April 16, 2015 13:9

How does deis resolve example.com:5000 to the internal IP of the registry when the registry is not scaled to 3?

If you do not specify a full hostname:port deis pull will use the public docker registry to retrieve the image. Remember that this is a proposal to change that behavior.

Now how deis resolve the registry if there's more than one is the easy part :)
check with etcdctl ls --recursive /deis/registry the key /deis/registry/host contains the registry that is acting as "master" (you can have multiple registries in the cluster but only one is used to pull/push)

@Cryptophobia
Copy link
Contributor

This issue was moved to teamhephy/controller#32

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants