Skip to content

Valien/docker-qr-generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

docker-qr-generator

Hey hey!

Ever want a Docker container that builds QR codes and then goes away? Well then, here you go. :)

Initial Features

  • Pull a the image down from Docker Hub

  • Run the following command to spin up a container to automagically create a QR code for you:

    docker run -v /<WHERE YOU WANT TO SAVE YOUR QR FILES/qr:/qr -e QR_TEXT='I LOVE DOCKER!' -e QR_FILE=QRFileName.png --rm valien/docker-qrcode-generator

  • It should process and save the QR code in your mounted volume, exit, and delete the container.

  • Another option is you can make the container interactive:

    'docker run -it --entrypoint=/bin/sh -v /<WHERE YOU WANT TO SAVE YOUR QR FILES/qr:/qr -e QR_TEXT='I LOVE DOCKER!' -e QR_FILE=QRFileName.png --rm valien/docker-qrcode-generator

    The manually run the QR program:

    qr "YOUR URL OR TEXT" > <filename>.png

  • Full source available on Git Hub

  • Uses Alpine as base image and Python qrcode 5.3 for QR generation.

  • Got a suggestion or bug? Submit a pull request or shoot me an email!

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages