Skip to content

seed-lab4x/seed-container-workspace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

85 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

seed-container-workspace

agreement

  • directory .config using git submodules
  • directory .seed using git subrepo

about .config

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

about .seed

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.

use

download project

Clone this project with examples .config submodule

git clone --recurse-submodules https://github.com/seed-lab4x/seed-container-workspace.git

custom .config

Using 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 --remote

Already 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 --remote

To quickly switch .config submodule please use .config.change.sh

bash ./.seed/bash/config.change.sh

Note: Push .config submodules commits before switching for avoid lost changes

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published