Implements spec docs/specs/2026-03-30-e2e-container-tests.md: - 5 Containerfiles (ubuntu, debian, fedora, alpine, arch) - test/e2e.sh runner with --runtime, --rebuild, single-distro mode - tmux-based interactive tests (full accept, safety gate decline, signing generate, signing skip) - All scripts pass shellcheck Closes: #18, #19, #20 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
26 lines
522 B
Docker
26 lines
522 B
Docker
FROM alpine:3.21
|
|
|
|
RUN apk add --no-cache \
|
|
bash \
|
|
git \
|
|
openssh-client \
|
|
openssh-keygen \
|
|
tmux \
|
|
coreutils \
|
|
grep \
|
|
sed
|
|
|
|
RUN adduser -D -s /bin/bash testuser
|
|
|
|
COPY git-harden.sh /home/testuser/git-harden.sh
|
|
COPY test/ /home/testuser/test/
|
|
RUN chown -R testuser:testuser /home/testuser
|
|
|
|
USER testuser
|
|
WORKDIR /home/testuser
|
|
|
|
RUN git config --global user.name "Test User" \
|
|
&& git config --global user.email "test@example.com"
|
|
|
|
CMD ["bash", "test/run.sh"]
|