$darkmode
Elektra 0.11.0
|
Running the reformat-all script requires multiple dependencies. To overcome this problem, instead of trying to install all the necessary dependencies on your own, you can easily build a Docker image and run the script inside a Docker container based on this image.
Do you want to run the reformat-all and the fix-spelling script easily and without any hassle? You've come to the right place.
This is a step-by-step guide. Just follow the steps and you are good to go!
Now you are going to build your own Docker image based on Debian.
From the source root directory run the following command:
The build process depends on your Internet connection speed and the overall performance of your hardware. Most likely, it will take at least 5 minutes. Please be patient. Once you have built the image, you can reuse it multiple times.
The image tag buildelektra-sid
we suggested can be replaced by a name of your own choosing. Note that currently our sid
image is the only one with all the necessary tools installed.
After you built the image, you can execute a container like this:
Again, if you changed the image tag buildelektra-sid
, please change it above as well.
After starting the container, you should be automatically inside it in the working directory /home/jenkins/workspace
.
Now run the script:
All your files should be reformatted afterwards.
To also fix spelling errors in your files, run the script:
All your spelling errors should be fixed afterwards.