Public repository for ragedunicorn docker luacheck images
3.2K

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 (see the Tags tab for the available versions)
docker pull ragedunicorn/luacheck:<luacheck-version>-alpine<alpine-version>-<build>
# Run Luacheck
docker run -v $(pwd):/workspace ragedunicorn/luacheck:latest script.lua
On Windows, use the PowerShell form - ${PWD} with braces and the colon
inside the quotes (without braces PowerShell parses $PWD: as a
scope-qualified variable, as in $env:PATH, and rejects the argument):
# 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 .
PowerShell:
docker run -v "${PWD}:/workspace" ragedunicorn/luacheck:latest .
docker run -v $(pwd):/workspace ragedunicorn/luacheck:latest \
--std lua53 src/
PowerShell:
docker run -v "${PWD}:/workspace" ragedunicorn/luacheck:latest `
--std lua53 src/
docker run -v $(pwd):/workspace ragedunicorn/luacheck:latest \
--no-unused --no-redefined .
PowerShell:
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 .
PowerShell:
# 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 .
The > redirect writes UTF-8 in PowerShell 7; Windows PowerShell 5.1 writes
UTF-16, so pipe through Out-File -Encoding utf8 there instead.
docker run -v $(pwd):/workspace ragedunicorn/luacheck:latest \
--config .luacheckrc .
PowerShell:
docker run -v "${PWD}:/workspace" ragedunicorn/luacheck:latest `
--config .luacheckrc .
docker run -v $(pwd):/workspace ragedunicorn/luacheck:latest -j 4 .
PowerShell:
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 .
On Windows hosts this is not needed: Docker Desktop bind mounts do not carry
Unix file ownership, so nobody can read mounted files without --user (and
id does not exist in PowerShell). A read-only mount works the same way -
keep the :ro suffix inside the quotes:
docker run --rm -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}
X.Y.Z is the Luacheck version, A.B.C the Alpine version:
X.Y.Z-alpineA.B.C-1 - First build of Luacheck X.Y.Z on Alpine A.B.CX.Y.Z-alpineA.B.C-2 - Rebuild of same versions (bug fixes, optimizations)X.Y.Z-alpineA.B.D-1 - Alpine Linux patch updateX.Y+1.0-alpineA.B.C-1 - Luacheck version update (build resets to 1)X.Y.Z - Most recent build of Luacheck X.Y.Zlatest - Most recent stable releaseThe available versions are listed in the Tags tabโ .
When 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:4a802f842โฆ
Size
4.1 MB
Last updated
2 days ago
docker pull ragedunicorn/luacheck