mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-24 16:42:05 +00:00
2d7cb03120
Since for dowloading some of files wget logging may take 50% of overall log [1]. [1]: https://clickhouse-builds.s3.yandex.net/14315/c32ff4c98cb3b83a12f945eadd180415b7a3b269/clickhouse_build_check/build_log_761119955_1598923036.txt
41 lines
1.8 KiB
Docker
41 lines
1.8 KiB
Docker
# docker build -t yandex/clickhouse-pvs-test .
|
|
|
|
FROM yandex/clickhouse-binary-builder
|
|
|
|
RUN apt-get update --yes \
|
|
&& apt-get install \
|
|
bash \
|
|
wget \
|
|
software-properties-common \
|
|
gpg-agent \
|
|
debsig-verify \
|
|
strace \
|
|
--yes --no-install-recommends
|
|
|
|
#RUN wget -nv -O - http://files.viva64.com/etc/pubkey.txt | sudo apt-key add -
|
|
#RUN sudo wget -nv -O /etc/apt/sources.list.d/viva64.list http://files.viva64.com/etc/viva64.list
|
|
#
|
|
#RUN apt-get --allow-unauthenticated update -y \
|
|
# && env DEBIAN_FRONTEND=noninteractive \
|
|
# apt-get --allow-unauthenticated install --yes --no-install-recommends \
|
|
# pvs-studio
|
|
|
|
ENV PKG_VERSION="pvs-studio-latest"
|
|
|
|
RUN set -x \
|
|
&& export PUBKEY_HASHSUM="486a0694c7f92e96190bbfac01c3b5ac2cb7823981db510a28f744c99eabbbf17a7bcee53ca42dc6d84d4323c2742761" \
|
|
&& wget -nv https://files.viva64.com/etc/pubkey.txt -O /tmp/pubkey.txt \
|
|
&& echo "${PUBKEY_HASHSUM} /tmp/pubkey.txt" | sha384sum -c \
|
|
&& apt-key add /tmp/pubkey.txt \
|
|
&& wget -nv "https://files.viva64.com/${PKG_VERSION}.deb" \
|
|
&& { debsig-verify ${PKG_VERSION}.deb \
|
|
|| echo "WARNING: Some file was just downloaded from the internet without any validation and we are installing it into the system"; } \
|
|
&& dpkg -i "${PKG_VERSION}.deb"
|
|
|
|
CMD echo "Running PVS version $PKG_VERSION" && cd /repo_folder && pvs-studio-analyzer credentials $LICENCE_NAME $LICENCE_KEY -o ./licence.lic \
|
|
&& cmake . -D"ENABLE_EMBEDDED_COMPILER"=OFF && ninja re2_st \
|
|
&& pvs-studio-analyzer analyze -o pvs-studio.log -e contrib -j 4 -l ./licence.lic; \
|
|
plog-converter -a GA:1,2 -t fullhtml -o /test_output/pvs-studio-html-report pvs-studio.log; \
|
|
plog-converter -a GA:1,2 -t tasklist -o /test_output/pvs-studio-task-report.txt pvs-studio.log
|
|
|