Skip to content

Commit

Permalink
Containerfiles for making contains with debug info
Browse files Browse the repository at this point in the history
  • Loading branch information
grooverdan committed Aug 4, 2024
1 parent 58494e2 commit 64decf7
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
12 changes: 12 additions & 0 deletions Containerfile.debug
Original file line number Diff line number Diff line change
@@ -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 changes: 8 additions & 0 deletions Containerfile.debug-ubi
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 64decf7

Please sign in to comment.