https://github.com/sbz/auto-hound
https://github.com/sbz/auto-hound
github golang
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/sbz/auto-hound
- Owner: sbz
- Created: 2018-02-21T23:03:20.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2019-04-25T18:34:59.000Z (about 7 years ago)
- Last Synced: 2025-03-11T16:23:38.346Z (over 1 year ago)
- Topics: github, golang
- Language: Go
- Homepage:
- Size: 7.81 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# auto-hound
Auto-configure etsy's [hound](https://github.com/etsy/hound) project to search into multiple repositories.
This contains the script [auto-hound](/auto-hound.go) which use the [go-github](https://github.com/google/go-github) project to query GitHub.
You can pass the following environment variables to the script:
* `ORG_NAME`: github organization name
* `ORG_TYPE`: github organization privacy type
* `ORG_TOPIC`: github organization topics (repos topics filter)
# Build
## Binary
```
dep ensure
GOOS=linux go build .
```
## Docker image
```
docker build --tag sbz/auto-hound .
```
# Run
```
docker run --name auto-hound --rm --detach --publish 6080:6080 sbz/auto-hound
```
# Run with environment and random ports
```
docker run --name auto-hound --rm --detach -e ORG_TYPE=public -e ORG_NAME=freebsd -P sbz/auto-hound
```
To figure out the port bound on the host, you can use `docker port auto-hound` or the
following command [docker inspect](https://docs.docker.com/engine/reference/commandline/inspect):
```
docker inspect --format '{{ (index (index .NetworkSettings.Ports "6080/tcp") 0).HostPort }}' auto-hound
```