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
ARG CUDA_VERSION=10.2
FROM nvidia/cuda:${CUDA_VERSION}-devel-ubuntu18.04 as base
MAINTAINER Tobias Lasser <lasser@in.tum.de> MAINTAINER Tobias Lasser <lasser@in.tum.de>
MAINTAINER David Frank <dfrank@in.tum.de> MAINTAINER David Frank <dfrank@in.tum.de>
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
ARG CMAKE_VERSION=3.16
ARG CMAKE_VERSION_PATCH=4
ARG CMAKE_DIR=cmake-${CMAKE_VERSION}.${CMAKE_VERSION_PATCH}
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." ...@@ -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/test_template.sh "static-analysis" "8" "test_static-analysis.sh" --network=$network_mode ./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