Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add cloudbuild support. Go back to bundling dependencies since this i…
…s clearly the path of least resistence.
- Loading branch information
Showing
211 changed files
with
51,109 additions
and
1 deletion.
There are no files selected for viewing
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,4 +1,3 @@ | ||
.*.sw? | ||
process-exporter | ||
dist | ||
vendor/ |
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,4 @@ | ||
FROM scratch | ||
COPY gopath/bin/process-exporter /process-exporter | ||
ENTRYPOINT ["/process-exporter"] | ||
EXPOSE 9256 |
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 |
---|---|---|
@@ -0,0 +1,32 @@ | ||
steps: | ||
# - name: string | ||
# args: string | ||
# env: string | ||
# dir: string | ||
# id: string | ||
# waitFor: string | ||
# entrypoint: string | ||
# secretEnv: string | ||
# - name: gcr.io/cloud-builders/curl | ||
# args: ['-L', '-s', '-o', 'dep', 'https://github.com/golang/dep/releases/download/v0.5.0/dep-linux-amd64'] | ||
# - name: ubuntu | ||
# args: ['chmod', '+x', 'dep'] | ||
# Setup the workspace | ||
- name: gcr.io/cloud-builders/go | ||
env: ['PROJECT_ROOT=github.com/ncabatoff/process-exporter'] | ||
args: ['env'] | ||
# Run dep in the workspace created in previous step | ||
# - name: gcr.io/cloud-builders/go | ||
# entrypoint: /bin/sh | ||
# dir: gopath/src/github.com | ||
# env: ['GOPATH=/workspace/gopath'] | ||
# args: ['-c', 'cd ncabatoff/process-exporter && /workspace/dep ensure -vendor-only' ] | ||
- name: gcr.io/cloud-builders/go | ||
entrypoint: /bin/sh | ||
dir: gopath/src/github.com | ||
env: ['GOPATH=/workspace/gopath'] | ||
args: ['-c', 'cd ncabatoff/process-exporter && make style vet test build integ install' ] | ||
- name: 'gcr.io/cloud-builders/docker' | ||
args: ['build', '--tag=gcr.io/$PROJECT_ID/process-exporter', '.', '-f', 'Dockerfile.cloudbuild'] | ||
images: ['gcr.io/$PROJECT_ID/process-exporter'] | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.