Generate QR code from strings in your terminal
| Image size |
|---|
| 1.56MB |
Install Go
Download the repository
Download dependencies
go mod download
Build the binary
go build
# maybe fix the permissions
chmod 777 qr
Use the binary with
qr mystring
If you have a ARM 32 bit v6 architecture
docker build -t qmcgaw/qr \
--build-arg BASE_IMAGE_BUILDER=arm32v6/golang \
--build-arg GOARCH=arm \
--build-arg GOARM=6 \
https://github.com/qdm12/qr.git
If you have a ARM 32 bit v7 architecture
docker build -t qmcgaw/qr \
--build-arg BASE_IMAGE_BUILDER=arm32v7/golang \
--build-arg GOARCH=arm \
--build-arg GOARM=7 \
https://github.com/qdm12/qr.git
If you have a ARM 64 bit v8 architecture
docker build -t qmcgaw/qr \
--build-arg BASE_IMAGE_BUILDER=arm64v8/golang \
--build-arg GOARCH=arm64 \
https://github.com/qdm12/qr.git
Use the following command:
docker run -it --rm qmcgaw/qr mystring
You can create an alias, for example:
echo "alias qr='docker run -it --rm qmcgaw/qr'" >> ~/.zshrc
And then use it with qr mystring
F1 and select Remote-Containers: Open Folder in Container...This repository is under an MIT license
Content type
Image
Digest
Size
609.4 kB
Last updated
about 7 years ago
docker pull qmcgaw/qr