-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
31 lines (27 loc) · 935 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
FROM ubuntu:20.04
# Install packages
RUN apt-get update -y && apt-get upgrade -y
ARG DEBIAN_FRONTEND=noninteractive
RUN apt-get install -y build-essential curl git python3 python2 pkg-config
# Install rust
RUN curl https://sh.rustup.rs -sSf | bash -s -- -y
ENV PATH="/root/.cargo/bin:${PATH}"
# Fetch source
RUN mkdir /root/mmtk-v8-workspace
WORKDIR /root/mmtk-v8-workspace
# Fetch V8
RUN git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git
ENV PATH="/root/mmtk-v8-workspace/depot_tools:${PATH}"
RUN gclient
RUN fetch v8
# Clone MMTk
RUN git clone https://github.com/mmtk/mmtk-v8.git
# Checkout a working V8 revision.
# TODO: Use latest v8.
RUN git -C v8 checkout 191b637f28c0e2c6ca5f2d6ac89377039a754337
RUN gclient sync
WORKDIR /root/mmtk-v8-workspace
COPY ./args-debug.gn ./v8/out/x64.debug-mmtk/args.gn
COPY ./args-optdebug.gn ./v8/out/x64.optdebug-mmtk/args.gn
COPY ./Makefile ./Makefile
CMD make check