mirror of
https://github.com/XRPLF/clio.git
synced 2025-11-15 09:15:51 +00:00
chore: Add GDB to docker image (#2429)
This commit is contained in:
@@ -42,6 +42,10 @@ RUN apt-get update \
|
|||||||
git-lfs \
|
git-lfs \
|
||||||
graphviz \
|
graphviz \
|
||||||
jq \
|
jq \
|
||||||
|
# libgmp, libmpfr and libncurses are gdb dependencies
|
||||||
|
libgmp-dev \
|
||||||
|
libmpfr-dev \
|
||||||
|
libncurses-dev \
|
||||||
make \
|
make \
|
||||||
ninja-build \
|
ninja-build \
|
||||||
python3 \
|
python3 \
|
||||||
@@ -92,6 +96,7 @@ COPY --from=clio-tools \
|
|||||||
/usr/local/bin/ClangBuildAnalyzer \
|
/usr/local/bin/ClangBuildAnalyzer \
|
||||||
/usr/local/bin/git-cliff \
|
/usr/local/bin/git-cliff \
|
||||||
/usr/local/bin/gh \
|
/usr/local/bin/gh \
|
||||||
|
/usr/local/bin/gdb \
|
||||||
/usr/local/bin/
|
/usr/local/bin/
|
||||||
|
|
||||||
WORKDIR /root
|
WORKDIR /root
|
||||||
|
|||||||
@@ -11,6 +11,7 @@ The image is based on Ubuntu 20.04 and contains:
|
|||||||
- Conan 2.17.0
|
- Conan 2.17.0
|
||||||
- Doxygen 1.12
|
- Doxygen 1.12
|
||||||
- GCC 15.2.0
|
- GCC 15.2.0
|
||||||
|
- GDB 16.3
|
||||||
- gh 2.74
|
- gh 2.74
|
||||||
- git-cliff 2.9.1
|
- git-cliff 2.9.1
|
||||||
- mold 2.40.1
|
- mold 2.40.1
|
||||||
|
|||||||
@@ -12,8 +12,6 @@ ARG BUILD_VERSION=1
|
|||||||
|
|
||||||
RUN apt-get update \
|
RUN apt-get update \
|
||||||
&& apt-get install -y --no-install-recommends --no-install-suggests \
|
&& apt-get install -y --no-install-recommends --no-install-suggests \
|
||||||
bison \
|
|
||||||
flex \
|
|
||||||
ninja-build \
|
ninja-build \
|
||||||
python3 \
|
python3 \
|
||||||
python3-pip \
|
python3-pip \
|
||||||
@@ -46,6 +44,13 @@ RUN wget --progress=dot:giga "https://github.com/ccache/ccache/releases/download
|
|||||||
&& ninja install \
|
&& ninja install \
|
||||||
&& rm -rf /tmp/* /var/tmp/*
|
&& rm -rf /tmp/* /var/tmp/*
|
||||||
|
|
||||||
|
RUN apt-get update \
|
||||||
|
&& apt-get install -y --no-install-recommends --no-install-suggests \
|
||||||
|
bison \
|
||||||
|
flex \
|
||||||
|
&& apt-get clean \
|
||||||
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
ARG DOXYGEN_VERSION=1.12.0
|
ARG DOXYGEN_VERSION=1.12.0
|
||||||
RUN wget --progress=dot:giga "https://github.com/doxygen/doxygen/releases/download/Release_${DOXYGEN_VERSION//./_}/doxygen-${DOXYGEN_VERSION}.src.tar.gz" \
|
RUN wget --progress=dot:giga "https://github.com/doxygen/doxygen/releases/download/Release_${DOXYGEN_VERSION//./_}/doxygen-${DOXYGEN_VERSION}.src.tar.gz" \
|
||||||
&& tar xf "doxygen-${DOXYGEN_VERSION}.src.tar.gz" \
|
&& tar xf "doxygen-${DOXYGEN_VERSION}.src.tar.gz" \
|
||||||
@@ -78,4 +83,22 @@ RUN wget --progress=dot:giga "https://github.com/cli/cli/releases/download/v${GH
|
|||||||
&& mv gh_${GH_VERSION}_linux_${TARGETARCH}/bin/gh /usr/local/bin/gh \
|
&& mv gh_${GH_VERSION}_linux_${TARGETARCH}/bin/gh /usr/local/bin/gh \
|
||||||
&& rm -rf /tmp/* /var/tmp/*
|
&& rm -rf /tmp/* /var/tmp/*
|
||||||
|
|
||||||
|
RUN apt-get update \
|
||||||
|
&& apt-get install -y --no-install-recommends --no-install-suggests \
|
||||||
|
libgmp-dev \
|
||||||
|
libmpfr-dev \
|
||||||
|
libncurses-dev \
|
||||||
|
make \
|
||||||
|
&& apt-get clean \
|
||||||
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
|
ARG GDB_VERSION=16.3
|
||||||
|
RUN wget --progress=dot:giga "https://sourceware.org/pub/gdb/releases/gdb-${GDB_VERSION}.tar.gz" \
|
||||||
|
&& tar xf "gdb-${GDB_VERSION}.tar.gz" \
|
||||||
|
&& cd "gdb-${GDB_VERSION}" \
|
||||||
|
&& ./configure --prefix=/usr/local \
|
||||||
|
&& make -j "$(nproc)" \
|
||||||
|
&& make install-gdb \
|
||||||
|
&& rm -rf /tmp/* /var/tmp/*
|
||||||
|
|
||||||
WORKDIR /root
|
WORKDIR /root
|
||||||
|
|||||||
Reference in New Issue
Block a user