File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1414
1515ARG NODE_VERSION=14
1616
17- FROM node:${NODE_VERSION}-alpine as build
17+ FROM golang:1.19.4-alpine3.17 as build
1818
19- RUN apk add --no-cache curl tar python3
19+ RUN apk add --no-cache curl tar python3 git
2020
2121# Install gcloud
2222RUN curl https://dl.google.com/dl/cloudsdk/release/google-cloud-sdk.tar.gz > /tmp/google-cloud-sdk.tar.gz
@@ -30,9 +30,18 @@ RUN curl https://github.com/googleapis/repo-automation-bots/releases/download/fl
3030 -o /bin/flakybot -s -L \
3131 && chmod +x /bin/flakybot
3232
33+ # Build btlr
34+ RUN git clone https://github.com/googleapis/btlr.git \
35+ && cd btlr \
36+ && git checkout 9d264287b11b3bb556a3b7204c5b61bd1da4d96c \
37+ && go build \
38+ && cp btlr /bin/btlr \
39+ && chmod 0755 /bin/btlr
40+
3341FROM node:${NODE_VERSION}-alpine
3442
3543COPY --from=build /bin/flakybot /bin/flakybot
44+ COPY --from=build /bin/btlr /bin/btlr
3645
3746# Hack for not found error with flakybot
3847RUN mkdir /lib64 && ln -s /lib/libc.musl-x86_64.so.1 /lib64/ld-linux-x86-64.so.2
Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ export PROJECT_ROOT=$(pwd)
2727test_script=" ${PROJECT_ROOT} /ci/cloudbuild/run_single_test.sh"
2828
2929# btlr binary
30- btlr_bin=" ${PROJECT_ROOT} /ci /btlr"
30+ btlr_bin=" /bin /btlr"
3131
3232if [ ${BUILD_TYPE} == " presubmit" ]; then
3333
You can’t perform that action at this time.
0 commit comments