Comment on page
In this section, we will provide information on the
Build configuration is used to create and push docker images in the container registry of your application. You will provide all the docker related information to build and push docker images on the
For build configuration, you must provide information in the sections as given below:
The following fields are provided on the Store Container Image section:
If you are using docker hub account, you need to enter the repository name along with your username. For example - If my username is kartik579 and repo name is devtron-trial, then enter kartik579/devtron-trial instead of only devtron-trial.
In order to deploy the application, we must build the container images to configure a fully operational container environment.
You can choose one of the following options to build your container image:
- I have a Dockerfile
- Create Dockerfile
- Build without Dockerfile
Dockerfileis a text document that contains all the commands which you can call on the command line to build an image.
With the option Create Dockerfile, you can create a
Dockerfilefrom the available templates. You can edit any selected Dockerfile template as per your build configuration requirements.
With the option Build without Dockerfile, you can use Buildpacks to automatically build the image for your preferred language and framework.
You can add Key/Value pair by clicking Add argument.
Using this option, you can build images for a specific or multiple architectures and operating systems (target platforms). You can select the target platform from the drop-down list or can type to select a customized target platform.
Select target platform from drop-down
Select custom target platform
Before selecting a customized target platform, please ensure that the architecture and the operating system are supported by the
registry typeyou are using, otherwise build will fail. Devtron uses BuildX to build images for mutiple target Platforms, which requires higher CI worker resources. To allocate more resources, you can increase value of the following parameters in the
To edit the
kubectl edit configmap devtron-cm -n devtroncd
If target platform is not set, Devtron will build image for architecture and operating system of the k8s node on which CI is running.
The Target Platform feature might not work in minikube & microk8s clusters as of now.
It is is a collapsed view including the following parameters:
Click Save Configuration.