Change the MAINTAINER email address to your own if you like. This starts by pulling down the official Fedora 20 image. # Container build for pdftk (last packaged in Fedora 20) Before I get into that, revise the Docker build configuration as follows: $ cat Dockerfile But running a container as root is not a best security practice. While this will allow the container to access the files we are working with (using the -v option), it will also cause new files to be owned by root. Note that the -privileged option runs the container as root. The README file shows how to define an alias to run the container: # alias pdftk='docker run -it -privileged -v $PWD:/workdir -w /workdir/ /pdftk' Rather than reinventing the wheel, I did some quick research and found a GitHub repository with a README and a Dockerfile to build such a container.įirst, make sure your Docker environment is configured by installing, enabling, and starting the Docker service: $ sudo dnf install -y docker Fortunately, there’s a simple solution: just package it in a container and run it on a more recent Fedora version. While various alternatives are available, you may still want to use PDFtk. Unfortunately, PDFtk was last packaged in Fedora 20 due to build requirements. You can learn more about it in this article. Among other things, it lets you merge, split, and burst PDF documents, with or without encryption. A colleague recently told me about one of his favorite utilities, PDFtk.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |