Add perl + flamegraph to EKS docker images
This commit is contained in:
parent
5ca3b671d1
commit
c80cd575ad
|
@ -9,6 +9,7 @@ RUN yum install -y \
|
|||
nc \
|
||||
net-tools \
|
||||
perf \
|
||||
perl \
|
||||
python38 \
|
||||
python3-pip \
|
||||
strace \
|
||||
|
@ -21,6 +22,7 @@ RUN yum install -y \
|
|||
#todo: nload, iperf, numademo
|
||||
|
||||
COPY misc/tini-amd64.sha256sum /tmp/
|
||||
COPY misc/flamegraph.sha256sum /tmp/
|
||||
# Adding tini as PID 1 https://github.com/krallin/tini
|
||||
ARG TINI_VERSION=v0.19.0
|
||||
RUN curl -sLO https://github.com/krallin/tini/releases/download/${TINI_VERSION}/tini-amd64 && \
|
||||
|
@ -31,6 +33,13 @@ RUN curl -sLO https://github.com/krallin/tini/releases/download/${TINI_VERSION}/
|
|||
COPY sidecar/requirements.txt /tmp
|
||||
RUN pip3 install -r /tmp/requirements.txt
|
||||
|
||||
# Install flamegraph
|
||||
RUN curl -sLO https://raw.githubusercontent.com/brendangregg/FlameGraph/90533539b75400297092f973163b8a7b067c66d3/stackcollapse-perf.pl && \
|
||||
curl -sLO https://raw.githubusercontent.com/brendangregg/FlameGraph/90533539b75400297092f973163b8a7b067c66d3/flamegraph.pl && \
|
||||
sha256sum -c /tmp/flamegraph.sha256sum && \
|
||||
chmod +x stackcollapse-perf.pl flamegraph.pl && \
|
||||
mv stackcollapse-perf.pl flamegraph.pl /usr/bin
|
||||
|
||||
# TODO: Only used by sidecar
|
||||
RUN groupadd --gid 4059 fdb && \
|
||||
useradd --gid 4059 --uid 4059 --no-create-home --shell /bin/bash fdb
|
||||
|
|
|
@ -0,0 +1,2 @@
|
|||
a682ac46497d6fdbf9904d1e405d3aea3ad255fcb156f6b2b1a541324628dfc0 flamegraph.pl
|
||||
5bcfb73ff2c2ab7bf2ad2b851125064780b58c51cc602335ec0001bec92679a5 stackcollapse-perf.pl
|
Loading…
Reference in New Issue