-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile
More file actions
79 lines (66 loc) · 3.12 KB
/
Dockerfile
File metadata and controls
79 lines (66 loc) · 3.12 KB
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
# syntax=docker/dockerfile:experimental
FROM nvcr.io/nvidia/tritonserver:25.02-py3
# nvcc version: 12.8 ## nvcc --version
LABEL description="Triton Server backend with other dependencies for traccc-as-a-Service"
LABEL version="1.0"
# Install dependencies
# Update the CUDA Linux GPG Repository Key
RUN apt-key adv --fetch-keys https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64/3bf863cc.pub
RUN apt-get update -y && apt-get install -y \
build-essential curl git freeglut3-dev libfreetype6-dev libpcre3-dev\
libboost-dev libboost-filesystem-dev libboost-program-options-dev libboost-test-dev \
libtbb-dev ninja-build time tree \
python3 python3-dev python3-pip python3-numpy \
rsync zlib1g-dev ccache vim unzip libblas-dev liblapack-dev swig \
rapidjson-dev \
libexpat-dev libeigen3-dev libftgl-dev libgl2ps-dev libglew-dev libgsl-dev \
liblz4-dev liblzma-dev libx11-dev libxext-dev libxft-dev libxpm-dev libxerces-c-dev \
libzstd-dev ccache libb64-dev \
libsuitesparse-dev libhwloc-dev libsuperlu-dev \
&& apt-get clean -y
RUN apt-get update -y && apt-get install -y git-lfs \
&& git lfs install \
&& apt-get clean -y
RUN ln -s /usr/bin/python3 /usr/bin/python
RUN pip3 install -U pandas matplotlib seaborn
# Environment variables
ENV LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/usr/lib:/usr/local/lib"
ENV GET="curl --location --silent --create-dirs"
ENV UNPACK_TO_SRC="tar -xz --strip-components=1 --directory src"
ENV PREFIX="/usr/local"
ENV TORCH_CUDA_ARCH_LIST="80"
ENV PYTHONNOUSERSITE=True
# Install GCC 13.3.0
RUN apt-get update -y && apt-get install -y software-properties-common \
&& add-apt-repository -y ppa:ubuntu-toolchain-r/test \
&& apt-get update -y \
&& apt-get install -y gcc-13 g++-13 \
&& update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-13 130 \
--slave /usr/bin/g++ g++ /usr/bin/g++-13 \
--slave /usr/bin/gcov gcov /usr/bin/gcov-13 \
&& apt-get clean -y \
&& gcc --version
# Manual builds for specific packages
# Install CMake v3.29.4
RUN cd /tmp && mkdir -p src \
&& ${GET} https://github.com/Kitware/CMake/releases/download/v3.29.4/cmake-3.29.4-Linux-x86_64.tar.gz \
| ${UNPACK_TO_SRC} \
&& rsync -ru src/ ${PREFIX} \
&& cd /tmp && rm -rf /tmp/src
# Install xxHash v0.7.3
RUN cd /tmp && mkdir -p src \
&& ${GET} https://github.com/Cyan4973/xxHash/archive/v0.8.2.tar.gz \
| ${UNPACK_TO_SRC} \
&& cmake -B build -S src/cmake_unofficial -GNinja\
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=${PREFIX} \
&& cmake --build build -- install -j20\
&& cd /tmp && rm -rf src build
RUN pip3 install pyyaml astunparse expecttest!=0.2.0 hypothesis numpy psutil pyyaml requests setuptools types-dataclasses \
typing-extensions>=4.8.0 sympy filelock networkx jinja2 fsspec lintrunner ninja packaging optree>=0.11.0 setuptools
# install triton client
RUN pip3 install tritonclient[all]
# additional Python package needed for acorn
RUN pip3 install git+https://github.com/LAL/trackml-library.git \
pyyaml click pytest pytest-cov class-resolver scipy pandas matplotlib uproot tqdm ipykernel \
atlasify networkx seaborn wandb mplhep