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 <> MAINTAINER Tobias Lasser <>
MAINTAINER David Frank <> MAINTAINER David Frank <>
LABEL Description="Image for static analysis tools (clang-tidy, clang-format)" LABEL Description="Image for static analysis tools (clang-tidy, clang-format)"
RUN apt-get -qq update \ 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/* && rm -rf /var/lib/apt/lists/*
FROM base as build-cmake
# CMake version
ADD scripts/ /tmp/scripts/
RUN bash /tmp/scripts/ "${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." ...@@ -146,7 +146,8 @@ echo "...done."
### Build Static Analysis image ### ### Build Static Analysis image ###
echo "Building docker image static-analysis..." 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." echo "...done."
./tests/ "static-analysis" "8" "" --network=$network_mode ./tests/ "static-analysis" "8" "" --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