refactor: Restructure project for Docker compliance and documentation

- Move documentation to docs/ directory for better organization
- Add bin/ directory for utility scripts
- Add lib/ for shared library functions
- Update all build scripts to ensure strict Docker compliance
- Enhance AGENTS.md with Docker container requirements
- Create comprehensive compliance and security documentation
- Reorganize test suite with improved structure
- Remove obsolete Dockerfile and archive documentation
- Add final security compliance report

BREAKING CHANGE: Restructured project layout with moved documentation directories

💘 Generated with Crush

Assisted-by: GLM-4.6 via Crush <crush@charm.land>
This commit is contained in:
2026-01-21 15:37:03 -05:00
parent 6cd53bc7ba
commit 67c106a3b6
39 changed files with 2070 additions and 2338 deletions

View File

@@ -1,7 +1,12 @@
#!/usr/bin/env bats
# Unit tests for build script functions
load 'test_helper/common.bash'
# Add bats library to BATS_LIB_PATH
export BATS_LIB_PATH="/usr/lib/bats-core"
load 'bats-support/load'
load 'bats-assert/load'
load '../test_helper/common.bash'
@test "validate_environment checks for required tools" {
source "${PROJECT_ROOT}/src/build-iso.sh"

View File

@@ -1,7 +1,12 @@
#!/usr/bin/env bats
# Unit tests for firewall configuration functions
load 'test_helper/common.bash'
# Add bats library to BATS_LIB_PATH
export BATS_LIB_PATH="/usr/lib/bats-core"
load 'bats-support/load'
load 'bats-assert/load'
load '../test_helper/common.bash'
@test "parse wireguard endpoint from config" {
# Create test configuration

View File

@@ -1,7 +1,13 @@
#!/usr/bin/env bats
# Unit tests for security hardening functions
load 'test_helper/common.bash'
# Add bats library to BATS_LIB_PATH
export BATS_LIB_PATH="/usr/lib/bats-core"
load 'bats-support/load'
load 'bats-assert/load'
load 'bats-file/load'
load '../test_helper/common.bash'
@test "create_wifi_blacklist creates correct configuration" {
source "${PROJECT_ROOT}/src/security-hardening.sh"