Files
IronFox/Dockerfile
Akash Yadav aeb8d3a5f0 feat: lint shell scripts with shellcheck + shfmt in CI and pre-commit
ironfox-oss/IronFox!162
Add a blocking `lint` CI stage (runs first, on a lightweight Alpine
image) plus a core.hooksPath pre-commit hook, with scripts/lint.sh as
the shared runner for CI, the hook, and manual use. Checks are
configured in .shellcheckrc and formatting in .editorconfig.

Reformat all scripts with shfmt (2-space indent, switch-case indent,
space redirects) via .editorconfig, so a bare `shfmt` is consistent
everywhere. bootstrap.sh installs shellcheck + shfmt per-OS and
enables the pre-commit hook.

The hook is a convenience (bypassable with --no-verify); the CI
`lint-scripts` job is the enforcement gate. SC2086/SC2046 are
disabled for now as tracked follow-up.

MR-author: Akash Yadav <itsaky01@gmail.com>
Co-authored-by: Akash Yadav <contact@itsaky.com>
Approved-by: celenity <celenity@celenity.dev>
Merged-by: celenity <celenity@celenity.dev>
2026-07-31 02:33:10 +00:00

31 lines
399 B
Docker

FROM fedora:43
# Cosmetic, bump to re-build container image
ENV IRONFOX_IMAGE_VERSION=1
# Ensure we're up to date
RUN dnf update -y --refresh
# Install our dependencies...
RUN dnf install -y \
cmake \
clang \
gawk \
git \
jq \
m4 \
make \
nasm \
ninja-build \
patch \
perl \
shasum \
xz \
yq \
zlib-devel
# cd into working directory
WORKDIR /app
CMD ["/bin/bash"]