The Build commands of the selected programming language can work directly with KintoBlocks. When the command is run, the associated plugins and packages are added to the Kintoblock and as a result installed on the server.
For example: In a NodeJS project, when the build command
npm installis executed, the dependencies of
package.jsonfile are added to the KintoBlock.
Another example: In a Python project, running the build command
pip install -r requirements.txtwill add the related dependencies to Kintoblock and install them on the associated server.
Just like build commands, Run commands also can be used with Kintoblock. Here are some examples of how they work:
In a NodeJS project, when the command
npm run prodis executed, the KintoBlock initiates the necessary steps to start the service and keep it running on the associated server.
In Python projects, by running the command
flask run --port 80 --host 0.0.0.0the KintoBlock service can be initiated on the specified port server.
The events caused by the execution of build and run commands can be viewed in the logs page of the builds under Sending build context to Docker daemon.