cancel
Showing results for 
Search instead for 
Did you mean: 
Presian1
Mission Specialist
Mission Specialist
  • 761 Views

CH09S02 - Lab Comprehensive Review

Jump to solution

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)

    Screenshot_5.png, my Containerfile is correct, why does this happen i tried deleting my workstation and re-creating but facing the same issue.

1 Solution

Accepted Solutions
Wasim_Raja
Moderator
Moderator
  • 690 Views

@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.

View solution in original post

0 Kudos
2 Replies
Wasim_Raja
Moderator
Moderator
  • 691 Views

@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.

0 Kudos
Presian1
Mission Specialist
Mission Specialist
  • 685 Views

Works, thank you

Join the discussion
You must log in to join this conversation.