A lightweight docker image to run Tokei that displays statistics about your code.
9.7K
A Tokei Docker image that displays statistics about your code:
multiarch with support of amd64 and arm64,UID 10010),go-task (task command) to run your Taskfiles in the same image,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.
The complete software bill of materials (SBOM) of each published image, with its known vulnerabilities,
is collected in the sbom-docker repository, under the
component alpine-tokei.
Dockerhub Overview page has the details of the last published image.
Docker tag definition:
Tokei apk package version used (including the Alpine revision, e.g. 14.0.0-r0),<tokei_version>-<increment>
Example: 14.0.0-r0-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:b2973d97a…
Size
21.1 MB
Last updated
3 days ago
docker pull jfxs/alpine-tokei