jkube icon indicating copy to clipboard operation
jkube copied to clipboard

Unable to build quickstart spring-boot in Openshift 4.12

Open glennodickson opened this issue 1 year ago • 7 comments

Hi New to JKube and I've tried to build the above it seems that the OCP build config cannot pull the jkube-java due to an incompatible certificate. Example documentation does not indicate that a certificate needs to be setup in JKube for the build config.

....
[INFO] --- oc:1.13.1:build (default-cli) @ spring-boot ---
[INFO] oc: Using OpenShift build with strategy S2I
[INFO] oc: Building Docker image
[INFO] oc: Running generator spring-boot
[INFO] oc: spring-boot: Using Docker image quay.io/jkube/jkube-java:0.0.19 as base / builder
[INFO] oc: [spring-boot:1.13.1] "spring-boot": Created docker source tar C:\data\project\jkube-master\quickstarts\maven\spring-boot\target\docker\spring-boot\1.13.1\tmp\docker-build.tar
[INFO] oc: Adding to Secret pullsecret-jkube
[INFO] oc: Using Secret pullsecret-jkube
[INFO] oc: Creating BuildServiceConfig spring-boot-s2i for Source build
[INFO] oc: Creating ImageStream spring-boot
[INFO] oc: Starting Build spring-boot-s2i
[INFO] oc: Waiting for build spring-boot-s2i-1 to complete...
[INFO] oc: time="2023-08-07T16:43:42Z" level=info msg="Not using native diff for overlay, this may cause degraded performance for building images: kernel has CONFIG_OVERLAY_FS_REDIRECT_DIR enabled"
[INFO] oc: I0807 16:43:42.495680       1 defaults.go:112] Defaulting to storage driver "overlay" with options [mountopt=metacopy=on].    
[INFO] oc: Caching blobs under "/var/cache/blobs".
[INFO] oc: Trying to pull quay.io/jkube/jkube-java:0.0.19...
[INFO] oc: Warning: Pull failed, retrying in 5s ...
[INFO] oc: Trying to pull quay.io/jkube/jkube-java:0.0.19...
[INFO] oc: Warning: Pull failed, retrying in 5s ...
[INFO] oc: Trying to pull quay.io/jkube/jkube-java:0.0.19...
[INFO] oc: Warning: Pull failed, retrying in 5s ...
[INFO] oc: error: build error: After retrying 2 times, Pull image still failed due to error: initializing source docker://quay.io/jkube/jkube-java:0.0.19: pinging container registry quay.io: Get "https://quay.io/v2/": x509: certificate is valid for *.apps.test.fritz.box, not quay.io
[ERROR] oc: Failed to execute the build [Unable to build the image using the OpenShift build service]

I've struggled with this for sometime now and can't seem to solve. Any help would be very appreciated.

TIA

glennodickson avatar Aug 07 '23 16:08 glennodickson