Skip to content

Commit 416ae1e

Browse files
author
Takashi Matsuo
authored
build: use flakybot release binary (#520)
1 parent 6325671 commit 416ae1e

File tree

1 file changed

+11
-8
lines changed

1 file changed

+11
-8
lines changed

ci/cloudbuild/Dockerfile

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,9 @@
1414

1515
ARG NODE_VERSION=14
1616

17-
FROM golang:1.18-alpine as build
17+
FROM node:${NODE_VERSION}-alpine as build
1818

19-
RUN apk add --no-cache git curl tar python3
20-
21-
RUN git clone https://github.com/googleapis/repo-automation-bots.git && \
22-
cd repo-automation-bots/packages/flakybot && \
23-
go build && \
24-
cp flakybot /bin/flakybot && \
25-
chmod +x /bin/flakybot
19+
RUN apk add --no-cache curl tar python3
2620

2721
# Install gcloud
2822
RUN curl https://dl.google.com/dl/cloudsdk/release/google-cloud-sdk.tar.gz > /tmp/google-cloud-sdk.tar.gz
@@ -31,9 +25,18 @@ RUN mkdir -p /usr/local/gcloud \
3125
&& tar -C /usr/local/gcloud -xvf /tmp/google-cloud-sdk.tar.gz \
3226
&& /usr/local/gcloud/google-cloud-sdk/install.sh
3327

28+
# Download flakybot release
29+
RUN curl https://github.com/googleapis/repo-automation-bots/releases/download/flakybot-1.1.0/flakybot \
30+
-o /bin/flakybot -s -L \
31+
&& chmod +x /bin/flakybot
32+
3433
FROM node:${NODE_VERSION}-alpine
3534

3635
COPY --from=build /bin/flakybot /bin/flakybot
36+
37+
# Hack for not found error with flakybot
38+
RUN mkdir /lib64 && ln -s /lib/libc.musl-x86_64.so.1 /lib64/ld-linux-x86-64.so.2
39+
3740
COPY --from=build /usr/local/gcloud /usr/local/gcloud
3841
RUN apk add --no-cache git bash python3
3942

0 commit comments

Comments
 (0)