-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
GitHub Enterprise Support #23
Conversation
Seems like our github can't send post request to drone host, but curl can (may be network access problems). I triggered this build by long curl bash line: However no output was shown in browser. In
My image: mischief/docker-golang
env:
- GOROOT=/usr/local/go
- GOPATH=/var/cache/drone
- PATH=$GOPATH/bin:$GOPATH/bin:$PATH
script:
- apt-get -y install libsqlite3-dev sqlite3 mercurial bzr 1> /dev/null 2> /dev/null |
awesome work on the patch so far! it says it is trying to download "bradrydzewski/node" as the image, in your output. I'm wondering if Docker failed to download the image from the index? "bradrydzewski/node" is built on "bradrydzewski/base" which is ~3GB. I've had a lot of problems with the index dropping my connection and failing to complete the download. regarding the build hook triggering from GitHub. can you check if the hook was successfully added to your repository? |
Yes, hook is added and pointing to the right repository (I hope): I tested also docker image from example but results are same:
|
👍 👍 👍 👍 👍 👍 The sooner I get rid of Jenkins, the happier I will be. |
ok, for time being, let's print the |
👍 Another enterprise user that is interested in drone. |
@@ -70,9 +70,9 @@ func (r *Repo) IsGit() bool { | |||
return true | |||
case strings.HasPrefix(r.Path, "ssh:https://git@"): | |||
return true | |||
case strings.HasPrefix(r.Path, "https://github.com/"): | |||
case strings.HasPrefix(r.Path, "https://github"): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wonder if perhaps we don't need this particular branch in the validation?
Seems like case strings.HasSuffix(r.Path, ".git")
should be enough while https://github.com/
might be a bit superfluous since I don't believe there is any restriction on hosted github's hostname having to be prefixed with https://github
(though it is a nice convention). I believe it is optional to use https
(though it is recommended AFAIK).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
FYI, I don't see a perfect way to check for a subversion URL repo which github also supports.
ahh, that makes sense. As of version 0.8 Docker won't follow symlinks when building an image
interesting, sounds like an issue with the github api |
But how can I move
I found another go-github client instance, that wasn't pointing to I got question about this block of code - where |
good catch! the switch should actually look like this:
the /tmp directory only stores a few small files during the build process:
the actual Docker containers and images are stored in |
Yes, changing switch is fixed the status reporting. Thank you!
I got |
any luck with the Docker issues? if the pull request is ready I'll merge it this afternoon |
I moved |
Feel free to merge. I don't think I will able to solve networking issue anytime soon. |
Good news! We got it up and running. Build takes about 20 seconds from push - and it's awesome! |
So far so good. Can it be merged? |
yes, I just need to prepare some sort of database migration. I very much look forward to merging this patch! thanks for all the hard work |
I moved this feature to branch and reopened another pull-request for merge |
#23) Abstracting the api/git/web routers will allow us to replace API routing (and potentially web?), while keeping the rest the same.
…lt/CODE/gitness (#23)
This pull request allows specify custom GitHub host for enterprise support.
Roadmap:
go-github
)/tmp
directory anywhere)