Containerfiles for making contains with debug info
This commit is contained in:
parent
58494e28dd
commit
64decf74a7
12
Containerfile.debug
Normal file
12
Containerfile.debug
Normal 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
8
Containerfile.debug-ubi
Normal 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
|
Loading…
x
Reference in New Issue
Block a user