-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
58 lines (50 loc) · 1.38 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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
FROM ubuntu:20.04
### NOTES
# 1. In order to fully test the build, you must run the image
# with: --cap-add sys_admin
# because clients of the halo server use perf_events.
# If you are just running Halo Server, this is not required and it is
# reccomended to _not_ enable sys_admin.
#
# 2. For self: https://docs.docker.com/develop/develop-images/dockerfile_best-practices/
# for tips on writing a good docker file.
# tell tzdata we can't answer its questions about time zones!
ARG DEBIAN_FRONTEND=noninteractive
# install dependencies.
RUN apt-get update && apt-get install --no-install-recommends -y \
g++ \
libboost-system-dev \
libboost-graph-dev \
libgsl-dev \
libpfm4-dev \
ninja-build \
cmake \
ccache \
\
# for our gitlab ci script and xgboost download & build
git \
ca-certificates \
make \
\
# for minibench (data collection only)
time \
\
# for lit
python2 \
python-is-python2 \
\
zlib1g \
libprotobuf-dev \
protobuf-compiler \
libtinfo-dev \
&& rm -rf /var/lib/apt/lists/*
# copy over source code to the image
COPY . /tmp/halo
# set the working directory
WORKDIR /tmp/halo
# obtain XGBoost sources
RUN ./xgboost/get.sh
# build
RUN ./fresh-build.sh docker
# when the image is run, start halo server by default.
CMD haloserver