You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This enables a mode of building the content in-cluster, as opposed to
having folks build the content locally and then pushing it.
To enable this mode, the `-c` flag was introduced.
Copy file name to clipboardexpand all lines: utils/build_ds_container.sh
+46-23
Original file line number
Diff line number
Diff line change
@@ -11,6 +11,7 @@ print_usage() {
11
11
echo"$cmdname -h Display this help message."
12
12
echo"$cmdname -n [namespace] Build image in the given namespace (Defaults to 'openshift-compliance')."
13
13
echo"$cmdname -p Create ProfileBundle objects for the image."
14
+
echo"$cmdname -c Build content in-cluster (NOTE: This ignores the products and debug flags)."
14
15
echo"$cmdname -d Build content using the --debug flag."
15
16
echo"$cmdname -P [product] (-P ...) Specify applicable product(s) to build. This option can be specified multiple times. (Defaults to 'ocp4' 'rhcos4')"
16
17
exit 0
@@ -22,10 +23,11 @@ parms=(--datastream-only)
22
23
# "openshift-compliance"
23
24
namespace="openshift-compliance"
24
25
create_profile_bundles="false"
26
+
build_in_cluster="false"
25
27
products=()
26
28
default_products=(ocp4 rhcos4)
27
29
28
-
whilegetopts":hdpn:P:" opt;do
30
+
whilegetopts":hdpcn:P:" opt;do
29
31
case${opt}in
30
32
n ) # Set the namespace
31
33
namespace=$OPTARG
@@ -36,6 +38,9 @@ while getopts ":hdpn:P:" opt; do
36
38
p ) # Create ProfileBundle objects
37
39
create_profile_bundles="true"
38
40
;;
41
+
c ) # Build content in-cluster
42
+
build_in_cluster="true"
43
+
;;
39
44
h ) # Display help
40
45
display_description
41
46
print_usage
@@ -61,38 +66,51 @@ pushd $root_dir
61
66
62
67
echo"* Building $(echo ${products[@]}| sed 's/ /, /g') products"
0 commit comments