A lightweight docker image to run Tokei that displays statistics about your code.
8.6K
A Tokei Docker image that displays statistics about your code:
multiarch with support of amd64 and arm64,UID 10010),Renovate tracks the Alpine, Tokei and go-task versions and opens the merge requests,SBOM) attestation added using Syft,docker run -t --rm -v $(pwd):/workdir jfxs/alpine-tokei /bin/sh -c "tokei ."
The container runs as UID 10010, so mounted files must be readable by that user. Add
--user $(id -u):$(id -g) to run as yourself instead.
Example of usage with Gitlab-CI:
...
code-statistics:
image: jfxs/alpine-tokei
stage: lint
script:
- tokei .
Docker latest tag is 14.0.0-r0-001, 14.0, 14 and has:
| Name | Version | Type |
|---|---|---|
| go-task | 3.51.1-r1 | apk |
| tokei | 14.0.0-r0 | apk |
Dockerhub Overview page has the details of the last published image.
Docker tag definition:
Tokei version used,<tokei_version>-<increment>
Example: 12.1.2-001
Cosign public key:
-----BEGIN PUBLIC KEY-----
MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEa3yV6+yd/l4zh/tfT6Tx+zn0dhy3
BhFqSad1norLeKSCN2MILv4fZ9GA6ODOlJOw+7vzUvzZVr9IXnxEdjoWJw==
-----END PUBLIC KEY-----
The public key is also available online: https://gitlab.com/op_so/docker/cosign-public-key/-/raw/main/cosign.pub.
To verify an image:
cosign verify --key cosign.pub $IMAGE_URI
To verify and get the software bill of materials (SBOM) attestation:
cosign verify-attestation --key cosign.pub --type spdxjson $IMAGE_URI | jq '.payload | @base64d | fromjson | .predicate'
This program is free software: you can redistribute it and/or modify it under the terms of the MIT License (MIT). See the LICENSE for details.
Content type
Image
Digest
sha256:c5dcd2402…
Size
21.1 MB
Last updated
6 days ago
docker pull jfxs/alpine-tokei