-
Notifications
You must be signed in to change notification settings - Fork 175
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Genjobs: update docs, create Dockerfile, and make go submodule
- Loading branch information
Travis Clarke
committed
Nov 28, 2019
1 parent
5971f38
commit 2b547da
Showing
9 changed files
with
767 additions
and
19 deletions.
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
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
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,13 @@ | ||
FROM golang:1.13 as build-env | ||
|
||
WORKDIR /go/src/genjobs | ||
|
||
COPY . /go/src/genjobs | ||
|
||
RUN go build -o /go/bin/genjobs | ||
|
||
FROM gcr.io/distroless/base:22bd467b41e5e656e31db347265fae118db166d9 | ||
|
||
COPY --from=build-env /go/bin/genjobs / | ||
|
||
ENTRYPOINT ["/genjobs"] |
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,33 @@ | ||
# Copyright 2019 Istio 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. | ||
|
||
PROJECT = istio-testing | ||
HUB = gcr.io | ||
VERSION ?= 0.0.1 | ||
|
||
.PHONY: deploy | ||
deploy: image push | ||
|
||
.PHONY: gen-private-jobs | ||
gen-private-jobs: | ||
@./gen-private-jobs.sh | ||
|
||
.PHONY: image | ||
image: | ||
docker build -t "$(HUB)/$(PROJECT)/genjobs:$(VERSION)" -t "$(HUB)/$(PROJECT)/genjobs:latest" . | ||
|
||
.PHONY: push | ||
push: | ||
docker push "$(HUB)/$(PROJECT)/genjobs:$(VERSION)" | ||
docker push "$(HUB)/$(PROJECT)/genjobs:latest" |
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
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,14 @@ | ||
module istio.io/test-infra/prow/genjobs | ||
|
||
go 1.13 | ||
|
||
replace k8s.io/client-go => k8s.io/client-go v0.0.0-20190918200256-06eb1244587a | ||
|
||
require ( | ||
github.com/spf13/pflag v1.0.5 | ||
golang.org/x/crypto v0.0.0-20190701094942-4def268fd1a4 // indirect | ||
k8s.io/api v0.0.0-20190918195907-bd6ac527cfd2 | ||
k8s.io/apimachinery v0.0.0-20190817020851-f2f3a405f61d | ||
k8s.io/test-infra v0.0.0-20191128022303-0a9f4b1a27b0 | ||
sigs.k8s.io/yaml v1.1.0 | ||
) |
Oops, something went wrong.