Skip to content

Commit

Permalink
build: Use devtoolset-10 instead
Browse files Browse the repository at this point in the history
  • Loading branch information
jan-auer committed May 23, 2022
1 parent 26cc7c5 commit dcb4362
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,8 @@ ENV BUILD_ARCH=${BUILD_ARCH}
ENV BUILD_TARGET=${BUILD_ARCH}-unknown-linux-gnu

RUN yum -y update \
&& yum -y install epel-release \
&& yum -y install cmake3 curl gcc gcc-c++ git make zip \
# below required for sentry-native
clang libcurl-devel \
&& yum -y install centos-release-scl epel-release \
&& yum -y install cmake3 devtoolset-10 git \
&& yum clean all \
&& rm -rf /var/cache/yum \
&& ln -s /usr/bin/cmake3 /usr/bin/cmake
Expand All @@ -44,8 +42,11 @@ ENV RELAY_FEATURES=${RELAY_FEATURES}
COPY --from=sentry-cli /bin/sentry-cli /bin/sentry-cli
COPY . .

# BUILD IT!
RUN make build-linux-release TARGET=${BUILD_TARGET} RELAY_FEATURES=${RELAY_FEATURES}
# Build with the modern compiler toolchain enabled
RUN scl enable devtoolset-10 -- \
make build-linux-release \
TARGET=${BUILD_TARGET} \
RELAY_FEATURES=${RELAY_FEATURES}

RUN cp ./target/$BUILD_TARGET/release/relay /bin/relay \
&& zip /opt/relay-debug.zip target/$BUILD_TARGET/release/relay.debug
Expand Down

0 comments on commit dcb4362

Please sign in to comment.