diff --git a/Dockerfile b/Dockerfile index cb7501d43eb42175e70756978c5b0f2e9e82d03d..f12044e60b547ef78aaa66641de8c2bfa06cbd6b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,17 +1,11 @@ ARG BASE_REGISTRY=registry1.dsop.io -ARG BASE_IMAGE=redhat/openjdk/openjdk11 +ARG BASE_IMAGE=ironbank/redhat/openjdk/openjdk11 ARG BASE_TAG=1.11 FROM sonarqube:8.6-enterprise AS build FROM ${BASE_REGISTRY}/${BASE_IMAGE}:${BASE_TAG} -LABEL org.opencontainers.image.title="SonarQube" \ - org.opencontainers.image.description="SonarQube is an automatic code review tool to detect bugs, vulnerabilities and code smells in your code." \ - org.opencontainers.image.licenses="All rights reserved" \ - org.opencontainers.image.version="8.6-enterprise" \ - maintainer="SonarSource" - ARG SONARQUBE_VERSION="8.6-enterprise" ENV SONAR_VERSION="${SONARQUBE_VERSION}" \ SONARQUBE_HOME="/opt/sonarqube" \ diff --git a/Jenkinsfile b/Jenkinsfile deleted file mode 100644 index 5ee5278731f8b9813b39dc675676d39a99bce511..0000000000000000000000000000000000000000 --- a/Jenkinsfile +++ /dev/null @@ -1,2 +0,0 @@ -@Library('DCCSCR@master') _ -dccscrPipeline(version: "8.6-enterprise") diff --git a/download.yaml b/download.yaml deleted file mode 100644 index 3e2c2a2e8d1043409bc463a3549ad8da6838ee23..0000000000000000000000000000000000000000 --- a/download.yaml +++ /dev/null @@ -1,4 +0,0 @@ ---- -resources: - - url: "docker://docker.io/library/sonarqube@sha256:d8d2ee0bb81584c2becbf8daafce42c9209c8dc923236e3b54f6644ac0c4fceb" - tag: "sonarqube:8.6-enterprise" diff --git a/hardening_manifest.yaml b/hardening_manifest.yaml new file mode 100644 index 0000000000000000000000000000000000000000..54bb3d3da434f063b90e91f3dbc169940cfdc24a --- /dev/null +++ b/hardening_manifest.yaml @@ -0,0 +1,50 @@ +--- +apiVersion: v1 + +# The repository name in registry1, excluding /ironbank/ +name: "sonarsource/sonarqube/sonarqube8-enterprise" + +# List of tags to push for the repository in registry1 +# The most specific version should be the first tag and will be shown +# on ironbank.dsop.io +tags: +- "8.6-enterprise" +- "latest" + +# Build args passed to Dockerfile ARGs +args: + BASE_IMAGE: "redhat/openjdk/openjdk11" + BASE_TAG: "1.11" + +# Docker image labels +labels: + org.opencontainers.image.title: "sonarqube8-enterprise" + ## Human-readable description of the software packaged in the image + org.opencontainers.image.description: "SonarQube is an automatic code review tool to detect bugs, vulnerabilities and code smells in your code." + ## License(s) under which contained software is distributed + org.opencontainers.image.licenses: "All rights reserved" + ## URL to find more information on the image + org.opencontainers.image.url: "https://docs.sonarqube.org/latest/" + ## Name of the distributing entity, organization or individual + org.opencontainers.image.vendor: "SonarSource SA" + org.opencontainers.image.version: "8.6-enterprise" + ## Keywords to help with search (ex. "cicd,gitops,golang") + mil.dso.ironbank.image.keywords: "cicd,devops,sast,review" + ## This value can be "opensource" or "commercial" + mil.dso.ironbank.image.type: "commercial" + ## Product the image belongs to for grouping multiple images + mil.dso.ironbank.product.name: "SonarQube" + +# List of resources to make available to the offline build context +resources: +- url: "docker://docker.io/library/sonarqube@sha256:d8d2ee0bb81584c2becbf8daafce42c9209c8dc923236e3b54f6644ac0c4fceb" + tag: "sonarqube:8.6-enterprise" + +# List of project maintainers +maintainers: +- name: "Tobias Trabelsi" + username: "ttrabelsi" +- name: "Sean Melissari" + username: "sean.melissari" + email: "melissari_sean@bah.com" + cht_member: true diff --git a/renovate.json b/renovate.json index 69654f76ae367afa1ff6cda71dd11845211b4d5f..1ff40b9a1f54bc44cfb1969f11ed837aae5a16b4 100644 --- a/renovate.json +++ b/renovate.json @@ -1,13 +1,23 @@ { - "assignees": ["@sean.melissari"], - "baseBranches": ["development"], + "assignees": [ + "@sean.melissari" + ], + "baseBranches": [ + "development" + ], "postUpgradeTasks": { - "commands": ["kpt pkg sync ."], - "fileFilters": ["scripts/*"] + "commands": [ + "kpt pkg sync ." + ], + "fileFilters": [ + "scripts/*" + ] }, "regexManagers": [ { - "fileMatch": ["^Dockerfile$"], + "fileMatch": [ + "^Dockerfile$" + ], "matchStrings": [ "version=\"(?.*?)\"" ], @@ -16,7 +26,9 @@ "versioningTemplate": "docker" }, { - "fileMatch": ["^Dockerfile$"], + "fileMatch": [ + "^Dockerfile$" + ], "matchStrings": [ "SONARQUBE_VERSION=\"(?.*?)\"" ], @@ -25,22 +37,37 @@ "versioningTemplate": "docker" }, { - "fileMatch": ["^Jenkinsfile$"], + "fileMatch": [ + "^Kptfile$" + ], + "matchStrings": [ + "\\s+ref:\\s+(?.*?)\n" + ], + "depNameTemplate": "SonarSource/docker-sonarqube", + "datasourceTemplate": "github-tags", + "versioningTemplate": "loose" + }, + { + "fileMatch": [ + "^hardening_manifest.yaml$" + ], "matchStrings": [ - "version:\\s+\"(?.*?)\"" + "org\\.opencontainers\\.image\\.version:\\s+\"(?.+?)\"" ], "depNameTemplate": "sonarqube", "datasourceTemplate": "docker", "versioningTemplate": "docker" }, { - "fileMatch": ["^Kptfile$"], + "fileMatch": [ + "^hardening_manifest.yaml$" + ], "matchStrings": [ - "\\s+ref:\\s+(?.*?)\n" + "tags:\\s+-\\s+\"(?.+?)\"" ], - "depNameTemplate": "SonarSource/docker-sonarqube", - "datasourceTemplate": "github-tags", - "versioningTemplate": "loose" + "depNameTemplate": "sonarqube", + "datasourceTemplate": "docker", + "versioningTemplate": "docker" } ] -} +} \ No newline at end of file diff --git a/scripts/Kptfile b/scripts/Kptfile index 974d122918248edcb26d76001d26ec429f15a0b1..7ca6524e5cb9e95c3f1b42cda0c4e43f3c3bada6 100644 --- a/scripts/Kptfile +++ b/scripts/Kptfile @@ -5,10 +5,10 @@ metadata: upstream: type: git git: - commit: 080756681fa616580101c685dd08f6cb0d328bb6 + commit: cccf2b692431e2eca2bb77ab9ae749b2b54ddf6a repo: https://github.com/SonarSource/docker-sonarqube directory: /8/enterprise - ref: 8.5.1 + ref: "8.6" packageMetadata: shortDescription: sample description dependencies: @@ -16,5 +16,5 @@ dependencies: git: repo: https://github.com/SonarSource/docker-sonarqube directory: /8/enterprise - ref: 8.5.1 + ref: "8.6" updateStrategy: resource-merge