From 8d7afc2b2149db30c0592b3d9676672887b2ceaf Mon Sep 17 00:00:00 2001 From: Tim van der Lippe Date: Sat, 5 Sep 2020 10:35:38 +0100 Subject: [PATCH] Add DockerFile for ChromeDevTools (#39624) * Add DockerFile for ChromeDevTools Note that I was not able to verify it fully works, as it throws an authentication error on typescript/typescript on the Docker Hub. This is part of #39568 CC @weswigham * Fix run command * Update run command --- .../chrome-devtools-frontend-next/Dockerfile | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 tests/cases/docker/chrome-devtools-frontend-next/Dockerfile diff --git a/tests/cases/docker/chrome-devtools-frontend-next/Dockerfile b/tests/cases/docker/chrome-devtools-frontend-next/Dockerfile new file mode 100644 index 00000000000..1637eaef7f5 --- /dev/null +++ b/tests/cases/docker/chrome-devtools-frontend-next/Dockerfile @@ -0,0 +1,17 @@ +FROM node:current +RUN git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git /depot_tools +ENV PATH=/depot_tools:$PATH +WORKDIR / +RUN mkdir devtools +WORKDIR devtools +RUN fetch devtools-frontend +WORKDIR devtools-frontend +RUN gn gen out/Default +COPY --from=typescript/typescript /typescript/typescript-*.tgz /typescript.tgz +RUN mkdir /typescript +RUN tar -xzvf /typescript.tgz -C /typescript +RUN ln -s /typescript/package ./node_modules/typescript +# We don't want to show the ordering of which tasks ran in Ninja, as that is non-deterministic. +# Instead, only show the errors in the log, from the first occurrence of a FAILED task. +# If the task passes, then there is no log written. +CMD ["autoninja", "-C", "out/Default", ">", "error.log", "||", "tail", "-n", "+$(sed", "-n", "'/FAILED/='", "error.log)", "error.log"] \ No newline at end of file