This solution dockerize the application made by ANAF to validate and generate diferent types of declarations. Inspired by this repository made by IncrementalCommunity.
This image has support for the following declarations:
You can build the image by yourself using the build.sh tool.
The idea behind this approach you can mount -v your current path $PWD where your xml declarations are located and pass the ID of the declaration name. The container will output a smart pdf having the same name as the declaration id passed as the argument. The /app/host is the path to be mounted inside the image.
Accepted enviroment variables:
ID: declaration ID (required)XML_FILE: the XML declaration file that needs to be validated, without extension (optional).PDF_FILE: the resulting PDF file, without extension (optional).LOG_FILE: log file. Defaults to dukintegrator.log (optional).
- Your xml file has the following naming convention
100.xml. The resulting PDF file will follow the same rule100.pdf
docker run -e ID=100 --rm -v "$PWD:/app/host" dukintegrator:1.7.1- Your xml file has a different naming
D100_1234_1232232.xmland the resulting PDF file to bed100_validation.pdf
docker run -e ID=100 -e XML_FILE=D100_1234_1232232 -e PDF_FILE=d100_validation --rm -v "$PWD:/app/host" dukintegrator:1.7.1