2020-04-22 16:51:22 +02:00
|
|
|
FROM gcr.io/llvm-premerge-checks/base-debian:latest
|
|
|
|
|
|
|
|
RUN echo 'install buildkite' ;\
|
|
|
|
apt-get install -y apt-transport-https gnupg;\
|
|
|
|
sh -c 'echo deb https://apt.buildkite.com/buildkite-agent stable main > /etc/apt/sources.list.d/buildkite-agent.list' ;\
|
|
|
|
apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 32A37959C2FA5C3C99EFBC32A79206696452D198 ;\
|
|
|
|
apt-get update ;\
|
2021-05-15 10:58:23 +02:00
|
|
|
apt-get install -y buildkite-agent tini gosu; \
|
2020-04-22 16:51:22 +02:00
|
|
|
apt-get clean;
|
|
|
|
COPY *.sh /usr/local/bin/
|
2020-04-24 12:49:07 +02:00
|
|
|
RUN chmod og+rx /usr/local/bin/*.sh
|
2020-06-17 14:41:00 +02:00
|
|
|
COPY --chown=buildkite-agent:buildkite-agent pre-checkout /etc/buildkite-agent/hooks
|
2021-05-14 14:54:57 +02:00
|
|
|
|
|
|
|
ENTRYPOINT ["entrypoint.sh"]
|
2021-05-15 10:58:23 +02:00
|
|
|
CMD ["gosu", "buildkite-agent", "buildkite-agent", "start", "--no-color"]
|