-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
35 lines (29 loc) · 1.62 KB
/
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
32
33
34
35
FROM --platform=linux/amd64 tugraph/tugraph-compile-centos8:1.3.2
# Install Rust with nightly-2024-07-24 toolchain (as in NativeLink `flake.nix`)
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- --default-toolchain nightly-2024-07-24 -y
ENV PATH="/root/.cargo/bin:$PATH"
# Install NativeLink
RUN cargo install --git https://github.com/TraceMachina/nativelink.git --rev 481226be nativelink
# Install build dependencies
# General: clang, lld, libssh2-devel (requires epel-release)
# crates-pro: Python 3.8.19 and pip packages
# performance-benchmark: fontconfig-devel
RUN curl -O https://www.python.org/ftp/python/3.8.19/Python-3.8.19.tgz \
&& tar -xzf Python-3.8.19.tgz \
&& cd Python-3.8.19 \
&& ./configure --enable-optimizations --prefix=/usr/local \
&& make -j8 \
&& make install \
&& cd .. \
&& python3 -m pip install --upgrade pip \
&& python3 -m pip install nest_asyncio pexpect requests pytest httpx cython==3.0.10 sphinx myst_parser sphinx_panels sphinx_rtd_theme numpy==1.19.5 torch==1.10.2 dgl==1.0.4 ogb pandas==0.25.3 \
&& rm -rf Python-3.8.19.tgz Python-3.8.19
RUN yum install -y epel-release \
&& yum install -y clang lld fontconfig-devel libssh2-devel
WORKDIR /workdir
# Download resources required by `//third-party/vendor/utoipa-swagger-ui-7.1.0-patch1/src/lib.rs`
RUN curl -L -o swagger-ui-5.17.12.zip https://github.com/swagger-api/swagger-ui/archive/refs/tags/v5.17.12.zip \
&& unzip -j swagger-ui-5.17.12.zip "swagger-ui-5.17.12/dist/*" -d ./swagger-ui-5.17.12-dist \
&& rm -f swagger-ui-5.17.12.zip
COPY basic_cas.json .
CMD ["nativelink", "./basic_cas.json"]