This repository contains a Dockerfile which runs CUPS on Raspberry Pi. This project was aimed at making the Dymo LabelWriter 450 Wireless by adding a Raspberry Pi Zero to the setup.
The architecture of this project is as follows:
The key parts are as follows:
-
Raspberry Pi Zero W: Responsible for running CUPS and the Dymo LabelWriter 450 Drivers inside a Docker container.
-
Dymo LabelWriter 450: The printer is connected to the Raspberry Pi Zero W via USB.
-
PC: The PC is connected to the Local Area Network. This is where the user will be printing from.
The container is designed so that the full installation is done as soon as the container is started. As long as the USB Cable is plugged into the printer, the container should immediately attach this printer to CUPS and set it to the default printer.
As for installing the software, the best way of installing this is to use the Dockerfile provided in this repository. This will build the image and run the container. The steps for this are as follows:
-
Clone the repository to the Raspberry Pi Zero W.
-
Run the following command to build the image and run the container, using the docker-compose.yml file, the --build will force the building of the container using the Dockerfile:
docker-compose up -d --build
-
The container should now be running and the printer should be available on the network.
-
To check that the container is running, run the following command:
docker ps
Within this repository, there are two workflows:
-
Static Analysis: This performs Linting on all the main filetypes of this repository such as Dockerfiles, Markdown files and Shell Scripts.
-
Build: This performs the building of the Docker Image ensuring that it can be built. This is done using a Self-hosted GitHub Runner.
This project was inspired by lots of other repositories and open-source projects, which are linked below: