- directory
.configusing git submodules - directory
.seedusing git subrepo
Directory .config places host-related custom variables and configuration files,
which are not universal and may contain sensitive key information,
so the git submodule is selected as an external reference,
because the logic in the project is heavily dependent on the files in it or variables,
so this project provides a .config submodule repository seed-container-config containing examples,
This submodule repository is only used to demonstrate the functions of this project.
NOTE: If you plan to use this project, you should provide your own .config submodule and override it
See how to use custom .config submodules at custom .config
Directory .seed places the logic shared by multiple projects.
This project originates from the personal homelab project, these logics are born here.
Its name comes from the docker-seed project, and this project also conforms to the workspace defined by docker-seed.
Here they will be used through git subrepo technology, git subrepo technology is transparent to users who use this project, and they can be used directly as ordinary files without caring about internal details.
Clone this project with examples .config submodule
git clone --recurse-submodules https://github.com/seed-lab4x/seed-container-workspace.gitUsing custom .config submodule like [email protected]:github/seed-lab4x/seed-container-config.git
Start from zero, did not clone seed-container-workspace
git clone [email protected]:seed-lab4x/seed-container-workspace.git
git submodule init
git config submodule..config.url [email protected]:github/seed-lab4x/seed-container-config.git
git submodule update --recursive --remoteAlready cloned, Modify seed-container-workspace to use new .config submodule
git submodule deinit -f .config
rm -rf .git/modules/.config/
git config submodule..config.url [email protected]:github/seed-lab4x/seed-container-config.git
git submodule update --recursive --remoteTo quickly switch .config submodule please use .config.change.sh
bash ./.seed/bash/config.change.shNote: Push .config submodules commits before switching for avoid lost changes