File: Dockerfile.static

package info (click to toggle)
bpftrace 0.24.1-1.1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 10,496 kB
  • sloc: cpp: 60,982; ansic: 10,952; python: 953; yacc: 665; sh: 536; lex: 295; makefile: 22
file content (55 lines) | stat: -rw-r--r-- 1,282 bytes parent folder | download
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
# This Dockerfile is used to test STATIC_LINKING=ON builds in the CI

FROM alpine:3.22

RUN apk add --update \
  asciidoctor \
  argp-standalone \
  bash \
  bcc-dev \
  bcc-static \
  binutils-dev \
  bison \
  blazesym-dev \
  blazesym-static \
  bpftool \
  bzip2-static \
  build-base \
  cereal \
  clang18-dev \
  clang18-extra-tools \
  clang18-static \
  cmake \
  elfutils-dev \
  flex-dev \
  git \
  libbpf-dev \
  libelf-static \
  libpcap-dev \
  libc6-compat \
  linux-headers \
  llvm18-dev \
  llvm18-gtest \
  llvm18-static \
  musl-obstack-dev \
  openssl-dev \
  pahole \
  procps \
  python3 \
  wget \
  xxd \
  xz-static \
  zlib-dev \
  zlib-static \
  zstd-dev \
  zstd-static

# It looks like llvm18 prefers to dynamically link against zstd. Extremely
# unclear why.  Work around it by modifying LLVMExports.cmake.
RUN sed -i 's/libzstd_shared/libzstd_static/g' /usr/lib/llvm18/lib/cmake/llvm/LLVMExports.cmake

# bcc-static needs clang/llvm 18 instead of the latest 19. As a consequence,
# CMake reports errors as that it cannot find files in /usr/lib/cmake/clang/ as
# it's a symlink for /usr/lib/cmake/clangXX/ which is only created when the
# latest clang is installed. To fix this, create the symlink manually.
RUN ln -s 'clang18' /usr/lib/cmake/clang