@@ -10,20 +10,34 @@ ARG IMAGE_BASE=registry.access.redhat.com/ubi${UBI_VERSION}/ubi-minimal:${UBI_RU
1010# DEV FROM $IMAGE_BUILD
1111FROM quay.io/centos/centos:stream9 as build
1212
13+ ENV PROTON_VERSION=0.39.0
14+
1315RUN curl -OL https://dl.fedoraproject.org/pub/epel/epel-release-latest-9.noarch.rpm
1416RUN rpm -ivh epel-release-latest-9.noarch.rpm
1517RUN dnf install -y 'dnf-command(config-manager)'
1618RUN /usr/bin/crb enable
1719
1820RUN curl -L https://copr.fedorainfracloud.org/coprs/kpvdr/opentelemetry-cpp-rhel/repo/epel-9/kpvdr-opentelemetry-cpp-rhel-epel-9.repo > /etc/yum.repos.d/kpvdr-opentelemetry-cpp-rhel-epel-9.repo
1921RUN curl -L https://copr.fedorainfracloud.org/coprs/kpvdr/protobuf/repo/epel-9/kpvdr-protobuf-epel-9.repo > /etc/yum.repos.d/kpvdr-protobuf-epel-9.repo
22+ RUN curl -L https://copr.fedorainfracloud.org/coprs/kpvdr/json/repo/epel-9/kpvdr-json-epel-9.repo > /etc/yum.repos.d/kpvdr-json-epel-9.repo
23+
24+ # CMake Error at /usr/lib64/cmake/protobuf/protobuf-targets.cmake:106 (message):
25+ # The imported target "protobuf::libprotobuf-lite" references the file
26+ #
27+ # "/usr/lib64/libprotobuf-lite.so.3.19.6.0"
2028
2129RUN dnf -y --setopt=install_weak_deps=0 --setopt=tsflags=nodocs install \
2230 ccache findutils git patchelf \
2331 \
2432 cmake ninja-build \
2533 gcc gcc-c++ \
2634 \
35+ protobuf-lite-devel \
36+ \
37+ opentelemetry-cpp-devel \
38+ opentelemetry-cpp-exporter-otlp-devel \
39+ opentelemetry-cpp-zpages-devel \
40+ \
2741 cyrus-sasl-devel \
2842 openssl-devel \
2943 python-devel
@@ -36,10 +50,8 @@ WORKDIR /src
3650ENV CCACHE_COMPRESS=true
3751ENV CCACHE_MAXSIZE=400MB
3852
39- # WORKAROUND: Use Proton 0.37.0 (without tracing) to get something compiling quickly
40- RUN git clone --branch=0.37.0 --depth=1 https://github.com/apache/qpid-proton.git
53+ RUN git clone --branch=${PROTON_VERSION} --depth=1 https://github.com/apache/qpid-proton.git
4154RUN CCACHE_DIR=/ccache/$(arch) cmake -S qpid-proton -B cmake-build-qpid-proton -GNinja \
42- -DENABLE_WARNING_ERROR=OFF \
4355 -DCMAKE_C_COMPILER_LAUNCHER=ccache \
4456 -DCMAKE_CXX_COMPILER_LAUNCHER=ccache \
4557 -DCMAKE_INSTALL_PREFIX=cmake-install \
@@ -71,9 +83,13 @@ RUN rpm -ivh epel-release-latest-9.noarch.rpm
7183RUN dnf install -y 'dnf-command(config-manager)'
7284RUN /usr/bin/crb enable
7385
74- RUN curl -L https://copr.fedorainfracloud.org/coprs/kpvdr/opentelemetry-cpp/repo/epel-9/kpvdr-opentelemetry-cpp-epel-9.repo > /etc/yum.repos.d/kpvdr-opentelemetry-cpp-epel-9.repo
86+ RUN curl -L https://copr.fedorainfracloud.org/coprs/kpvdr/opentelemetry-cpp-rhel/repo/epel-9/kpvdr-opentelemetry-cpp-rhel-epel-9.repo > /etc/yum.repos.d/kpvdr-opentelemetry-cpp-rhel-epel-9.repo
87+ RUN curl -L https://copr.fedorainfracloud.org/coprs/kpvdr/protobuf/repo/epel-9/kpvdr-protobuf-epel-9.repo > /etc/yum.repos.d/kpvdr-protobuf-epel-9.repo
88+ RUN curl -L https://copr.fedorainfracloud.org/coprs/kpvdr/json/repo/epel-9/kpvdr-json-epel-9.repo > /etc/yum.repos.d/kpvdr-json-epel-9.repo
7589
7690RUN dnf -y --setopt=install_weak_deps=0 --setopt=tsflags=nodocs install \
91+ protobuf-lite \
92+ opentelemetry-cpp opentelemetry-cpp-exporter-otlp opentelemetry-cpp-zpages \
7793 cyrus-sasl cyrus-sasl-gssapi cyrus-sasl-lib cyrus-sasl-plain \
7894 openssl
7995
0 commit comments