[Git][NTPsec/ntpsec][master] Build docker image with tools for code quality checks
Matt Selsky (@selsky)
gitlab at mg.gitlab.com
Thu Oct 22 01:05:29 UTC 2026
Matt Selsky pushed to branch master at NTPsec / ntpsec
Commits:
2cf09590 by Matt Selsky at 2026-10-21T15:31:23+00:00
Build docker image with tools for code quality checks
This image will be used to replace the CodeClimate checks once the image
is built in our registry.
- - - - -
2 changed files:
- + .dockerfiles/quality-checks
- .gitlab-docker-ci.yml
Changes:
=====================================
.dockerfiles/quality-checks
=====================================
@@ -0,0 +1,20 @@
+# Copyright the NTPsec project contributors
+#
+# SPDX-License-Identifier: BSD-2-Clause
+
+FROM ubuntu:latest
+ENV DEBIAN_FRONTEND=noninteractive
+
+RUN apt-get update && apt-get install -y --no-install-recommends \
+ cppcheck \
+ python3 \
+ python3-pip \
+ python3-venv \
+ && rm -rf /var/lib/apt/lists/*
+
+# Set up an isolated Python environment and install utilities
+RUN python3 -m venv /opt/venv
+ENV PATH="/opt/venv/bin:$PATH"
+RUN pip install --no-cache-dir ruff cppcheck-codequality
+
+WORKDIR /workspace
=====================================
.gitlab-docker-ci.yml
=====================================
@@ -90,3 +90,6 @@ build-ubuntu-devel:
build-cross-armhf:
allow_failure: true
<<: *build_definition
+
+build-quality-checks:
+ <<: *build_definition
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/-/commit/2cf0959048115b338f0ccba3f7103992848e1224
--
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/-/commit/2cf0959048115b338f0ccba3f7103992848e1224
You're receiving this email because of your account on gitlab.com. Manage all notifications: https://gitlab.com/-/profile/notifications | Help: https://gitlab.com/help
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ntpsec.org/pipermail/vc/attachments/20261022/eb194d00/attachment-0001.htm>
More information about the vc
mailing list