项目作者: myENA

项目描述 :
go-get metadata server supporting bitbucket private repositories via ssh
高级语言: Go
项目地址: git://github.com/myENA/bbgoget.git
创建时间: 2018-04-02T21:49:56Z
项目社区:https://github.com/myENA/bbgoget

开源协议:MIT License

下载


Quick and dirty hack to make nice with bitbucket privately hosted repositories that only allow ssh access. In order to set this up,

  1. go get github.com/myENA/bbgoget

Alternately you can download the rpm or the tarball from the Releases tab.

As an example configuration, with Apache httpd running on 443 proxying for bitbucket, you could add the following to
httpd.conf section before the redirects to bitbucket’s http service:

  1. RewriteEngine on
  2. RewriteCond "%{QUERY_STRING}" "go-get"
  3. RewriteRule "^/(.*)" "http://localhost:8800/$1" [P]

This assumes bbgoget running locally on port 8800.

The integration with bitbucket is minimal / dumb. It has no knowledge whether or not you actually have a repository
at the requested location. It doesn’t really need to, go get will figure out soon enough if the response ends up
going nowhere. The up side is this makes configuration easier. No API access required, minimal configuration.
As an added benefit of being unconcerned with tight integration with bitbucket, there is a very good chance this
would work with other git servers. Also - and most importantly - this made it very easy to author.

We’ve only tested it with our specific configuration. This also enables glide get and dep ensure to work with our private repos.

This also makes dep ensure and glide get play nice with bitbucket private hosted ssh only repos.