diff --git a/kythe/release/kubernetes/buildkite/Dockerfile b/kythe/release/kubernetes/buildkite/Dockerfile deleted file mode 100644 index bccce4c765..0000000000 --- a/kythe/release/kubernetes/buildkite/Dockerfile +++ /dev/null @@ -1,43 +0,0 @@ -# Copyright 2018 The Kythe Authors. All rights reserved. -# -# 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. - -FROM buildkite/agent:3-ubuntu - -ENV DEBIAN_FRONTEND=noninteractive - -RUN apt-get update && \ - apt-get upgrade -y && \ - apt-get install -y \ - # Setup dependencies - gcc git curl wget \ - # Required by go tool build of Kythe - libleveldb-dev libbrotli-dev \ - # rules_go dependencies \ - patch \ - # Kythe C++ dependencies - clang uuid-dev flex bison \ - # Kythe misc local tool dependencies - asciidoc source-highlight graphviz parallel && \ - apt-get clean - -# Install Go -RUN curl -L https://dl.google.com/go/go1.11.5.linux-amd64.tar.gz | tar -C /usr/local -xz - -ENV PATH=$PATH:/usr/local/go/bin - -# Install bazelisk. -RUN go get github.com/bazelbuild/bazelisk && \ - ln -s /root/go/bin/bazelisk /usr/local/bin/bazel - -ADD bazelrc /root/.bazelrc diff --git a/kythe/release/kubernetes/buildkite/bazelrc b/kythe/release/kubernetes/buildkite/bazelrc deleted file mode 100644 index faa0db6c83..0000000000 --- a/kythe/release/kubernetes/buildkite/bazelrc +++ /dev/null @@ -1,3 +0,0 @@ -build --noshow_loading_progress -test --test_output=errors --test_summary=terse --test_verbose_timeout_warnings -test --test_tag_filters=-flaky diff --git a/kythe/release/kubernetes/buildkite/cloudbuild.yaml b/kythe/release/kubernetes/buildkite/cloudbuild.yaml deleted file mode 100644 index 802643abc5..0000000000 --- a/kythe/release/kubernetes/buildkite/cloudbuild.yaml +++ /dev/null @@ -1,16 +0,0 @@ -steps: -- name: gcr.io/cloud-builders/docker - id: 'Build image' - args: - - build - - -t - - gcr.io/$PROJECT_ID/buildkite-agent - - . -- name: gcr.io/cloud-builders/docker - id: 'Push image' - args: - - push - - gcr.io/$PROJECT_ID/buildkite-agent -timeout: 1800s # 30 minute timeout -images: - - gcr.io/$PROJECT_ID/buildkite-agent diff --git a/kythe/release/kubernetes/buildkite/deploy.sh b/kythe/release/kubernetes/buildkite/deploy.sh deleted file mode 100755 index 55318dddde..0000000000 --- a/kythe/release/kubernetes/buildkite/deploy.sh +++ /dev/null @@ -1,29 +0,0 @@ -#!/bin/bash -e -# -# Copyright 2019 The Kythe Authors. All rights reserved. -# -# 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. -# -# Script to build and deploy the kythe-repo/buildkite-agent on Kubernetes. -# Note: if only the image has changed, kubectl apply will not work by itself -# and must be followed by: -# kubectl rollout restart deployment.app/buildkite-agent -cd "$(dirname "$0")" - -if [[ "$1" == --cloud ]]; then - gcloud builds submit . -else - docker build -t gcr.io/kythe-repo/buildkite-agent . - docker push gcr.io/kythe-repo/buildkite-agent -fi -kubectl apply -f deployment.yaml diff --git a/kythe/release/kubernetes/buildkite/deployment.yaml b/kythe/release/kubernetes/buildkite/deployment.yaml deleted file mode 100644 index a90565e0b3..0000000000 --- a/kythe/release/kubernetes/buildkite/deployment.yaml +++ /dev/null @@ -1,42 +0,0 @@ -apiVersion: apps/v1 -kind: Deployment -metadata: - name: buildkite-agent - labels: - app: buildkite-agent -spec: - replicas: 1 - selector: - matchLabels: - app: buildkite-agent - template: - metadata: - labels: - app: buildkite-agent - spec: - containers: - - name: buildkite-agent - image: gcr.io/kythe-repo/buildkite-agent - imagePullPolicy: Always - securityContext: - privileged: true - env: - - name: BUILDKITE_AGENT_TOKEN - valueFrom: {secretKeyRef: {name: buildkite-agent, key: token}} - - name: GOOGLE_APPLICATION_CREDENTIALS - value: /var/secrets/google/kythe-repo-e018b733306f.json - volumeMounts: - - name: google-cloud-key - mountPath: /var/secrets/google - - name: docker-binary - mountPath: /usr/bin/docker - - name: docker-socket - mountPath: /var/run/docker.sock - volumes: - - name: google-cloud-key - secret: - secretName: buildkite-agent-rbe-key - - name: docker-binary - hostPath: {path: /usr/bin/docker} - - name: docker-socket - hostPath: {path: /var/run/docker.sock} diff --git a/kythe/release/kubernetes/buildkite/setup.sh b/kythe/release/kubernetes/buildkite/setup.sh deleted file mode 100755 index e36971beb3..0000000000 --- a/kythe/release/kubernetes/buildkite/setup.sh +++ /dev/null @@ -1,24 +0,0 @@ -#!/bin/bash -e -# -# Copyright 2019 The Kythe Authors. All rights reserved. -# -# 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. -# -# Script for configuring kubectl to talk to the buildkite-agent cluster by -# default. -# This should be run prior to running deploy.sh, but only needs to be run once. -CLUSTER=buildkite-agent-cluster -ZONE=us-central1-a -PROJECT=kythe-repo - -gcloud container clusters get-credentials $CLUSTER --zone $ZONE --project $PROJECT