Skip to content

Commit 8d7afc2

Browse files
authored
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
1 parent 6cd2dc9 commit 8d7afc2

File tree

1 file changed

+17
-0
lines changed
  • tests/cases/docker/chrome-devtools-frontend-next

1 file changed

+17
-0
lines changed
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
FROM node:current
2+
RUN git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git /depot_tools
3+
ENV PATH=/depot_tools:$PATH
4+
WORKDIR /
5+
RUN mkdir devtools
6+
WORKDIR devtools
7+
RUN fetch devtools-frontend
8+
WORKDIR devtools-frontend
9+
RUN gn gen out/Default
10+
COPY --from=typescript/typescript /typescript/typescript-*.tgz /typescript.tgz
11+
RUN mkdir /typescript
12+
RUN tar -xzvf /typescript.tgz -C /typescript
13+
RUN ln -s /typescript/package ./node_modules/typescript
14+
# We don't want to show the ordering of which tasks ran in Ninja, as that is non-deterministic.
15+
# Instead, only show the errors in the log, from the first occurrence of a FAILED task.
16+
# If the task passes, then there is no log written.
17+
CMD ["autoninja", "-C", "out/Default", ">", "error.log", "||", "tail", "-n", "+$(sed", "-n", "'/FAILED/='", "error.log)", "error.log"]

0 commit comments

Comments
 (0)