some docker related snippets and howtos mainly for the pdfToolbox-cli
note: docker-snippets for other callas products (pdfaPilot, pdfChip) can be found inside the 'other' subdirectory
please see also our ready-to-use docker images on https://hub.docker.com/repository/docker/callassoftware/pdftoolbox-cli
note: Starting with pdfToolbox v15-1-639, these images support not only AMD64/Intel64, but also ARM64 as well
docker pull callassoftware/pdftoolbox-cli
run preflight using the sample.kfpx/sample.pdf contained in the image
docker run --rm -ti callassoftware/pdftoolbox-cli ./pdfToolbox sample.kfpx sample.pdf --licenseserver=<ip of a callas license server>
assumption: there is a linux image build machine with the needed tools already installed (such as git, wget, tar, docker etc.)
git clone https://github.com/callassoftware/docker-snippets.git
cd docker-snippets
wget https://www.callassoftware.com/extranet/callas_pdfToolboxCLIandServer/callas_pdfToolboxCLI_x64_Linux_16-1-662.tar.gz
tar zxvpf callas_pdfToolboxCLI_x64_Linux_16-1-662.tar.gz
mv callas_pdfToolboxCLI_x64_Linux_16-1-662 callas_pdfToolboxCLI_Linux_16-1-662
Before building the image, you can optionally reduce its size by removing pdfToolbox components that aren't needed for your specific use case. This allows you to create a smaller "essential" image.
cd callas_pdfToolboxCLI_Linux_16-1-662
bash ../reduce-essential.sh
cd ..
docker build -t callassoftware/pdftoolbox-cli:v16-1-662 -f Dockerfile-debian .
docker run --rm -ti callassoftware/pdftoolbox-cli:v16-1-662 ./pdfToolbox --version