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: the xml file to be validated, without extension. default is
ID.xml
- PDF: the resulting PDF file, without extension. default is
ID.pdf
- 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.6.1
- Your xml file has a different naming
D100_1234_1232232.xml
and the resulting PDF file to bed100_validation.pdf
docker run -e ID=100 -e XML=D100_1234_1232232 -e PDF=d100_validation --rm -v "$PWD:/app/host" dukintegrator:1.6.1