Connect to IBM Cloud using IBM Cloud CLI
Configure IBM Cloud CLI dev environment
Go to the MySimpleTask project directory.[Optional] Delete previous dev environment setting, if you have already run “ibmcloud dev enable” command before.
Run the dev enabled command.
Build the DevOps tools docker image
Update the Dockerfile of the Spring Cloud Task application docker image
View the content of the Dockerfile of your application docker image. Observe the line that you need to change to point to the project jar file under the “target” directory which you have previously built.
Use your favorite text editor to update the Dockerfile. The example below shows how you can do that using a single “sed” command.
Run the Spring Cloud Task application docker image
Observe the hello message printed as a result of running the application in the docker image.