File tree Expand file tree Collapse file tree 8 files changed +11
-94
lines changed Expand file tree Collapse file tree 8 files changed +11
-94
lines changed Original file line number Diff line number Diff line change @@ -67,7 +67,6 @@ PEERDIR(
67
67
yql/essentials/udfs/common/url_base
68
68
yql/essentials/udfs/common/yson2
69
69
yql/essentials/udfs/logs/dsv
70
- ydb/library/breakpad
71
70
ydb/public/sdk/cpp/client/ydb_persqueue_public/codecs
72
71
)
73
72
Original file line number Diff line number Diff line change @@ -24,20 +24,30 @@ COPY --chmod=0644 /liblibaio-dynamic.so /lib/liblibaio-dynamic.so
24
24
# ##
25
25
# Base image with google brekpad assets
26
26
# ##
27
-
28
27
FROM ${BREAKPAD_INIT_IMAGE}:${BREAKPAD_INIT_IMAGE_TAG} AS breakpad_init
28
+
29
+
30
+ FROM base AS breakpad-setuid
31
+ COPY --from=breakpad_init /usr/lib/libbreakpad_init.so /usr/lib/libbreakpad_init.so
32
+ # workaround for old docker versions
33
+ # https://github.com/moby/buildkit/issues/3920
34
+ RUN /usr/bin/chmod 4644 /usr/lib/libbreakpad_init.so
35
+
29
36
FROM base AS base-breakpad
30
37
RUN \
31
38
apt-get -yqq update && \
32
39
apt-get -yqq install --no-install-recommends binutils gdb strace linux-tools-generic && \
33
40
apt-get clean && rm -rf /var/lib/apt/lists/*
41
+ ENV LD_PRELOAD=libbreakpad_init.so
34
42
ENV BREAKPAD_MINIDUMPS_PATH=/opt/ydb/volumes/coredumps
35
43
ENV BREAKPAD_MINIDUMPS_SCRIPT=/opt/ydb/bin/minidump_script.py
36
44
# breakpad binaries
37
45
COPY --chmod=0755 --from=breakpad_init /usr/bin/minidump_stackwalk /usr/bin/minidump_stackwalk
38
46
COPY --chmod=0755 --from=breakpad_init /usr/bin/minidump-2-core /usr/bin/minidump-2-core
39
47
# minidump callback script
40
48
COPY --chmod=0755 --chown=ydb /minidump_script.py /opt/ydb/bin/minidump_script.py
49
+ # minidump init library
50
+ COPY --link --from=breakpad-setuid /usr/lib/libbreakpad_init.so /usr/lib/libbreakpad_init.so
41
51
42
52
FROM base AS ydbd-setcap
43
53
COPY --chmod=0755 --chown=ydb /ydbd /opt/ydb/bin/ydbd
Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 7
7
arrow_parquet
8
8
backup
9
9
benchmarks
10
- breakpad
11
10
chunks_limiter
12
11
folder_service
13
12
formats
Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -16,7 +16,6 @@ RECURSE(
16
16
kv_workload
17
17
large_serializable
18
18
limits
19
- minidumps
20
19
postgresql
21
20
query_cache
22
21
rename
You can’t perform that action at this time.
0 commit comments