create stack failed open jdk build pack
Opened this issue · 0 comments
tppalani commented
Hi Team,
I have cloned the openjdk-buildpack repo, as per the instruction, To install the build packs run clone this repo and run the create-buildpacks.sh script.
Since I don't have docker i'm using podman so i have updated build-stack.sh file from docker to podman to build a image.
$ ./create-buildpacks.sh
---> Building Stacks
---> Building Stack jvm
BUILDING redhat/buildpacks-stack-openjdk-base:jvm...
STEP 1/6: FROM registry.access.redhat.com/ubi8/openjdk-11
Trying to pull registry.access.redhat.com/ubi8/openjdk-11:latest...
Getting image source signatures
Checking if image destination supports signatures
Copying blob sha256:d09aca24592b99820eb623c3a56914ab82562e5a4e37aa67ece0402d832e3100
Copying blob sha256:06f86e50a0b74ff9eb161a7d781228877c90e8ff57e9689e8cb8b0f092a2a9f9
Copying config sha256:d1ce871371c268991ea2f4c4dd5b5dcd972f9a68bc55f48b320afe6fa43482b9
Writing manifest to image destination
Storing signatures
STEP 2/6: ENV CNB_USER_ID=185
--> 6c3c425cbd02
STEP 3/6: ENV CNB_GROUP_ID=185
--> e36dcea75df6
STEP 4/6: RUN rm /opt/jboss/container/java/run/run-env.sh
--> e378ff79b6a7
STEP 5/6: CMD [ "/bin/bash" ]
--> f4feb0f433ef
STEP 6/6: ENTRYPOINT []
COMMIT redhat/buildpacks-stack-openjdk-base:jvm
--> fddbcbc6c464
Successfully tagged localhost/redhat/buildpacks-stack-openjdk-base:jvm
fddbcbc6c4648069d21f9b325f140b3fc1a37fa2fd7eac02257622af9ec38be1
BUILDING redhat/buildpacks-stack-openjdk-build:jvm...
STEP 1/7: FROM redhat/buildpacks-stack-openjdk-base:jvm
STEP 2/7: ARG stack_id
--> cb88a18cb458
STEP 3/7: ENV CNB_STACK_ID=${stack_id}
--> 164f38df93b3
STEP 4/7: ENV CNB_USER_ID=185
--> b23101624c2c
STEP 5/7: ENV CNB_GROUP_ID=185
--> a0ce43dbf2f8
STEP 6/7: LABEL io.buildpacks.stack.id=${stack_id}
--> 8f6334773370
STEP 7/7: USER 185
COMMIT redhat/buildpacks-stack-openjdk-build:jvm
--> 3f33258b62b8
Successfully tagged localhost/redhat/buildpacks-stack-openjdk-build:jvm
3f33258b62b85ec3d4ef7e2e75657ffa8932ced905c6fa9c3e51ee72c69ba510
BUILDING redhat/buildpacks-stack-openjdk-run:jvm...
STEP 1/6: FROM redhat/buildpacks-stack-openjdk-base:jvm
STEP 2/6: ARG stack_id
--> Using cache cb88a18cb458ee50ae4af5a61395320d0b5124907ba51732b66fa31ba79c0e3f
--> cb88a18cb458
STEP 3/6: ENV CNB_STACK_ID=${stack_id}
--> Using cache 164f38df93b31826e44ed4ded22ecf5d5846dd595b9fb80e300ea5d4bf36ebac
--> 164f38df93b3
STEP 4/6: ENV CNB_USER_ID=185
--> Using cache b23101624c2c58b52db93b155476d236f35c40c5e6c7fb6752e9c7a2302b3af9
--> b23101624c2c
STEP 5/6: ENV CNB_GROUP_ID=185
--> Using cache a0ce43dbf2f8c15a531b00da844ca2384d51a20d0ef5a1265453e8801ff45a5c
--> a0ce43dbf2f8
STEP 6/6: LABEL io.buildpacks.stack.id="${stack_id}"
COMMIT redhat/buildpacks-stack-openjdk-run:jvm
--> 3f65eabe9763
Successfully tagged localhost/redhat/buildpacks-stack-openjdk-run:jvm
3f65eabe97637893e03a7d3a30e554ea4a7cac3d3f3143f39c0652d7773ebddb
STACK BUILT!
Stack ID: com.redhat.openjdk.buildpacks.stack.jvm
Images:
redhat/buildpacks-stack-openjdk-build:jvm
redhat/buildpacks-stack-openjdk-run:jvm
---> Creating builder for builder openjdk-jvm
ERROR: invalid run image config: failed to fetch image: resolve auth for ref redhat/buildpacks-stack-openjdk-run:jvm: error getting credentials - err: exec: "docker-credential-desktop": executable file not found in %PATH%, out: ``