UNCLASSIFIED

Commit 45547cd2 authored by sean.melissari's avatar sean.melissari
Browse files

Merge branch 'hardening_manifest' into 'development'

Migrate to hardening_manifest.yaml

See merge request !16
parents 8f0d4b26 09b99a53
Pipeline #135893 passed with stages
in 51 minutes and 52 seconds
ARG BASE_REGISTRY=registry1.dsop.io ARG BASE_REGISTRY=registry1.dsop.io
ARG BASE_IMAGE=redhat/openjdk/openjdk11 ARG BASE_IMAGE=ironbank/redhat/openjdk/openjdk11
ARG BASE_TAG=1.11 ARG BASE_TAG=1.11
FROM sonarqube:8.6-enterprise AS build FROM sonarqube:8.6-enterprise AS build
FROM ${BASE_REGISTRY}/${BASE_IMAGE}:${BASE_TAG} 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" ARG SONARQUBE_VERSION="8.6-enterprise"
ENV SONAR_VERSION="${SONARQUBE_VERSION}" \ ENV SONAR_VERSION="${SONARQUBE_VERSION}" \
SONARQUBE_HOME="/opt/sonarqube" \ SONARQUBE_HOME="/opt/sonarqube" \
......
@Library('DCCSCR@master') _
dccscrPipeline(version: "8.6-enterprise")
---
resources:
- url: "docker://docker.io/library/sonarqube@sha256:d8d2ee0bb81584c2becbf8daafce42c9209c8dc923236e3b54f6644ac0c4fceb"
tag: "sonarqube:8.6-enterprise"
---
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
{ {
"assignees": ["@sean.melissari"], "assignees": [
"baseBranches": ["development"], "@sean.melissari"
],
"baseBranches": [
"development"
],
"postUpgradeTasks": { "postUpgradeTasks": {
"commands": ["kpt pkg sync ."], "commands": [
"fileFilters": ["scripts/*"] "kpt pkg sync ."
],
"fileFilters": [
"scripts/*"
]
}, },
"regexManagers": [ "regexManagers": [
{ {
"fileMatch": ["^Dockerfile$"], "fileMatch": [
"^Dockerfile$"
],
"matchStrings": [ "matchStrings": [
"version=\"(?<currentValue>.*?)\"" "version=\"(?<currentValue>.*?)\""
], ],
...@@ -16,7 +26,9 @@ ...@@ -16,7 +26,9 @@
"versioningTemplate": "docker" "versioningTemplate": "docker"
}, },
{ {
"fileMatch": ["^Dockerfile$"], "fileMatch": [
"^Dockerfile$"
],
"matchStrings": [ "matchStrings": [
"SONARQUBE_VERSION=\"(?<currentValue>.*?)\"" "SONARQUBE_VERSION=\"(?<currentValue>.*?)\""
], ],
...@@ -25,22 +37,37 @@ ...@@ -25,22 +37,37 @@
"versioningTemplate": "docker" "versioningTemplate": "docker"
}, },
{ {
"fileMatch": ["^Jenkinsfile$"], "fileMatch": [
"^Kptfile$"
],
"matchStrings": [
"\\s+ref:\\s+(?<currentValue>.*?)\n"
],
"depNameTemplate": "SonarSource/docker-sonarqube",
"datasourceTemplate": "github-tags",
"versioningTemplate": "loose"
},
{
"fileMatch": [
"^hardening_manifest.yaml$"
],
"matchStrings": [ "matchStrings": [
"version:\\s+\"(?<currentValue>.*?)\"" "org\\.opencontainers\\.image\\.version:\\s+\"(?<currentValue>.+?)\""
], ],
"depNameTemplate": "sonarqube", "depNameTemplate": "sonarqube",
"datasourceTemplate": "docker", "datasourceTemplate": "docker",
"versioningTemplate": "docker" "versioningTemplate": "docker"
}, },
{ {
"fileMatch": ["^Kptfile$"], "fileMatch": [
"^hardening_manifest.yaml$"
],
"matchStrings": [ "matchStrings": [
"\\s+ref:\\s+(?<currentValue>.*?)\n" "tags:\\s+-\\s+\"(?<currentValue>.+?)\""
], ],
"depNameTemplate": "SonarSource/docker-sonarqube", "depNameTemplate": "sonarqube",
"datasourceTemplate": "github-tags", "datasourceTemplate": "docker",
"versioningTemplate": "loose" "versioningTemplate": "docker"
} }
] ]
} }
\ No newline at end of file
...@@ -5,10 +5,10 @@ metadata: ...@@ -5,10 +5,10 @@ metadata:
upstream: upstream:
type: git type: git
git: git:
commit: 080756681fa616580101c685dd08f6cb0d328bb6 commit: cccf2b692431e2eca2bb77ab9ae749b2b54ddf6a
repo: https://github.com/SonarSource/docker-sonarqube repo: https://github.com/SonarSource/docker-sonarqube
directory: /8/enterprise directory: /8/enterprise
ref: 8.5.1 ref: "8.6"
packageMetadata: packageMetadata:
shortDescription: sample description shortDescription: sample description
dependencies: dependencies:
...@@ -16,5 +16,5 @@ dependencies: ...@@ -16,5 +16,5 @@ dependencies:
git: git:
repo: https://github.com/SonarSource/docker-sonarqube repo: https://github.com/SonarSource/docker-sonarqube
directory: /8/enterprise directory: /8/enterprise
ref: 8.5.1 ref: "8.6"
updateStrategy: resource-merge updateStrategy: resource-merge
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