celestiaorg / knuu

Integration Test Framework
Apache License 2.0
39 stars 35 forks source link

Add support for build arguments when building Docker images using Kaniko #567

Closed mojtaba-esk closed 1 month ago

mojtaba-esk commented 1 month ago

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:

docker build --build-arg MAX_SQUARE_SIZE=64 --build-arg UPGRADE_HEIGHT_DELAY=1000 -t celestia-app:latest .