-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Creating a Golang version of reckoner * do snapshots * remove docker build using rok8s * build python 3.9 * different image
- Loading branch information
Andrew Suderman
authored
Aug 6, 2021
1 parent
66a8464
commit 7e626e7
Showing
34 changed files
with
2,754 additions
and
66 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,3 +13,7 @@ reckoner/version.txt | |
installer/reckoner.spec | ||
node_modules | ||
/dist | ||
/bin | ||
|
||
coverage.txt | ||
/reckoner-go |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
builds: | ||
- ldflags: | ||
- -X main.version={{.Version}} -X main.commit={{.Commit}} -s -w | ||
goarch: | ||
- amd64 | ||
- arm | ||
- arm64 | ||
env: | ||
- CGO_ENABLED=0 | ||
goos: | ||
- linux | ||
- darwin | ||
goarm: | ||
- 6 | ||
- 7 | ||
dockers: | ||
- image_templates: | ||
- "quay.io/fairwinds/reckoner:go-{{ .Tag }}" | ||
- "quay.io/fairwinds/reckoner:go-v{{ .Major }}" | ||
- "quay.io/fairwinds/reckoner:go-v{{ .Major }}.{{ .Minor }}" | ||
dockerfile: Dockerfile-go |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
--- | ||
repos: | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v2.3.0 | ||
hooks: | ||
- id: check-json | ||
- id: detect-private-key | ||
- id: trailing-whitespace | ||
exclude: > | ||
(?x)^( | ||
docs/.+ | ||
)$ | ||
- id: check-added-large-files | ||
args: ['--maxkb=500'] | ||
- id: check-byte-order-marker | ||
- id: check-merge-conflict | ||
- id: check-symlinks | ||
- id: end-of-file-fixer | ||
exclude: > | ||
(?x)^( | ||
docs/.+ | ||
)$ | ||
- id: check-executables-have-shebangs | ||
- id: flake8 | ||
- id: no-commit-to-branch | ||
args: [--branch, master] | ||
- id: pretty-format-json | ||
args: ['--autofix'] | ||
- repo: https://github.com/jumanjihouse/pre-commit-hooks | ||
rev: 2.1.5 | ||
hooks: | ||
- id: forbid-binary | ||
exclude: > | ||
(?x)^( | ||
.+\.png| | ||
.+\.woff| | ||
.+\.woff2| | ||
.+\.tff| | ||
.+\.ico | ||
)$ | ||
- id: shellcheck | ||
- repo: https://github.com/dnephin/pre-commit-golang.git | ||
rev: v0.3.5 | ||
hooks: | ||
- id: go-fmt | ||
- id: golangci-lint | ||
- id: go-vet | ||
- id: go-unit-tests |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
FROM python:3.8 | ||
|
||
ADD . /reckoner | ||
ADD . /bin/reckoner | ||
RUN pip install ./reckoner | ||
|
||
ENTRYPOINT ["reckoner"] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
FROM scratch | ||
|
||
USER nobody | ||
COPY reckoner / | ||
WORKDIR / | ||
ENTRYPOINT ["/reckoner"] |
Oops, something went wrong.