hub-feedback icon indicating copy to clipboard operation
hub-feedback copied to clipboard

Please integrate with GitLab.com

Open thozza opened this issue 10 years ago • 92 comments
trafficstars

Hi.

Since Gitlab already provides their hosted service for git repositories it would be great to have Docker Hub being integrated with Gitlab.com. Right now I have to mirror my repo with Dockerfile on Github or Bitbucket to be able to have automated builds.

thozza avatar Sep 04 '15 17:09 thozza

It is already in progress :)

kencochrane avatar Sep 04 '15 17:09 kencochrane

@kencochrane great! Thanks for the info. :wink:

thozza avatar Sep 04 '15 18:09 thozza

Do we have an ETA of this integration? Would love to move to hosted docker hub if gitlab support is available

anandchida avatar Nov 16 '15 15:11 anandchida

+1 on giving an eta :) we have had to split our repos between bb and github. If we can get better GL integration it would be a dream come true <3

Jonjoe avatar Nov 28 '15 17:11 Jonjoe

Paging @mattsoldo so he can give an eta.

kencochrane avatar Nov 28 '15 21:11 kencochrane

+1

joeldrapper avatar Dec 10 '15 11:12 joeldrapper

Any update on this issue?

ejaz-ahmed avatar Jan 08 '16 14:01 ejaz-ahmed

:+1:

pgrm avatar Jan 09 '16 11:01 pgrm

+1

jangorecki avatar Jan 30 '16 02:01 jangorecki

@kencochrane Will this work with private hosted GitLabs to or only with the main one? Or same question just different, do you plan on adding support for plain git like quay.io does?

zwarag avatar Apr 27 '16 08:04 zwarag

@pchico83 @dustinlacewell @caervs Can you answer those questions?

kencochrane avatar Apr 27 '16 10:04 kencochrane

Thanks for the feedback! We are actively expanding our list of supported source providers on both Docker Hub and Docker Cloud and are targeting support for GitLab later in 2016.

Re: linking to a custom Git repository, we are happy to explore this option as well. Please upvote here to indicate interest in this feature, which will help us prioritize accordingly.

pkennedyr avatar Apr 27 '16 17:04 pkennedyr

+1 It would be nice to have Gitlab integration, but a custom git solution might be more generic.

jimador avatar May 20 '16 18:05 jimador

I guess we don't need Docker Hub for GitLab any more... https://about.gitlab.com/2016/05/23/gitlab-container-registry/ ;)

thozza avatar May 26 '16 12:05 thozza

would prefer to use docker.io with gitlabs registry. but dockerhub should also support generic git repos

the container-registry on gitlab doesn't really help, the main purpose for adding gitlab support for me is the automated build. i would love to only edit the dockerfile in my gitlab repo and the image gets automatically build by docker hub

c33s avatar Aug 18 '16 01:08 c33s

Any update on this issue? (An earlier post mentioned later in 2016, and now we're in a very early 2017)

DrChr avatar Jan 10 '17 01:01 DrChr

+1

czende avatar Jan 20 '17 00:01 czende

+1

andreasunterhuber avatar Apr 10 '17 13:04 andreasunterhuber

+1 any update on this?

teodorescuserban avatar Apr 14 '17 11:04 teodorescuserban

@c33s gitlab CI offers automatic building and uploading to the registry, much like dockerhub with github integration. it's done by putting the regular build and push commands in a CI dot-file in the repository instead of magically done by the registry through a push webhook, but the end result is the same: push to gitlab ---> automatically update the image in the registry.

see https://about.gitlab.com/2016/05/23/gitlab-container-registry/ ("Use with Gitlab CI" at the bottom)

I just tested this and it works fine.

Their sample .yml is not ideal, for clarity's sake here's mine:

build_image:
  image: docker:git
  services:
  - docker:dind
  script:
    - docker login -u gitlab-ci-token -p $CI_BUILD_TOKEN registry.gitlab.com
    - docker build -t registry.gitlab.com/my-group/my-project .
    - docker push registry.gitlab.com/my-group/my-project:latest
  only:
    - master

hraban avatar Apr 15 '17 22:04 hraban

Thanks @hraban

Jonjoe avatar Apr 16 '17 16:04 Jonjoe

@kencochrane Any update on this? As some of the previous commenters have mentioned this was opened in 2015 with the feature to be added in 2016. It is now 2017 and there is still no real news. It would be great to have gitlab as an option for been a linked account just like github and bitbucket is.

screen shot 2017-07-12 at 20 02 37

Does anyone know if this is still in the works?

TheYorkshireDev avatar Jul 12 '17 19:07 TheYorkshireDev

up

mileo avatar Aug 15 '17 16:08 mileo

@kencochrane @pkennedyr @pchico83 no news on this?

murbano83 avatar Sep 06 '17 16:09 murbano83

Any news on this? For now I figured out a solution similar to @hraban, but complete integration would be great.

metalcamp avatar Oct 20 '17 08:10 metalcamp

@kencochrane Anything new on this?

RAYs3T avatar Jan 29 '18 09:01 RAYs3T

FYI my .gitlab-ci.yml (using a private gitlab runner) that will start building everytime a branch is changed.

variables:
  IMAGE_TAG: $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_NAME

before_script:
  - docker login -u gitlab-ci-token -p $CI_JOB_TOKEN $CI_REGISTRY

build:
  stage: build
  script:
    - docker build -t $IMAGE_TAG .
    - docker push $IMAGE_TAG

teodorescuserban avatar Jan 29 '18 10:01 teodorescuserban

docker cloud will no more since 21 may! ja! so in any case never was sense in "made inside other"!

so this issue has no importance any more!

mckaygerhard avatar Apr 11 '18 00:04 mckaygerhard

@mckaygerhard Docker Hub != Docker Cloud https://www.quora.com/Whats-the-difference-between-Docker-Cloud-and-Docker-Hub

metalcamp avatar Apr 11 '18 08:04 metalcamp

/giphy waiting

olearycrew avatar May 18 '18 22:05 olearycrew