Skip to content

Commit 3ddbfc4

Browse files
authored
Build ppc64le multiarch docker image (#98)
* Switch to new COPR repo for opentelemetry * Workaround container build problems by skipping tracing * Workaround container build problems by installing old proton
1 parent 3fdf91c commit 3ddbfc4

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

.github/workflows/image_build.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ jobs:
7777
with:
7878
image: ${{ env.IMAGE_NAME }}
7979
tags: latest ${{ github.sha }} ${{ steps.cleaned_ref_name.outputs.ref_name }}
80-
archs: amd64, arm64, arm64, s390x
80+
archs: amd64, arm64, ppc64le, s390x
8181
layers: true
8282
# https://github.com/containers/buildah/issues/4777#issuecomment-1542088081
8383
extra-args: |

Dockerfile

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,15 @@ RUN rpm -ivh epel-release-latest-9.noarch.rpm
1515
RUN dnf install -y 'dnf-command(config-manager)'
1616
RUN /usr/bin/crb enable
1717

18-
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
18+
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
19+
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
1920

2021
RUN dnf -y --setopt=install_weak_deps=0 --setopt=tsflags=nodocs install \
2122
ccache findutils git patchelf \
2223
\
2324
cmake ninja-build \
2425
gcc gcc-c++ \
2526
\
26-
opentelemetry-cpp-devel \
2727
cyrus-sasl-devel \
2828
openssl-devel \
2929
python-devel
@@ -36,8 +36,10 @@ WORKDIR /src
3636
ENV CCACHE_COMPRESS=true
3737
ENV CCACHE_MAXSIZE=400MB
3838

39-
RUN git clone --depth=1 https://github.com/apache/qpid-proton.git
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
4041
RUN CCACHE_DIR=/ccache/$(arch) cmake -S qpid-proton -B cmake-build-qpid-proton -GNinja \
42+
-DENABLE_WARNING_ERROR=OFF \
4143
-DCMAKE_C_COMPILER_LAUNCHER=ccache \
4244
-DCMAKE_CXX_COMPILER_LAUNCHER=ccache \
4345
-DCMAKE_INSTALL_PREFIX=cmake-install \
@@ -72,7 +74,6 @@ RUN /usr/bin/crb enable
7274
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
7375

7476
RUN dnf -y --setopt=install_weak_deps=0 --setopt=tsflags=nodocs install \
75-
opentelemetry-cpp \
7677
cyrus-sasl cyrus-sasl-gssapi cyrus-sasl-lib cyrus-sasl-plain \
7778
openssl
7879

0 commit comments

Comments
 (0)