6.5.2021, 9:00 - 11:00: Due to updates GitLab may be unavailable for some minutes between 09:00 and 11:00.

Commit 542e602a authored by David Frank's avatar David Frank Committed by David Frank

#51 Adding CUDA to static anylsis image to fix clang-tidy

parent f63aa442
Pipeline #222211 failed with stages
in 7 minutes and 3 seconds
FROM elsa/base-cmake:latest
# Provide an argument to choose the compiler version from the command line
FROM nvidia/cuda:${CUDA_VERSION}-devel-ubuntu18.04 as base
MAINTAINER Tobias Lasser <lasser@in.tum.de>
MAINTAINER David Frank <dfrank@in.tum.de>
LABEL Description="Image for static analysis tools (clang-tidy, clang-format)"
RUN apt-get -qq update \
&& apt-get --no-install-recommends install -qqy clang-tidy-8 clang-format-8 \
&& apt-get --no-install-recommends install -qqy build-essential wget git ca-certificates ninja-build libssl-dev clang-tidy-8 clang-format-8 \
&& rm -rf /var/lib/apt/lists/*
FROM base as build-cmake
# CMake version
ADD scripts/ /tmp/scripts/
RUN bash /tmp/scripts/install_cmake.sh "${CMAKE_VERSION}" "${CMAKE_DIR}"
FROM base as cmake
COPY --from=build-cmake /tmp/cmake-install /usr/local
ADD tests/ /tmp/tests/
......@@ -146,7 +146,8 @@ echo "...done."
### Build Static Analysis image ###
echo "Building docker image static-analysis..."
docker build $docker_arguments -t staging/static-analysis:8 -f DocFileStaticAnalysis .
docker build $docker_arguments -t staging/static-analysis:8 -f DocFileStaticAnalysis --build-arg CUDA_VERSION=${cuda_version} \
--build-arg CMAKE_VERSION=${cmake_version} --build-arg CMAKE_VERSION_PATCH=${cmake_patch_version} .
echo "...done."
./tests/test_template.sh "static-analysis" "8" "test_static-analysis.sh" --network=$network_mode
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment