Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update bazel image to use multirepo-compatible bootstrap args #2731

Merged
merged 1 commit into from
May 30, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions images/pull_kubernetes_bazel/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -30,24 +30,24 @@ RUN apt-get update && apt-get install -y \
python-pip && \
apt-get clean

ENV BAZEL_VERSION 0.4.5
RUN wget "https://github.com/bazelbuild/bazel/releases/download/${BAZEL_VERSION}/bazel_${BAZEL_VERSION}-linux-x86_64.deb" && \
ENV BAZEL_VERSION 0.5.0
RUN wget -q "https://github.com/bazelbuild/bazel/releases/download/${BAZEL_VERSION}/bazel_${BAZEL_VERSION}-linux-x86_64.deb" && \
dpkg -i "bazel_${BAZEL_VERSION}-linux-x86_64.deb" && \
rm "bazel_${BAZEL_VERSION}-linux-x86_64.deb"

ENV GCLOUD_VERSION 149.0.0
RUN wget https://dl.google.com/dl/cloudsdk/channels/rapid/downloads/google-cloud-sdk-$GCLOUD_VERSION-linux-x86_64.tar.gz && \
ENV GCLOUD_VERSION 156.0.0
RUN wget -q https://dl.google.com/dl/cloudsdk/channels/rapid/downloads/google-cloud-sdk-$GCLOUD_VERSION-linux-x86_64.tar.gz && \
tar xf google-cloud-sdk-$GCLOUD_VERSION-linux-x86_64.tar.gz && \
rm google-cloud-sdk-$GCLOUD_VERSION-linux-x86_64.tar.gz && \
./google-cloud-sdk/install.sh
ENV PATH "/google-cloud-sdk/bin:${PATH}"

ENV NODE_VERSION 6.10.0
RUN wget https://nodejs.org/dist/v${NODE_VERSION}/node-v${NODE_VERSION}-linux-x64.tar.xz && \
RUN wget -q https://nodejs.org/dist/v${NODE_VERSION}/node-v${NODE_VERSION}-linux-x64.tar.xz && \
tar xf node-v${NODE_VERSION}-linux-x64.tar.xz --strip-components=1 -C /usr && \
rm node-v${NODE_VERSION}-linux-x64.tar.xz && \
npm install -g mocha

WORKDIR /workspace
ADD runner /
ENTRYPOINT ["/bin/bash", "/runner"]
COPY runner coalesce.py /usr/local/bin/
ENTRYPOINT ["/bin/bash", "/usr/local/bin/runner"]
2 changes: 1 addition & 1 deletion images/pull_kubernetes_bazel/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

VERSION = 0.11
VERSION = 0.12

image:
docker build -t "gcr.io/k8s-testimages/bazelbuild:$(VERSION)" .
Expand Down
2 changes: 1 addition & 1 deletion images/pull_kubernetes_bazel/runner
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ set -o pipefail

git clone https://github.com/kubernetes/test-infra
./test-infra/jenkins/bootstrap.py \
--repo="k8s.io/${REPO_NAME:-test-infra}" \
--repo="k8s.io/${REPO_NAME}=${PULL_REFS:-master}" \
--job=${JOB_NAME} \
--service-account=${GOOGLE_APPLICATION_CREDENTIALS} \
"$@"
9 changes: 3 additions & 6 deletions prow/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -498,9 +498,8 @@ presubmits:
trigger: "@k8s-bot (pull-test-infra-bazel |bazel )?test this"
spec:
containers:
- image: gcr.io/k8s-testimages/bazelbuild:0.11
- image: gcr.io/k8s-testimages/bazelbuild:0.12
args:
- "--pull=$(PULL_REFS)"
- "--upload=gs://kubernetes-jenkins/pr-logs"
- "--git-cache=/root/.cache/git"
- "--clean"
Expand Down Expand Up @@ -815,9 +814,8 @@ postsubmits:
- master
spec:
containers:
- image: gcr.io/k8s-testimages/bazelbuild:0.11
- image: gcr.io/k8s-testimages/bazelbuild:0.12
args:
- "--branch=$(PULL_REFS)"
- "--upload=gs://kubernetes-jenkins/logs"
- "--git-cache=/root/.cache/git"
- "--clean"
Expand Down Expand Up @@ -888,9 +886,8 @@ periodics:
interval: 1h
spec:
containers:
- image: gcr.io/k8s-testimages/bazelbuild:0.11
- image: gcr.io/k8s-testimages/bazelbuild:0.12
args:
- "--branch=master"
- "--upload=gs://kubernetes-jenkins/logs"
- "--git-cache=/root/.cache/git"
- "--clean"
Expand Down