From b33715d00450899d9e05fbc8ccc85d524f8efe90 Mon Sep 17 00:00:00 2001 From: Florian Zirker Date: Wed, 7 Aug 2024 14:01:06 +0200 Subject: [PATCH] remove print server --- print/Dockerfile | 44 ------------- print/cupsd.conf | 135 -------------------------------------- print/docker-compose.yaml | 23 ------- start-all.sh | 1 - 4 files changed, 203 deletions(-) delete mode 100644 print/Dockerfile delete mode 100644 print/cupsd.conf delete mode 100644 print/docker-compose.yaml diff --git a/print/Dockerfile b/print/Dockerfile deleted file mode 100644 index 26ab63f..0000000 --- a/print/Dockerfile +++ /dev/null @@ -1,44 +0,0 @@ -FROM debian:bookworm - - -ENV DEBIAN_FRONTEND noninteractive -ENV TZ "Europe/Berlin" - -# Install Packages (basic tools, cups, basic drivers, HP drivers) -RUN apt-get update \ -&& apt-get install -y \ - sudo \ - whois \ - usbutils \ - cups \ - cups-client \ - cups-bsd \ - cups-filters \ - foomatic-db-compressed-ppds \ - printer-driver-all \ - openprinting-ppds \ - hpijs-ppds \ - hp-ppd \ - hplip \ - smbclient \ - printer-driver-cups-pdf \ -&& apt-get clean \ -&& rm -rf /var/lib/apt/lists/* - -EXPOSE 631 - -# Add user and disable sudo password checking -RUN useradd \ - --groups=sudo,lp,lpadmin \ - --create-home \ - --home-dir=/home/print \ - --shell=/bin/bash \ - --password=$(mkpasswd print) \ - print \ -&& sed -i '/%sudo[[:space:]]/ s/ALL[[:space:]]*$/NOPASSWD:ALL/' /etc/sudoers - -# Copy the default configuration file -COPY --chown=root:lp cupsd.conf /etc/cups/cupsd.conf - -# Default shell -CMD ["/usr/sbin/cupsd", "-f"] diff --git a/print/cupsd.conf b/print/cupsd.conf deleted file mode 100644 index a482ccb..0000000 --- a/print/cupsd.conf +++ /dev/null @@ -1,135 +0,0 @@ -LogLevel warn -PageLogFormat -MaxLogSize 0 -ErrorPolicy retry-job -# Allow remote access -Port 631 -Listen /run/cups/cups.sock -# Share local printers on the local network. -Browsing On -BrowseLocalProtocols dnssd -DefaultAuthType Basic -WebInterface Yes -DefaultEncryption IfRequested - - # Allow shared printing and remote administration... - Order allow,deny - Allow all - - - # Allow remote administration... - Order allow,deny - Allow all - - - AuthType Default - Require user @SYSTEM - # Allow remote access to the configuration files... - Order allow,deny - Allow all - - - AuthType Default - Require user @SYSTEM - # Allow remote access to the log files... - Order allow,deny - Allow all - - - JobPrivateAccess default - JobPrivateValues default - SubscriptionPrivateAccess default - SubscriptionPrivateValues default - - Order deny,allow - - - Require user @OWNER @SYSTEM - Order deny,allow - - - AuthType Default - Require user @SYSTEM - Order deny,allow - - - AuthType Default - Require user @SYSTEM - Order deny,allow - - - Require user @OWNER @SYSTEM - Order deny,allow - - - Order deny,allow - - - - JobPrivateAccess default - JobPrivateValues default - SubscriptionPrivateAccess default - SubscriptionPrivateValues default - - AuthType Default - Order deny,allow - - - AuthType Default - Require user @OWNER @SYSTEM - Order deny,allow - - - AuthType Default - Require user @SYSTEM - Order deny,allow - - - AuthType Default - Require user @SYSTEM - Order deny,allow - - - AuthType Default - Require user @OWNER @SYSTEM - Order deny,allow - - - Order deny,allow - - - - JobPrivateAccess default - JobPrivateValues default - SubscriptionPrivateAccess default - SubscriptionPrivateValues default - - AuthType Negotiate - Order deny,allow - - - AuthType Negotiate - Require user @OWNER @SYSTEM - Order deny,allow - - - AuthType Default - Require user @SYSTEM - Order deny,allow - - - AuthType Default - Require user @SYSTEM - Order deny,allow - - - AuthType Negotiate - Require user @OWNER @SYSTEM - Order deny,allow - - - Order deny,allow - - - -ServerAlias * diff --git a/print/docker-compose.yaml b/print/docker-compose.yaml deleted file mode 100644 index 14273ed..0000000 --- a/print/docker-compose.yaml +++ /dev/null @@ -1,23 +0,0 @@ -services: - - cups: - build: . - image: cupsd - volumes: - - /var/run/dbus:/var/run/dbus - - ${VOLUMES_PATH}/print/cups:/etc/cups - - ${VOLUMES_PATH}/print/spool/cups:/var/spool/cups - - ${VOLUMES_PATH}/print/spool/cups-pdf:/var/spool/cups-pdf - devices: - - /dev/usb/lp0 - privileged: true - network_mode: host - labels: - - "traefik.enable=true" - - "traefik.http.routers.cups.rule=Host(`print.${DOMAIN}`)" - - "traefik.http.routers.cups.entrypoints=web" - - "traefik.http.services.cups.loadbalancer.server.port=631" - - "docker.group=print" - restart: unless-stopped - pull_policy: build - diff --git a/start-all.sh b/start-all.sh index 5a906ea..f7a0476 100755 --- a/start-all.sh +++ b/start-all.sh @@ -12,6 +12,5 @@ up smartHome; up dashboard; up download; up torrent; -up print; up media; up paperless;