Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added docs/.gitbook/assets/create-docker.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -1,36 +1,46 @@
# Docker Build Configuration

In the previous step, we discussed git configurations. In this section, we will provide information on the docker build config.
In the previous step, we discussed `Git Configurations`. In this section, we will provide information on the `Docker Build Configuration`.

Docker build configuration is used to create and push docker images in the docker registry of your application. You will provide all the docker related information to build and push docker images in this step.

Only one docker image can be created even for multi-git repository applications as explained in the [previous step](git-material.md).

![](../../.gitbook/assets/docker-configuration%20%283%29.gif)
![](../../.gitbook/assets/create-docker.gif)

Here, as you can see, there are 5 options to configure your **docker build**.

1. Repository
2. Docker file path
3. Docker Registry
4. Docker Repository
5. Docker build arguments
* Key
* Value
To add **docker build configuration**, You need to provide three sections as given below:

* **Image store**
* **Checkout path**
* **Advanced**

### Repository
In this field, you have to provide the checkout path of your repository. This repository is the same that you had defined earlier in git configuration details.
## Image Store
In Image store section, You need to provide two inputs as given below:
1. Docker registry
2. Docker repository

### Docker File Path
Here, you provide a relative path where your docker file is located. Ensure that the dockerfile is present on this path.

### Docker Registry
### 1. Docker Registry
Select the docker registry that you wish to use. This registry will be used to [store docker images](../global-configurations/docker-registries.md).

### Docker Repository
### 2. Docker Repository
In this field, add the name of your docker repository. The repository that you specify here will store a collection of related docker images. Whenever an image is added here, it will be stored with a new tag version.

## Checkout path
Checkout path including inputs:
1. Git checkout path
2. Docker file (relative)

### 1. Git checkout path
In this field, you have to provide the Git checkout path of your repository. This repository is the same that you had defined earlier in git configuration details.

### 2. Docker File Path
Here, you provide a relative path where your docker file is located. Ensure that the dockerfile is present on this path.

## Advanced
Docker build arguments is a collapsed view including
* Key
* Value

### Key-value
This field will contain the key parameter and the value for the specified key for your [docker build](https://docs.docker.com/engine/reference/commandline/build/#options). This field is Optional. \(If required, this can be overridden at [CI step](../deploying-application/triggering-ci.md) later\)