We need to add support for passing build arguments to our Docker images when using Kaniko for building. Specifically, we want to add the ability to override certain global variables in the binary through build arguments, e.g. MAX_SQUARE_SIZE and UPGRADE_HEIGHT_DELAY.
This would be similar to using Docker’s --build-arg functionality, as shown below:
We need to add support for passing build arguments to our Docker images when using Kaniko for building. Specifically, we want to add the ability to override certain global variables in the binary through build arguments, e.g.
MAX_SQUARE_SIZE
andUPGRADE_HEIGHT_DELAY
.This would be similar to using Docker’s
--build-arg
functionality, as shown below: