Sign inSign up

alex778/qrcode

By alex778

Updated over 2 years ago

One day I forgot to fill description😔 And I lost the image.. Don't make my mistake

Image
0

10K+

alex778/qrcode repository overview

Jeez, I forgot about this image.. Also I forgot what it must do, or what kind of useful payload it will be do...

One day I'll update info here.. I hope

UPD. Finally I realized what did I hide here.

It's something like small helper image based on Ubuntu 22.04.

It contains only qrencode, curl and a shell environment.
The image is used as a lightweight utility container for generating QR codes from WireGuard client configs and sending them to Telegram.


Typical usage:

  • mount WireGuard client configs into /config
  • mount your own shell script into the container
  • run the script to generate QR PNG files and send them via Telegram Bot API

Included tools:

  • qrencode
  • curl
  • bash

Oh, btw, small bonus. You can use it with simple scripts smt like that one:

Script for sending configs from WireGuard to Telegram:
#!/bin/bash

for client in $(ls /config/peer_*/*.conf); do
    client=$(echo "$client" | cut -d'/' -f 3 | sed 's/peer_//')
    photo="/peer_$client-qr.png"
    qrencode -t png -o ${photo} -r /config/peer_$client/peer_$client.conf

    curl -F "chat_id=${SEND_TO}" \
        -F "photo=@${photo}" \
        -F "caption=Config: ${client}" \
        https://api.telegram.org/bot${TOKEN}/sendPhoto
done

Tag summary

Content type

Image

Digest

sha256:6770735aa

Size

60.6 MB

Last updated

over 2 years ago

docker pull alex778/qrcode