-
Notifications
You must be signed in to change notification settings - Fork 238
K8SPG-762 add debug images for k8s operators #1177
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
hors
wants to merge
2
commits into
main
Choose a base branch
from
K8SPG-762
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,81 @@ | ||
| FROM redhat/ubi9-minimal | ||
|
|
||
| LABEL org.opencontainers.image.authors="[email protected]" | ||
|
|
||
| RUN microdnf -y update; \ | ||
| microdnf -y install glibc-langpack-en | ||
|
|
||
|
|
||
| RUN set -ex; \ | ||
| export GNUPGHOME="$(mktemp -d)"; \ | ||
| gpg --batch --keyserver keyserver.ubuntu.com --recv-keys \ | ||
| 4D1BB29D63D98E422B2113B19334A25F8507EFA5 \ | ||
| 3E6D826D3FBAB389C2F38E34BC4D06A08D8B756F \ | ||
| 99DB70FAE1D7CE227FB6488205B555B38483C65D; \ | ||
| gpg --batch --export --armor 4D1BB29D63D98E422B2113B19334A25F8507EFA5 > ${GNUPGHOME}/PERCONA-PACKAGING-KEY; \ | ||
| gpg --batch --export --armor 99DB70FAE1D7CE227FB6488205B555B38483C65D > ${GNUPGHOME}/RPM-GPG-KEY-centosofficial; \ | ||
| gpg --batch --export --armor 3E6D826D3FBAB389C2F38E34BC4D06A08D8B756F > ${GNUPGHOME}/RPM-GPG-KEY-oracle; \ | ||
| gpg --batch --export --armor 3E6D826D3FBAB389C2F38E34BC4D06A08D8B756F > /etc/pki/rpm-gpg/RPM-GPG-KEY-oracle; \ | ||
| rpmkeys --import \ | ||
| ${GNUPGHOME}/PERCONA-PACKAGING-KEY \ | ||
| ${GNUPGHOME}/RPM-GPG-KEY-oracle \ | ||
| ${GNUPGHOME}/RPM-GPG-KEY-centosofficial; \ | ||
| curl -Lf -o /tmp/oraclelinux-release.rpm https://yum.oracle.com/repo/OracleLinux/OL9/baseos/latest/x86_64/getPackage/oraclelinux-release-el9-1.0-15.el9.x86_64.rpm; \ | ||
| curl -Lf -o /tmp/epel-release.rpm https://yum.oracle.com/repo/OracleLinux/OL9/baseos/latest/x86_64/getPackage/oracle-epel-release-el9-1.0-1.el9.x86_64.rpm; \ | ||
| curl -Lf -o /tmp/percona-release.rpm https://repo.percona.com/yum/percona-release-latest.noarch.rpm; \ | ||
| rpm --import ${GNUPGHOME}/PERCONA-PACKAGING-KEY ${GNUPGHOME}/RPM-GPG-KEY-oracle ${GNUPGHOME}/RPM-GPG-KEY-centosofficial; \ | ||
| rpmkeys --checksig /tmp/percona-release.rpm; \ | ||
| rpmkeys --checksig /tmp/epel-release.rpm; \ | ||
| rpmkeys --checksig /tmp/oraclelinux-release.rpm; \ | ||
| rpm -i /tmp/percona-release.rpm /tmp/oraclelinux-release.rpm; \ | ||
| microdnf install -y findutils yum-utils yum elfutils --disablerepo='*' --enablerepo=ol9_baseos_latest; \ | ||
| rpm -i /tmp/epel-release.rpm; \ | ||
| rm -rf "$GNUPGHOME" /tmp/percona-release.rpm /tmp/oraclelinux-release.rpm /tmp/epel-release.rpm; \ | ||
| percona-release enable pt release | ||
|
|
||
| RUN set -ex; \ | ||
| microdnf -y update; \ | ||
| yum -y groupinstall "Development tools" --disablerepo=ubi-9-appstream-rpms,ubi-9-baseos-rpms; \ | ||
| microdnf -y install \ | ||
| percona-toolkit \ | ||
| perf \ | ||
| vim \ | ||
| hostname \ | ||
| sysstat \ | ||
| tar \ | ||
| bzip2 \ | ||
| lz4 \ | ||
| procps-ng \ | ||
| strace \ | ||
| golang \ | ||
| mpfr-devel \ | ||
| mpfr-devel \ | ||
| wget \ | ||
| aria2 \ | ||
| net-tools; \ | ||
| microdnf clean all; \ | ||
| yum clean all; \ | ||
| rm -rf /var/cache/dnf /var/cache/yum | ||
|
|
||
| WORKDIR /opt/src | ||
|
|
||
| # Fetch and extract the latest stable GDB version | ||
| RUN LATEST_VERSION=$(curl -s ftp://ftp.gnu.org/gnu/gdb/ | \ | ||
| awk '{print $NF}' | \ | ||
| grep -E '^gdb-[0-9]+\.[0-9]+(\.[0-9]+)?\.tar\.gz$' | \ | ||
| sed -E 's/gdb-([0-9]+\.[0-9]+(\.[0-9]+)?)\.tar\.gz/\1/' | \ | ||
| sort -V | \ | ||
| tail -n 1) && \ | ||
| echo "Latest GDB version: $LATEST_VERSION" && \ | ||
| aria2c -x 8 -s 8 https://ftp.gnu.org/gnu/gdb/gdb-${LATEST_VERSION}.tar.gz && \ | ||
| tar -xzf gdb-${LATEST_VERSION}.tar.gz && \ | ||
| cd gdb-${LATEST_VERSION} && \ | ||
| ./configure --prefix=/usr/local && \ | ||
| make -j$(nproc) && \ | ||
| make install && \ | ||
| cd / && \ | ||
| rm -rf /opt/src | ||
|
|
||
| RUN gdb --version | ||
|
|
||
| COPY LICENSE /licenses/LICENSE.Dockerfile | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,105 @@ | ||
| FROM redhat/ubi8 | ||
|
|
||
| LABEL org.opencontainers.image.authors="[email protected]" | ||
|
|
||
| RUN dnf -y update; \ | ||
| dnf -y install glibc-langpack-en | ||
|
|
||
| RUN set -ex; \ | ||
| export GNUPGHOME="$(mktemp -d)"; \ | ||
| gpg --batch --keyserver keyserver.ubuntu.com --recv-keys \ | ||
| 4D1BB29D63D98E422B2113B19334A25F8507EFA5 \ | ||
| 99DB70FAE1D7CE227FB6488205B555B38483C65D \ | ||
| 94E279EB8D8F25B21810ADF121EA45AB2F86D6A1 \ | ||
| 736AF5116D9C40E2AF6B074BF9B9FEE7764429E6; \ | ||
| gpg --batch --export --armor 4D1BB29D63D98E422B2113B19334A25F8507EFA5 > ${GNUPGHOME}/PERCONA-PACKAGING-KEY; \ | ||
| gpg --batch --export --armor 99DB70FAE1D7CE227FB6488205B555B38483C65D > ${GNUPGHOME}/RPM-GPG-KEY-centosofficial; \ | ||
| gpg --batch --export --armor 94E279EB8D8F25B21810ADF121EA45AB2F86D6A1 > ${GNUPGHOME}/RPM-GPG-KEY-EPEL-8; \ | ||
| rpmkeys --import \ | ||
| ${GNUPGHOME}/PERCONA-PACKAGING-KEY \ | ||
| ${GNUPGHOME}/RPM-GPG-KEY-centosofficial \ | ||
| ${GNUPGHOME}/RPM-GPG-KEY-EPEL-8; \ | ||
| dnf install -y elfutils-debuginfod-client numactl-libs libbpf perl libbabeltrace bzip2 xz lm_sensors-libs findutils; \ | ||
| curl -Lf -o /tmp/epel-release.rpm https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm; \ | ||
| curl -Lf -o /tmp/percona-release.rpm https://repo.percona.com/yum/percona-release-latest.noarch.rpm; \ | ||
| rpmkeys --checksig /tmp/percona-release.rpm /tmp/epel-release.rpm; \ | ||
| rpm -i /tmp/percona-release.rpm /tmp/epel-release.rpm; \ | ||
| rm -rf "$GNUPGHOME" /tmp/percona-release.rpm /tmp/epel-release.rpm; \ | ||
| rpm --import /etc/pki/rpm-gpg/PERCONA-PACKAGING-KEY; \ | ||
| rpm --import https://yum.oracle.com/RPM-GPG-KEY-oracle-ol8; \ | ||
| percona-release enable pt release | ||
|
|
||
| RUN set -ex; \ | ||
| curl -Lf -o /tmp/c-ares.rpm https://yum.oracle.com/repo/OracleLinux/OL8/baseos/latest/x86_64/getPackage/c-ares-1.13.0-11.el8_10.x86_64.rpm; \ | ||
| curl -Lf -o /tmp/libtraceevent.rpm https://yum.oracle.com/repo/OracleLinux/OL8/baseos/latest/x86_64/getPackage/libtraceevent-1.5.3-1.el8.x86_64.rpm; \ | ||
| curl -Lf -o /tmp/slang.rpm https://yum.oracle.com/repo/OracleLinux/OL8/baseos/latest/x86_64/getPackage/slang-2.3.2-3.el8.x86_64.rpm; \ | ||
| curl -Lf -o /tmp/sysstat.rpm https://yum.oracle.com/repo/OracleLinux/OL8/appstream/x86_64/getPackage/sysstat-11.7.3-13.0.2.el8_10.x86_64.rpm; \ | ||
| curl -Lf -o /tmp/perf.rpm https://yum.oracle.com/repo/OracleLinux/OL8/baseos/latest/x86_64/getPackage/perf-4.18.0-553.51.1.el8_10.x86_64.rpm; \ | ||
| rpmkeys --checksig /tmp/c-ares.rpm /tmp/libtraceevent.rpm /tmp/slang.rpm /tmp/sysstat.rpm /tmp/perf.rpm; \ | ||
| rpm -i /tmp/c-ares.rpm /tmp/slang.rpm /tmp/libtraceevent.rpm /tmp/sysstat.rpm /tmp/perf.rpm; \ | ||
| rm -rf /tmp/c-ares.rpm /tmp/slang.rpm /tmp/libtraceevent.rpm /tmp/sysstat.rpm /tmp/perf.rpm | ||
|
|
||
| RUN set -ex; \ | ||
| dnf -y update; \ | ||
| dnf -y install \ | ||
| percona-toolkit \ | ||
| yum \ | ||
| vim \ | ||
| hostname \ | ||
| tar \ | ||
| bzip2 \ | ||
| lz4 \ | ||
| procps-ng \ | ||
| strace \ | ||
| golang \ | ||
| mpfr-devel \ | ||
| elfutils \ | ||
| mpfr-devel \ | ||
| wget \ | ||
| aria2 \ | ||
| net-tools | ||
|
|
||
|
|
||
| # Add OL8 BaseOS repo | ||
| RUN echo -e "[ol8_baseos]\n\ | ||
| name=Oracle Linux 8 BaseOS (\$basearch)\n\ | ||
| baseurl=https://yum.oracle.com/repo/OracleLinux/OL8/baseos/latest/x86_64/\n\ | ||
| gpgkey=https://yum.oracle.com/RPM-GPG-KEY-oracle-ol8\n\ | ||
| gpgcheck=1\n\ | ||
| enabled=1" > /etc/yum.repos.d/ol8_baseos.repo | ||
|
|
||
| # Add OL8 AppStream repo | ||
| RUN set -ex; \ | ||
| echo -e "[ol8_appstream]\n\ | ||
| name=Oracle Linux 8 Application Stream (\$basearch)\n\ | ||
| baseurl=https://yum.oracle.com/repo/OracleLinux/OL8/appstream/x86_64/\n\ | ||
| gpgkey=https://yum.oracle.com/RPM-GPG-KEY-oracle-ol8\n\ | ||
| gpgcheck=1\n\ | ||
| enabled=1" > /etc/yum.repos.d/ol8_appstream.repo; \ | ||
| yum -y groupinstall "development tools"; \ | ||
| dnf clean all; \ | ||
| yum clean all; \ | ||
| rm -rf /var/cache/dnf /var/cache/yum | ||
|
|
||
| WORKDIR /opt/src | ||
|
|
||
| # Fetch and extract the latest stable GDB version | ||
| RUN LATEST_VERSION=$(curl -s ftp://ftp.gnu.org/gnu/gdb/ | \ | ||
| awk '{print $NF}' | \ | ||
| grep -E '^gdb-[0-9]+\.[0-9]+(\.[0-9]+)?\.tar\.gz$' | \ | ||
| sed -E 's/gdb-([0-9]+\.[0-9]+(\.[0-9]+)?)\.tar\.gz/\1/' | \ | ||
| sort -V | \ | ||
| tail -n 1) && \ | ||
| echo "Latest GDB version: $LATEST_VERSION" && \ | ||
| aria2c -x 8 -s 8 https://ftp.gnu.org/gnu/gdb/gdb-${LATEST_VERSION}.tar.gz && \ | ||
| tar -xzf gdb-${LATEST_VERSION}.tar.gz && \ | ||
| cd gdb-${LATEST_VERSION} && \ | ||
| ./configure --prefix=/usr/local && \ | ||
| make -j$(nproc) && \ | ||
| make install && \ | ||
| cd / && \ | ||
| rm -rf /opt/src | ||
|
|
||
| RUN gdb --version | ||
|
|
||
| COPY LICENSE /licenses/LICENSE.Dockerfile |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't see LICENSE in
debugfolder, how does this work?