IceWhaleTech / CasaOS-AppStore

Manifest files for CasaOS Apps
Apache License 2.0
174 stars 304 forks source link

Add CUPS - Print Server Container to App Store #41

Open rodhammond opened 1 year ago

rodhammond commented 1 year ago

Back in the original RPi Project days, creating a print server for Windows, Linux, and MacOS hosts was a pretty popular topic. Would be nice to see you honor this tradition win an App Store Container.

REF: 1. https://medium.com/swlh/setup-a-print-server-using-raspberry-pi-cups-part-1-c8f3d48af047

  1. https://medium.com/@anirudhgupta281998/setup-a-print-server-using-raspberry-pi-cups-part-2-2d6d48ccdc32
  2. https://medium.com/@anirudhgupta281998/setup-a-print-server-using-raspberry-pi-cups-part-3-aaced48e9b89

Thanks

sund3RRR commented 4 months ago

I have a working CUPS compose file without privileged and without doing anything on host machine. Based on this image with included printing drivers.

name: hungry_andres
services:
  cupsd:
    cpu_shares: 90
    command: []
    container_name: cupsd
    deploy:
      resources:
        limits:
          memory: 15920M
    devices:
      - /dev/bus/usb:/dev/bus/usb
    hostname: cupsd
    image: olbat/cupsd:latest
    ports:
      - target: 631
        published: "631"
        protocol: tcp
    restart: unless-stopped
    volumes:
      - type: bind
        source: /var/run/dbus
        target: /var/run/dbus
    cap_add: []
    environment: []
    network_mode: bridge
    privileged: false
x-casaos:
  author: self
  category: self
  hostname: casaos.local
  icon: https://raw.githubusercontent.com/vinceliuice/WhiteSur-icon-theme/master/src/apps/scalable/printer.svg
  index: /
  is_uncontrolled: false
  port_map: "631"
  scheme: http
  store_app_id: hungry_andres
  title:
    custom: CUPS