forked from apache/incubator-kie-kogito-images
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[KOGITO-4619] - Prepare the kogito-images repository for productizati…
…on (apache#383) * [KOGITO-4619] - Prepare the kogito-images repository for productization Signed-off-by: spolti <[email protected]> Co-authored-by: Tristan Radisson <[email protected]> Co-authored-by: Ricardo Zanini <[email protected]>
- Loading branch information
1 parent
4e1de0c
commit 27b8e92
Showing
35 changed files
with
883 additions
and
569 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -29,3 +29,6 @@ bats/* | |
*.db | ||
*.tlog | ||
|
||
# python | ||
scripts/__pycache__ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
platforms: | ||
only: | ||
- x86_64 | ||
compose: | ||
pulp_repos: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# This is a file defining which content sets (yum repositories) are needed to | ||
# update content in this image. Data provided here helps determine which images | ||
# are vulnerable to specific CVEs. Generally you should only need to update this | ||
# file when: | ||
# 1. You start depending on a new product | ||
# 2. You are preparing new product release and your content sets will change | ||
# | ||
# See https://mojo.redhat.com/docs/DOC-1023066 for more information on | ||
# maintaining this file and the format and examples | ||
# | ||
# You should have one top level item for each architecture being built. Most | ||
# likely this will be x86_64 and ppc64le initially. | ||
--- | ||
x86_64: | ||
- rhel-8-for-x86_64-baseos-rpms | ||
- rhel-8-for-x86_64-appstream-rpms |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
--- !Policy | ||
id: "cvp-rhpam-kogito-builder" | ||
product_versions: | ||
- cvp | ||
decision_context: cvp_default | ||
rules: | ||
- !PassingTestCaseRule {test_case_name: rhpam-kogito-builder.openshift.external} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
--- !Policy | ||
id: "cvp-rhpam-kogito-runtime-jvm" | ||
product_versions: | ||
- cvp | ||
decision_context: cvp_default | ||
rules: | ||
- !PassingTestCaseRule {test_case_name: rhpam-kieserver-kogito-runtime-jvm.openshift.external} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
schema_version: 1 | ||
|
||
name: "rhpam-7/rhpam-kogito-builder-rhel8" | ||
version: "7.11.0" | ||
from: "registry.redhat.io/ubi8/ubi-minimal:latest" | ||
description: "RHPAM Platform for building Kogito based on Quarkus or SpringBoot" | ||
|
||
labels: | ||
- name: "com.redhat.component" | ||
value: "rhpam-7-kogito-runtime-jvm-rhel8-container" | ||
- name: "io.k8s.display-name" | ||
value: "Red Hat build of Kogito based on Quarkus or SpringBoot" | ||
- name: "io.openshift.tags" | ||
value: "rhpam-kogito,builder,kogito,quarkus,springboot" | ||
|
||
packages: | ||
content_sets_file: content_sets.yaml | ||
|
||
osbs: | ||
configuration: | ||
container_file: container.yaml | ||
extra_dir: osbs-extra/rhpam-kogito-builder-rhel8 | ||
repository: | ||
name: containers/rhpam-7-kogito-builder | ||
branch: rhba-7-rhel-8 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
kind: ImageStreamList | ||
apiVersion: v1 | ||
metadata: | ||
name: rhpam-kogito-image-streams | ||
annotations: | ||
description: ImageStream definitions for Red Hat build of Kogito images | ||
openshift.io/provider-display-name: Kie Group. | ||
items: | ||
- kind: ImageStream | ||
apiVersion: v1 | ||
metadata: | ||
name: rhpam-kogito-runtime-jvm-rhel8 | ||
annotations: | ||
openshift.io/display-name: Runtime image for Kogito based on Quarkus or SpringBoot JVM image | ||
openshift.io/provider-display-name: Kie Group. | ||
spec: | ||
tags: | ||
- name: '7.11.0' | ||
annotations: | ||
description: Runtime image for Kogito based on Quarkus or SpringBoot JVM image | ||
iconClass: icon-jbpm | ||
tags: rhpam-kogito,runtime,kogito,quarkus,springboot,jvm | ||
supports: quarkus | ||
version: '7.11.0' | ||
referencePolicy: | ||
type: Local | ||
from: | ||
kind: DockerImage | ||
name: registry.redhat.io/rhpam-7/rhpam-kogito-runtime-jvm-rhel8:7.11.0 | ||
- kind: ImageStream | ||
apiVersion: v1 | ||
metadata: | ||
name: rhpam-kogito-builder-rhel8 | ||
annotations: | ||
openshift.io/display-name: Platform for building Kogito based on Quarkus or SpringBoot | ||
openshift.io/provider-display-name: Kie Group. | ||
spec: | ||
tags: | ||
- name: '7.11.0' | ||
annotations: | ||
description: Platform for building Kogito based on Quarkus or SpringBoot | ||
iconClass: icon-jbpm | ||
tags: rhpam-kogito,builder,kogito,quarkus,springboot | ||
supports: quarkus | ||
version: '7.11.0' | ||
referencePolicy: | ||
type: Local | ||
from: | ||
kind: DockerImage | ||
name: registry.redhat.io/rhpam-7/rhpam-kogito-builder-rhel8:7.11.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
schema_version: 1 | ||
|
||
name: "rhpam-7/rhpam-kogito-runtime-jvm-rhel8" | ||
version: "7.11.0" | ||
from: "registry.redhat.io/ubi8/ubi-minimal:latest" | ||
description: "RHPAM Runtime image for Kogito based on Quarkus or SpringBoot JVM image" | ||
|
||
labels: | ||
- name: "com.redhat.component" | ||
value: "rhpam-7-kogito-runtime-jvm-rhel8-container" | ||
- name: "io.k8s.display-name" | ||
value: "Red Hat build of Kogito based on Quarkus or SpringBoot JVM image" | ||
- name: "io.openshift.tags" | ||
value: "rhpam-kogito,runtime,kogito,quarkus,springboot,jvm" | ||
|
||
packages: | ||
content_sets_file: content_sets.yaml | ||
|
||
osbs: | ||
configuration: | ||
container_file: container.yaml | ||
extra_dir: osbs-extra/rhpam-kogito-runtime-jvm-rhel8 | ||
repository: | ||
name: containers/rhpam-7-kogito-runtime-jvm | ||
branch: rhba-7-rhel-8 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
#!/usr/bin/env bash | ||
# Simple usage: /bin/sh scripts/push-local-registry.sh ${REGISTRY} ${SHORTENED_LATEST_VERSION} ${NS} | ||
|
||
ver=$(cekit --version ) | ||
ver=$((${ver//./} + 0)) | ||
if [ ${ver//./} -lt 379 ]; then | ||
echo "Using CEKit version $ver, Please use CEKit version 3.8.0 or greater." | ||
exit 10 | ||
fi | ||
|
||
image="${2}" | ||
if [ "x${image}" == "x" ]; then | ||
echo "image_name can't be empty.." | ||
exit 8 | ||
fi | ||
|
||
BUILD_ENGINE="${3:-docker}" | ||
CEKIT_CMD="cekit --verbose --redhat" | ||
|
||
# extract the community image name from its product relative. | ||
# $1 - prod image name | ||
function get_parent_image_overrides() { | ||
echo "${1}" | awk -v FS="(rhpam-|-rhel8)" '{print $2}' | ||
} | ||
|
||
ACTION=${1} | ||
case ${ACTION} in | ||
"build") | ||
echo "Using ${BUILD_ENGINE} build engine" | ||
${CEKIT_CMD} build --overrides-file $(get_parent_image_overrides ${image})-overrides.yaml --overrides-file ${image_name}-overrides.yaml ${BUILD_ENGINE} | ||
;; | ||
|
||
"test") | ||
${CEKIT_CMD} test --overrides-file $(get_parent_image_overrides ${image})-overrides.yaml --overrides-file ${image_name}-overrides.yaml behave | ||
;; | ||
*) | ||
echo "Please use build or test actions." | ||
;; | ||
esac | ||
|
Oops, something went wrong.