When I try to build the image in step :
reate a container image for the Beeper API that matches the following criteria:
Use a multi-stage build with a builder image to compile the Java application.
The build stage should perform the following actions:
Use the registry.ocp4.example.com:8443/ubi8/openjdk-17:1.12 container image. This image uses /home/jboss as the working directory.
Copy the contents of the ~/DO188/labs/comprehensive-review/beeper-backend host directory to the image's working directory. Change the owner to the jboss user.
Use the mvn -s settings.xml package command to create the /home/jboss/target/beeper-1.0.0.jar binary file.
The execution stage should perform the following actions:
Use the container image registry.ocp4.example.com:8443/ubi8/openjdk-17-runtime:1.12.
Copy the beeper-1.0.0.jar binary file from the builder image.
Run the java -jar beeper-1.0.0.jar command to start the Beeper API.
Tag the image with beeper-api:v1.
I get the following error (in screenshot)
, my Containerfile is correct, why does this happen i tried deleting my workstation and re-creating but facing the same issue.
@Presian1 Please change the directory using the following command andrun the build again.
cd ~/DO188/labs/comprehensive-review/beeper-backend
Let me know if you still face any issue.
@Presian1 Please change the directory using the following command andrun the build again.
cd ~/DO188/labs/comprehensive-review/beeper-backend
Let me know if you still face any issue.
Works, thank you
Red Hat
Learning Community
A collaborative learning environment, enabling open source skill development.