1
0
mirror of https://github.com/MariaDB/mariadb-docker.git synced 2025-04-19 06:02:18 +03:00

Containerfiles for making contains with debug info

This commit is contained in:
Daniel Black 2024-08-04 10:51:49 +10:00
parent 58494e28dd
commit 64decf74a7
2 changed files with 20 additions and 0 deletions

12
Containerfile.debug Normal file
View File

@ -0,0 +1,12 @@
# Containerfile for adding the debuginfo of an apt, based container
# with some tools.
ARG BASE
FROM $BASE
RUN apt-get update \
&& apt-get install -y linux-tools-common gdbserver gdb curl \
&& dpkg-query --showformat='${Package},${Version},${Architecture}\n' --show | grep mariadb \
| while IFS=, read pkg version arch; do \
[ $arch != all ] && apt-get install -y ${pkg}-dbgsym=${version} ; \
done; \
rm -rf /var/lib/apt/lists/*

8
Containerfile.debug-ubi Normal file
View File

@ -0,0 +1,8 @@
# Containerfile for adding the debuginfo of ubi micro rpm, based container
# with some tools.
ARG BASE
FROM $BASE
USER root
RUN microdnf install MariaDB-server-debug-${MARIADB_VERSION} MariaDB-backup-debug-${MARIADB_VERSION}
USER mysql