Giter Club home page Giter Club logo

alpine-docker-cups's Introduction

CUPS on Docker

Docker License

This is a Docker image to run a CUPS instance with built in Apples zeroconf support.

This Docker image is based on the offical Alpine image.

Table of Contents

Install Docker

To use this image you have to install Docker first.

Download

You can get the trusted build from the ghcr.io:

docker pull ghcr.io/jelliuk/alpine-docker-cups:master

Alternatively, you may build the Docker image from the source code on GitHub.

How to use this image

Environment variables

You can use two environment variables that will be recognized by the start script.

CUPS_PASSWORD

If this environment variable is set, the string will be used as the password for the root user.

CUPS_DEBUG

If this environment variable is set, the scripts inside the container will run in debug mode.

Start the CUPS instance

The instance can be started by the start script from GitHub:

wget https://raw.githubusercontent.com/jelliuk/alpine-docker-cups/master/start_cups.sh
export CUPS_PASSWORD='SeCre!1'
chmod 755 start_cups.sh
./start_cups.sh

Check server status

You can use the standard Docker commands to examine the status of the CUPS instance:

docker logs --tail 1000 --follow --timestamps cups

Next steps

The next release of this Docker image should have a persistent CUPS configuration.

Important notes

The username for the print server is root/password unless you don't change the password with the environment variable as described in the Environment variables section.

Update Docker image

Simply download the trusted build from the ghcr.io:

docker pull ghcr.io/jelliuk/alpine-docker-cups:master

Advanced usage

Build from source code

You can build the image also from source. To do this you have to clone the docker-cups repository from GitHub:

git clone https://github.com/jelliuk/alpine-docker-cups.git
cd docker-cups
docker build --rm --no-cache -t ghcr.io/jelliuk/alpine-docker-cups:master .

Bash shell inside container

If you need a shell inside the container you can run the following command:

docker exec -ti cups /bin/sh

Add network tools

If you need network tools to debug your installation use the following command:

docker exec -ti cups /bin/sh
apk update
apk add iputils iproute2

Technical details

  • Alpine base image
  • CUPS binary from official Alpine package repository
  • Samsung ML-1910.ppd for printer compatibility

Development

Build is developed for personal use only, you're welcome to use it but due to time constraints, no user support can be provided.

alpine-docker-cups's People

Contributors

github-actions[bot] avatar jelliuk avatar philipparndt avatar thbe avatar weidi avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.