feat(base): reduce image size ~210-280 MB; add smoke-base test#53
Merged
Conversation
Remove GUI desktop stack (firefox-esr, kali-themes, x11, mousepad, xpdf, feh, dbus-x11, autocutsel) and associated firefox profile from resources/. Removes ~150-200 MB compressed. Remove unused build/system packages from base_system(): cmake, libpcap-dev (→ libpcap0.8), supervisor, openssh-server, rpcbind, nfs-common, man-db, djvulibre-bin. Replace apt-installed starship and mkcert with binary downloads: starship via install.sh in 3-home.sh (consistent with scenario images), mkcert v1.4.4 via wget in 1-tools.sh extras(). Remove pipx and python3-virtualenv from base_languages(); add python3-venv. Update resources/zsh/aliases: notepad → nvim, py-list → pip3 list. Update resources/zsh/functions.sh: virtual_env() uses python3 -m venv. Add tests/smoke-base.sh with 67 checks across environment, core tools, network/pentest/AD/OSINT tools, binary tools, tool files, and regression guards (firefox/mousepad/supervisord/cmake must be absent). Update Makefile: add smoke-base target, include in test-all.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
firefox-esr,kali-themes, X11 utilities,mousepad,xpdf,feh,dbus-x11,autocutsel) and the bundled Firefox profile fromresources/mozilla/— largest single win (~150–200 MB compressed)base_system():cmake,libpcap-dev→libpcap0.8,supervisor,openssh-server,rpcbind,nfs-common,man-db,djvulibre-bin(~40–50 MB)starshipviainstall.shin3-home.sh(matches scenario image pattern),mkcert v1.4.4via wget in1-tools.sh; removepipxandpython3-virtualenv→python3-venv(~12 MB)docker-build-fixchanges:apt-get updateadded to0-base.sh,web()function converted from apt to direct downloads (ffuf, hurl, sqlmap, whatweb, exiftool, mycli, pgcli)notepadalias →nvim notes.md,py-listalias →pip3 list,virtual_env()→python3 -m venvtests/smoke-base.sh(67 checks including regression guards: firefox/mousepad/cmake/supervisord must be absent); addsmoke-basetarget to Makefile; include intest-allTest plan
make build-base— succeeded, all 9 layers built cleanlymake smoke-base— 67/67 passed, 0 failedmake test-all(scenario images) — web 31/31, ad 25/25, ctf 24/24 all passing🤖 Generated with Claude Code