From 7670dee90be31be3e958b7b79e346ed6e05190a3 Mon Sep 17 00:00:00 2001 From: Nick L Date: Sun, 5 Mar 2023 23:50:16 -0500 Subject: [PATCH] Add PDF printing support and basic volume instructions --- Dockerfile | 3 ++- README.md | 6 ++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index fa4e9a6..a864444 100644 --- a/Dockerfile +++ b/Dockerfile @@ -33,6 +33,7 @@ RUN apt-get update \ hpijs-ppds \ hp-ppd \ hplip \ + printer-driver-cups-pdf \ && apt-get clean \ && rm -rf /var/lib/apt/lists/* @@ -66,4 +67,4 @@ CMD ["cupsd", "-f"] VOLUME ["/etc/cups"] # ports -EXPOSE 631 \ No newline at end of file +EXPOSE 631 diff --git a/README.md b/README.md index eaec641..3e7d7b4 100644 --- a/README.md +++ b/README.md @@ -24,3 +24,9 @@ To change the admin password set the environment variable _ADMIN_PASSWORD_ to yo ```bash docker run -d --restart always -p 631:631 -v $(pwd):/etc/cups -e ADMIN_PASSWORD=mySecretPassword ydkn/cups:latest ``` + +If you wish to use PDF printing, you can map the output directory for cups-pdf. Substitute /tmp/pdf for the location your system you wish PDFs to save to. + +```bash +docker run -d --restart always -p 631:631 -v $(pwd):/etc/cups -v /tmp/pdf:/var/spool/cups-pdf ydkn/cups:latest +``` -- GitLab