-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
21 additions
and
61 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
FROM gcr.io/cloud-builders/docker | ||
RUN echo "deb [signed-by=/usr/share/keyrings/cloud.google.gpg] https://packages.cloud.google.com/apt cloud-sdk main" | tee -a /etc/apt/sources.list.d/google-cloud-sdk.list | ||
RUN curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | apt-key --keyring /usr/share/keyrings/cloud.google.gpg add - | ||
RUN apt-get update && apt-get install google-cloud-cli | ||
RUN gcloud source repos clone kne-internal --project=gep-kne | ||
RUN gcloud source repos clone keysight --project=gep-kne | ||
RUN curl -L https://storage.googleapis.com/kubernetes-release/release/v1.26.2/bin/linux/amd64/kubectl > /usr/local/bin/kubectl | ||
RUN curl -Lo go.tar.gz https://go.dev/dl/go1.20.2.linux-amd64.tar.gz | ||
RUN tar -C /usr/local -xzf go.tar.gz | ||
ENV PATH $PATH:/usr/local/go/bin | ||
ENV PATH $PATH:/root/go | ||
RUN go install sigs.k8s.io/[email protected] | ||
RUN git clone https://github.com/openconfig/kne.git | ||
RUN cd kne && go install ./kne_cli && cp ~/go/bin/kne_cli ~/go/bin/kne |
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,5 @@ | ||
steps: | ||
- name: 'gcr.io/cloud-builders/docker' | ||
args: [ 'build','--network=cloudbuild', '-t', 'gcr.io/openconfig-lemming/kne-kind', '-f', 'cloudbuild/Dockerfile', './cloudbuild' ] | ||
images: | ||
- 'gcr.io/openconfig-lemming/kne-kind' |
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.