From fcc8669cfcb9885ada7da9fc84493845a8b31a5d Mon Sep 17 00:00:00 2001 From: DJ Mountney Date: Thu, 22 Apr 2021 09:44:41 -0700 Subject: [PATCH 1/2] Update GitLab to the 13.11.0 Minor Feature Release --- Dockerfile | 15 ++++++++++++--- build-scripts/build.sh | 2 +- hardening_manifest.yaml | 10 +++++----- openshift.metadata | 6 ++++++ 4 files changed, 24 insertions(+), 9 deletions(-) create mode 100644 openshift.metadata diff --git a/Dockerfile b/Dockerfile index e4778ca..99a045a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,17 +1,26 @@ -ARG GITLAB_VERSION=v13.10.3-ubi8 +ARG GITLAB_VERSION=v13.11.0-ubi8 ARG BASE_REGISTRY=nexus-docker-secure.levelup-nexus.svc.cluster.local:18082 ARG BASE_IMAGE=gitlab/gitlab/gitlab-ruby -ARG BASE_TAG=13.10.3 +ARG BASE_TAG=13.11.0 ARG RUBY_IMAGE=${BASE_REGISTRY}/${BASE_IMAGE}:${BASE_TAG} FROM ${RUBY_IMAGE} -ARG GITLAB_EXPORTER_VERSION=10.1.0 +ARG GITLAB_EXPORTER_VERSION=10.2.0 ARG GITLAB_USER=git ARG DNF_OPTS +LABEL source="https://gitlab.com/gitlab-org/build/CNG/-/tree/master/gitlab-exporter" \ + name="GitLab Exporter" \ + maintainer="GitLab Distribution Team" \ + vendor="GitLab" \ + version=${GITLAB_EXPORTER_VERSION} \ + release=${GITLAB_EXPORTER_VERSION} \ + summary="Prometheus Web exporter for GitLab." \ + description="Prometheus Web exporter for GitLab." + ENV CONFIG_TEMPLATE_DIRECTORY=/var/opt/gitlab-exporter/templates ENV CONFIG_DIRECTORY=/etc/gitlab-exporter ENV CONFIG_FILENAME=gitlab-exporter.yml diff --git a/build-scripts/build.sh b/build-scripts/build.sh index 2b37018..19910a6 100755 --- a/build-scripts/build.sh +++ b/build-scripts/build.sh @@ -4,7 +4,7 @@ set -euxo pipefail -TAG=${1:-13.10.3} +TAG=${1:-13.11.0} REPOSITORY=${2:-} DOCKER_OPTS=${DOCKER_OPTS:-""} diff --git a/hardening_manifest.yaml b/hardening_manifest.yaml index 329ba67..d08d9cd 100644 --- a/hardening_manifest.yaml +++ b/hardening_manifest.yaml @@ -5,12 +5,12 @@ name: "gitlab/gitlab/gitlab-exporter" # The most specific version should be the first tag and will be shown # on ironbank.dsop.io tags: - - "13.10.3" + - "13.11.0" - "latest" # Build args passed to Dockerfile ARGs args: BASE_IMAGE: "gitlab/gitlab/gitlab-ruby" - BASE_TAG: "13.10.3" + BASE_TAG: "13.11.0" # Docker image labels labels: org.opencontainers.image.title: "Gitlab Exporter" @@ -22,7 +22,7 @@ labels: org.opencontainers.image.url: "https://about.gitlab.com/" ## Name of the distributing entity, organization or individual org.opencontainers.image.vendor: "Gitlab" - org.opencontainers.image.version: "13.10.3" + org.opencontainers.image.version: "13.11.0" ## Keywords to help with search (ex. "cicd,gitops,golang") mil.dso.ironbank.image.keywords: "gitlab, git, gitops" ## This value can be "opensource" or "commercial" @@ -43,8 +43,8 @@ maintainers: username: "alfontaine" email: "alan.fontaine@centauricorp.com" resources: - - url: "https://gitlab-ubi.s3.amazonaws.com/ubi8-build-dependencies-v13.10.3-ubi8/gitlab-exporter.tar.gz" + - url: "https://gitlab-ubi.s3.amazonaws.com/ubi8-build-dependencies-v13.11.0-ubi8/gitlab-exporter.tar.gz" filename: "gitlab-exporter.tar.gz" validation: type: "sha256" - value: "38bbedb402c3ff652eaf7a103253f998a0fb26e8a641d30f341d88a9d2fc05c4" + value: "c084a4a601eeaba34774622de6f3f3b9ac4c4ea82638363b7a362a421adbb684" diff --git a/openshift.metadata b/openshift.metadata new file mode 100644 index 0000000..7878ed2 --- /dev/null +++ b/openshift.metadata @@ -0,0 +1,6 @@ +io.openshift.tags=gitlab-exporter +io.openshift.wants=gitlab-webservice +io.k8s.description=Prometheus exporter for logging from GitLab containers. +io.openshift.non-scalable=false +io.openshift-min-memory=100Mi +io.openshift.min-cpu=75m -- GitLab From c9a8ad88ed7c78bdc659b3cbdb1564e6a628dff9 Mon Sep 17 00:00:00 2001 From: DJ Mountney Date: Thu, 22 Apr 2021 10:26:23 -0700 Subject: [PATCH 2/2] Drop labels from the dockerfile --- Dockerfile | 9 --------- 1 file changed, 9 deletions(-) diff --git a/Dockerfile b/Dockerfile index 99a045a..2c37f91 100644 --- a/Dockerfile +++ b/Dockerfile @@ -12,15 +12,6 @@ ARG GITLAB_EXPORTER_VERSION=10.2.0 ARG GITLAB_USER=git ARG DNF_OPTS -LABEL source="https://gitlab.com/gitlab-org/build/CNG/-/tree/master/gitlab-exporter" \ - name="GitLab Exporter" \ - maintainer="GitLab Distribution Team" \ - vendor="GitLab" \ - version=${GITLAB_EXPORTER_VERSION} \ - release=${GITLAB_EXPORTER_VERSION} \ - summary="Prometheus Web exporter for GitLab." \ - description="Prometheus Web exporter for GitLab." - ENV CONFIG_TEMPLATE_DIRECTORY=/var/opt/gitlab-exporter/templates ENV CONFIG_DIRECTORY=/etc/gitlab-exporter ENV CONFIG_FILENAME=gitlab-exporter.yml -- GitLab