Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No way to change source project for automated build #313

Closed
freeformz opened this issue Aug 25, 2015 · 54 comments
Closed

No way to change source project for automated build #313

freeformz opened this issue Aug 25, 2015 · 54 comments

Comments

@freeformz
Copy link

For whatever reason (there are several) heroku/cedar is setup to build from tt/stack-images. We'd like to be able to change the source project to heroku/stack-images instead w/o having to nuke the automated build / project and break everyone's links.

@danlamanna
Copy link

+1

2 similar comments
@tt
Copy link

tt commented Sep 11, 2015

👍

@hg-jt
Copy link

hg-jt commented Sep 29, 2015

+1

@markshust
Copy link

👍

@jlsalvador
Copy link

👍 Do you need some help to make that this happens?

@nhumrich
Copy link

nhumrich commented Dec 6, 2015

👍

13 similar comments
@kennylim86
Copy link

+1

@ghost
Copy link

ghost commented Dec 8, 2015

👍

@shokohara
Copy link

👍

@zmarty
Copy link

zmarty commented Jan 10, 2016

👍

@samos123
Copy link

+1

@davidcarboni
Copy link

+1

@raphi
Copy link

raphi commented Jan 30, 2016

+1

@nuxlli
Copy link

nuxlli commented Jan 31, 2016

👍

@sjackman
Copy link

sjackman commented Mar 2, 2016

👍

@jangorecki
Copy link

👍

@btiernay
Copy link

👍

@andrew804
Copy link

👍

@Mahmoudz
Copy link

Mahmoudz commented Apr 4, 2016

👍

@greyltc
Copy link

greyltc commented May 1, 2016

👍 This feature is pretty important to me.

@bharath-cchmc
Copy link

+1

@Dids
Copy link

Dids commented May 12, 2016

+1 especially now that Github's gone all unlimited on us, so we can finally move from Bitbucket to Github, which would break automated Docker Hub builds.

@pchico83
Copy link

This is supported in Docker Cloud Build service, we are prioritizing build development in Docker Cloud over Docker Hub.

@hurricanehrndz
Copy link

+1

4 similar comments
@cyrille-leclerc
Copy link

+1

@hrchu
Copy link

hrchu commented May 31, 2016

+1

@jljorgenson18
Copy link

+1

@svlentink
Copy link

+1

@micahwedemeyer
Copy link

👍

2 similar comments
@elcodedocle
Copy link

+1

@rgeorgeoff
Copy link

+1

@toschneck
Copy link

unfortunately the docker-cloud builds are pretty unstable, so also a 👍 from me!
Especially if you get forced by the Docker brand guidelines https://www.docker.com/brand-guidelines to rename your github repository, you currently have no option to do this without loss of all your docker-hub repository stars and comments 😞

@rafaelstz
Copy link

+1

3 similar comments
@t3chn0m4g3
Copy link

+1

@Arno0x
Copy link

Arno0x commented Dec 1, 2016

+1

@rgerkin
Copy link

rgerkin commented Dec 8, 2016

+1

@pkennedyr
Copy link
Contributor

pkennedyr commented Dec 8, 2016

Support for modifying the source project of an automated build is currently available in Docker Cloud. We encourage you to try out Docker Cloud as this is where you will find support for this and many other autobuild features.

Also, marking this thread as won't fix since product development is currently focused on Docker Cloud: https://forums.docker.com/t/future-updates-on-docker-hub-docker-cloud/20498

@michaelmior
Copy link

To clarify how this works (since I just did it for one of my own projects), here are the steps:

  1. Log on to Docker Hub and under the Build Settings for the appropriate repository, uncheck " When active, builds will happen automatically on pushes."
  2. Log on to Docker Cloud.
  3. Under "Cloud Settings" (left menu) click the plug next to GitHub to authenticate.
  4. Back on Docker Cloud, go to the Repositories section (left menu).
  5. Select the same Docker repository you want to build (which should already exist).
  6. Under the Builds tab, select "Configure Automated Builds"
  7. Select the new repository and branch from GitHub using the dropdown menus.
  8. Select "Build on Docker Cloud's infrastructure" and pick any node type.
  9. Click "Save and Build"

Now you're done and the image should be built from the new GitHub repository.

@crayfishx
Copy link

I followed the above steps outlined by @michaelmior (thanks for that!). Although the image is now building from the correct source repo there is still an issue with some metadata on the Docker hub site. https://hub.docker.com/r/crayfishx/jerakia/ was moved from the GitHub repo crayfishx/jerakia-docker to crayfishx/jerakia - the build is working but there are two issues....

  • The "source repository" link on the main page still points to the old GitHub repo
  • Clicking "build details" and the latest build shows the old Dockerfile and build details despite the actual image being correct

Anyone know what I need to do to get Docker Hub to "forget" the old builds and repo?

Thanks

@gdvalderrama
Copy link

@mghazizadeh Yes, you can change the repository in docker cloud, but I can't change the service (eg: I can't change the source from bitbucket to github).

@petk
Copy link

petk commented May 9, 2018

I understand that there are a lot of old services needed to be maintained but coming from the docs where it says that the hub.docker.php is the main Docker public registry and not having any advanced features there anymore is inconsistency and strange approach. Images are still pulled from hub.docker.com...

Plus not to mention, stars are gone when recreating the repository on hub.docker.com :)

@kjeldflarup
Copy link

@petk There is a possibility to create a new image, and then change Dockerfile for the current to

from newimage:tag

@vveider
Copy link

vveider commented Jun 14, 2018

@kjeldflarup - that's not it, unfortunately.

@olivierdalang
Copy link

@crayfishx Did you find a way to change the link to the source repo and the dockerfiles details ?

@philippgille
Copy link

A few weeks ago there has been the announcement that Docker Cloud and Docker Store would now be part of Docker Hub: https://blog.docker.com/2018/12/the-new-docker-hub/

But it seems that it's still not possible to change the underlying GitHub repo of a Docker repo. I'm currently looking on https://cloud.docker.com/repository/docker/<user>/<repo>/hubbuilds.

@pkennedyr: You closed this issue two years ago. Maybe you can reopen it because according to the blog post Docker Hub is now the focus of development and the feature is really useful?

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

No branches or pull requests