Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kelseyhightower/contributors
Display GitHub contributors for a specific repo.
https://github.com/kelseyhightower/contributors
Last synced: 1 day ago
JSON representation
Display GitHub contributors for a specific repo.
- Host: GitHub
- URL: https://github.com/kelseyhightower/contributors
- Owner: kelseyhightower
- License: mit
- Created: 2014-08-02T19:11:38.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2017-07-28T06:32:36.000Z (over 7 years ago)
- Last Synced: 2024-11-08T08:39:50.563Z (5 days ago)
- Language: Go
- Size: 270 KB
- Stars: 124
- Watchers: 4
- Forks: 22
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Contributors App
Display GitHub contributors for a specific repo.
The Contributors App is designed to run in the scratch Docker image. The total size of the Docker image including the contributors binary is less than 6MB.
- Avoid "x509: failed to load system roots and no roots provided" by bundling root certificates.
- Avoid dynamic linking by using the pure Go net package (-tags netgo)
- Avoid dynamic linking by disabling cgo (CGO_ENABLED=0)
- Reduce binary size by omitting dwarf information (-ldflags '-w')## Build
### Binary
The following command will produce a statically linked Go binary without debugging (dwarf) information.
```
CGO_ENABLED=0 GOOS=linux go build -a -tags netgo -ldflags '-w' .
```### Docker Image
```
docker build -t kelseyhightower/contributors .
```## Run
```
docker run -d -P kelseyhightower/contributors
```