-
Notifications
You must be signed in to change notification settings - Fork 828
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
Service for searching across kubernetes git repositories #96
Conversation
oh i have one running if you want to try it - http://dims.dynu.net/hound/ |
hound/Dockerfile
Outdated
|
||
COPY config.json /data/config.json | ||
|
||
RUN apt-get update && apt-get install -y --no-install-recommends \ |
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.
If you are going to build in a container, why not use the golang container?
This is going to produce a pretty big image - should it use build stages to minimize?
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.
Ack. switching to FROM golang
hound/config.json
Outdated
"dbpath": "data", | ||
"repos": { | ||
"kubernetes": { | ||
"url": "https://github.com/kubernetes/kubernetes.git", |
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.
no way to say "all repos under an org" ? feature request time?
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.
will check if they support this.
hound/deployment.yaml
Outdated
resources: | ||
limits: | ||
cpu: 0.1 | ||
memory: 128Mi |
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.
empirical or wild guess?
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.
copy-paste. removing
hound/deployment.yaml
Outdated
template: | ||
metadata: | ||
labels: | ||
app: gcsweb |
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.
copy-paster artifact?
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.
yep. fixing
hound/deployment.yaml
Outdated
terminationGracePeriodSeconds: 30 | ||
containers: | ||
- name: hound | ||
image: gcr.io/google_containers/hound:0.1.0 |
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.
most of our images are tagged vX.Y.Z
now
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.
ack switching
hound/service.yaml
Outdated
type: LoadBalancer | ||
# FIXME(dims) - we need a fixed IP address for the load balancer | ||
#loadBalancerIP: 104.197.177.166 | ||
ports: |
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.
we really need to get kube-lego or something running in the utility cluster, for HTTPS
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.
Ack.
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.
indeed. #38 :)
67fc1cb
to
1f5e40e
Compare
hound/Makefile
Outdated
# limitations under the License. | ||
|
||
TAG = v0.1.0 | ||
IMAGE_NAME = gcr.io/google_containers/hound |
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.
can we please not put this in gcr.io/google-containers? there's already too much there.
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.
@ixdy what's a good spot? i was just following the previous pattern.
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'm not sure. we may need a utility project or something.
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.
is there a reason to build our own image rather than just using the upstream image from dockerhub and loading config.json as a configmap?
hound/Dockerfile
Outdated
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
FROM golang |
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.
for reproducibility, maybe specify a version here?
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.
ack. doing that
hound/Makefile
Outdated
# limitations under the License. | ||
|
||
TAG = v0.1.0 | ||
IMAGE_NAME = gcr.io/google_containers/hound |
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'm not sure. we may need a utility project or something.
hound/Dockerfile
Outdated
|
||
ENV GOPATH /go | ||
|
||
RUN go get github.com/etsy/hound/cmds/... |
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.
this is also not reproducible. :(
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.
they dont' have any recent tags, let me pin it to a recent SHA/hash
I don't know - I don't really want to deploy something we don't control.
…On Fri, Jan 5, 2018 at 11:58 AM, Jeff Grafton ***@***.***> wrote:
***@***.**** commented on this pull request.
------------------------------
In hound/Makefile
<#96 (comment)>:
> +# Copyright 2017 The Kubernetes Authors.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+TAG = v0.1.0
+IMAGE_NAME = gcr.io/google_containers/hound
can we please not put this in gcr.io/google-containers? there's already
too much there.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#96 (review)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AFVgVGyK4VjmSxUPw-ELX1WHDGZJj3wUks5tHn7ZgaJpZM4RDoju>
.
|
published @ docker.io/dims/hound:v0.1.0 |
/unassign |
@dims did you mean to push a new commit here, too? |
1f5e40e
to
a8894ab
Compare
whoops! done @ixdy |
If we are going to host this, the directory should be named |
@thockin done |
@thockin the rename is done. PTAL |
let's revive this if needed. |
Was there a reason we quit this effort? This looks pretty cool. |
I really want this. @dims - worth reviving? |
672fafb
to
64e4316
Compare
@thockin happy to! |
worst case we can throw it on GAE ( https://gist.github.com/dims/2cf8363d91c95535eecd586f57ec0ccf ) though we have to fix up the ports from 6080 to 8080 for that |
i am running an instance on GAE if you want to kick the tires - https://k8s-code.appspot.com - don't know how long i'll leave it up there (not sure how much it will cost) |
404
…On Wed, Apr 4, 2018 at 6:49 AM Davanum Srinivas ***@***.***> wrote:
i am running an instance on GAE if you want to kick the tires -
https://k8scode.appspot.com - don't know how long i'll leave it up there
(not sure how much it will cost)
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#96 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AFVgVJEhSi2Y9yrEf0bpEqqnUDOM-3viks5tlM8-gaJpZM4RDoju>
.
|
https://k8s-code.appspot.com (note the '-') |
This is awesome (and really fast). Let the cross-repo auditing begin!
…On Fri, Apr 6, 2018, 8:13 AM Davanum Srinivas ***@***.***> wrote:
https://k8s-code.appspot.com (note the '-')
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#96 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AA3JwUXL075hTspItQ33-DTqYqifoJ9Qks5tl4YlgaJpZM4RDoju>
.
|
codesearch.k8s.io/deployment.yaml
Outdated
terminationGracePeriodSeconds: 30 | ||
containers: | ||
- name: hound | ||
image: gcr.io/google_containers/hound:v0.1.0 |
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.
You should probably have a readiness probe since you say it takes a while to build the index?
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.
ack adding
codesearch.k8s.io/deployment.yaml
Outdated
image: gcr.io/google_containers/hound:v0.1.0 | ||
ports: | ||
- containerPort: 6080 | ||
protocol: TCP |
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.
newline at end?
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.
ack fixing
spec: | ||
selector: | ||
app: hound | ||
type: LoadBalancer |
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.
Why not ingress so we can get HTTPS?
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.
just following the previous pattern. i am not sure of what's available in the infrastructure
codesearch.k8s.io/config.json
Outdated
{ | ||
"max-concurrent-indexers": 2, | ||
"dbpath": "data", | ||
"repos": { |
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.
Question from before - can we make it pull from all repos?
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.
also, do we need to index kubernetes-sigs and incubator?
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.
adding a python script to fetch all the ones from kubernetes/*, once we get this working, we can pull other orgs
codesearch.k8s.io/Dockerfile
Outdated
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
FROM golang:1.9.2 |
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.
does this produce an enormous result image, still?
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.
https://hub.docker.com/r/k8scode/hound/tags/ shows compressed size is 130 MB
I am just going to maintain the code here - https://github.com/dims/k8s-code.appspot.com since https://k8s-code.appspot.com/ is chugging along fine. /close |
/reopen |
@thockin @ixdy can you please help move this to production? So i can shut down the one running on my personal GAE account? ( http://k8s-code.appspot.com/ ) |
Let's try this again when we have access to GCE/GKE credits for running such services /close |
No description provided.