File tree Expand file tree Collapse file tree 3 files changed +16
-5
lines changed
build-request-processor/src/main/java/com/redhat/hacbs/container/build/preprocessor/maven
driver/src/main/resources Expand file tree Collapse file tree 3 files changed +16
-5
lines changed Original file line number Diff line number Diff line change 81
81
cpu : 10m
82
82
memory : 512Mi
83
83
script : |
84
- ls -lR $(workspaces.source.path)
85
84
/opt/jboss/container/java/run/run-java.sh $(params.BUILD_TOOL)-prepare --java-version=$(params.JAVA_VERSION) --build-tool-version=$(params.BUILD_TOOL_VERSION) --recipe-image=$(params.RECIPE_IMAGE) --request-processor-image=$(params.JVM_BUILD_SERVICE_REQPROCESSOR_IMAGE) --disabled-plugins=$(params.BUILD_PLUGINS) $(workspaces.source.path)/source
86
85
env :
87
86
- name : BUILD_SCRIPT
@@ -119,7 +118,6 @@ spec:
119
118
- name : create-pre-build-image
120
119
image : quay.io/redhat-appstudio/build-trusted-artifacts:latest@sha256:52f1391e6f1c472fd10bb838f64fae2ed3320c636f536014978a5ddbdfc6b3af
121
120
script : |
122
- ls -lR $(workspaces.source.path)
123
121
echo "Creating pre-build-image archive"
124
122
create-archive --store $(params.IMAGE_URL) $(results.PRE_BUILD_IMAGE_DIGEST.path)=$(workspaces.source.path)/source
125
123
env :
Original file line number Diff line number Diff line change 1
1
package com .redhat .hacbs .container .build .preprocessor .maven ;
2
2
3
+ import static org .apache .commons .lang3 .StringUtils .isNotEmpty ;
4
+
3
5
import java .io .BufferedReader ;
4
6
import java .io .IOException ;
5
7
import java .nio .file .FileVisitResult ;
32
34
import io .quarkus .logging .Log ;
33
35
import picocli .CommandLine ;
34
36
35
- import static org .apache .commons .lang3 .StringUtils .isNotEmpty ;
36
-
37
37
/**
38
38
* A simple preprocessor that attempts to fix problematic maven build files.
39
39
* <p>
Original file line number Diff line number Diff line change 41
41
value : " %{JAVA_VERSION}"
42
42
- name : BUILD_SCRIPT
43
43
value : |
44
+ update-ca-trust
45
+
46
+ # Go through certificates and insert them into the cacerts
47
+ for cert in /etc/pki/ca-trust/source/anchors/*; do
48
+ echo "inserting $cert into java cacerts"
49
+ keytool -import -alias $(basename $cert)-ca \
50
+ -file $cert \
51
+ -keystore /etc/pki/java/cacerts \
52
+ -storepass changeit --noprompt
53
+ done;
54
+
55
+ echo "Building the project ..."
56
+
44
57
%{BUILD_SCRIPT}
45
58
- name : MVN_REPO_DEPLOY_URL
46
59
value : " %{MVN_REPO_DEPLOY_URL}"
55
68
- name : ENABLE_INDY_PROXY
56
69
value : " false"
57
70
- name : JVM_BUILD_SERVICE_REQPROCESSOR_IMAGE
58
- value : quay.io/ncross/hacbs-jvm-build-request-processor:latest
71
+ value : " quay.io/ncross/hacbs-jvm-build-request-processor:latest"
59
72
# "quay.io/redhat-user-workloads/konflux-jbs-pnc-tenant/jvm-build-service/build-request-processor:latest"
60
73
# TODO: Should PNC set both limits and requests? See
61
74
# https://home.robusta.dev/blog/kubernetes-memory-limit
You can’t perform that action at this time.
0 commit comments