Public repository for ragedunicorn docker luacheck images
2.7K

A lightweight Luacheck build on Alpine Linux for fast and efficient Lua code linting and static analysis.
# Pull latest version
docker pull ragedunicorn/luacheck:latest
# Or pull specific version
docker pull ragedunicorn/luacheck:1.2.0-alpine3.22.1-1
# Run Luacheck
docker run -v $(pwd):/workspace ragedunicorn/luacheck:latest script.lua
lanes package enables luacheck -j N for large codebasesnobody for security (required by lanes)Lua versions: Lua 5.1, 5.2, 5.3, 5.4, LuaJIT
Frameworks: LรVE, Minetest, Playdate SDK, OpenResty
Formatters: Default, Plain, TAP, JUnit, Visual Studio
docker run -v $(pwd):/workspace ragedunicorn/luacheck:latest .
docker run -v $(pwd):/workspace ragedunicorn/luacheck:latest \
--std lua53 src/
docker run -v $(pwd):/workspace ragedunicorn/luacheck:latest \
--no-unused --no-redefined .
# JUnit format for CI systems
docker run -v $(pwd):/workspace ragedunicorn/luacheck:latest \
--formatter JUnit . > luacheck-report.xml
# TAP format
docker run -v $(pwd):/workspace ragedunicorn/luacheck:latest \
--formatter TAP .
docker run -v $(pwd):/workspace ragedunicorn/luacheck:latest \
--config .luacheckrc .
docker run -v $(pwd):/workspace ragedunicorn/luacheck:latest -j 4 .
Set -j to the number of CPU cores to use. Backed by the bundled lanes package.
The container runs as nobody (uid 65534). Files mounted at /workspace must be readable by that uid โ world-readable files (mode 644, the typical default) work out of the box. If your files are more restrictive, run as your own user:
docker run --rm --user $(id -u):$(id -g) \
-v $(pwd):/workspace:ro ragedunicorn/luacheck:latest .
Lanes must be configured by an unprivileged uid; passing --user 0:0 (root) will cause luacheck -j N to fail. Any non-root uid works.
This image uses semantic versioning that includes all component versions:
Format: {luacheck_version}-alpine{alpine_version}-{build_number}
1.2.0-alpine3.22.1-1 - Initial release with Luacheck 1.2.0 and Alpine 3.22.11.2.0-alpine3.22.1-2 - Rebuild of same versions (bug fixes, optimizations)1.2.0-alpine3.22.2-1 - Alpine Linux patch update1.3.0-alpine3.22.1-1 - Luacheck version updateWhen updates are available through automated dependency management, new releases are created with appropriate version tags.
MIT License - See GitHub repositoryโ for details.
Content type
Image
Digest
sha256:2e58d3ec0โฆ
Size
4 MB
Last updated
4 months ago
docker pull ragedunicorn/luacheck