Build images from application source
info
Prerequisite: For this lab, Harbor and Tekton needs to be activated.
When your team is using Harbor for private image registries and Tekton is enabled on the platform level. you can build images from source using pre-configured Tekton pipelines and buildpacks from paketo to build images from application source.
In this lab, you are going to create a build, using the Spring Pet Clinic sample app and buildpacks. When using the buildpacks option, Otomi uses buildpacks to build an image based on application source code without using a Dockerfile.
- In the right menu, click on
Build
- Click on
Create Build
- Fill in a name for your build and (optional) a tag
- Choose
Buildpacks
- In the
Application source
section, fill in the following:
- RepoURL: https://github.com/spring-projects/spring-petclinic
- revision: 82cb521d636b282340378d80a6307a08e3d4a4c4
- Click
Submit
When the build is ready, you will see the image in Harbor:
- Open Harbor
- Click on the project of your team. Here you will see all the registries of the team, including the registry of the new build image