1 Answer
- Newest
- Most votes
- Most comments
0
You can modify your Dockerfile to skip the tests by passing the -DENABLE_TESTING=OFF flag to the cmake command. This will prevent the tests from being built and executed, which should resolve the errors you're seeing.
Here’s an updated version of your Dockerfile:
FROM ubuntu:22.04
# Install dependencies
RUN apt update && \
apt install -y ca-certificates build-essential uuid-dev libpulse-dev g++ cmake git libcurl4-openssl-dev \
zlib1g-dev wget libssl-dev --no-install-recommends && \
apt-get autoremove -y && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
# Clone AWS SDK for C++ and build it
RUN cd /app/src && \
git clone --depth 1 --recurse-submodules https://github.com/aws/aws-sdk-cpp && \
mkdir -p /app/src/aws-sdk-cpp/build && \
cd /app/src/aws-sdk-cpp/build && \
cmake .. -DCMAKE_BUILD_TYPE=Release -DBUILD_ONLY="sqs" -DCMAKE_PREFIX_PATH=/usr/local/ -DCMAKE_INSTALL_PREFIX=/usr/local -DENABLE_TESTING=OFF && \
make -j$(nproc) && make install
This approach ensures that your build process is focused purely on compiling the SDK and avoids any test-related errors.
Relevant content
- asked 2 years ago
- asked 2 years ago
- AWS OFFICIALUpdated 2 years ago
