This repository is provided as a convenience to manage one or more repositories in this framework at once.
Immediately after cloning this repository, consider the following steps:
-
Go to
runconfigs\iwcd-overwatchand initialize the local configuration by:- copy
EXAMPLE.envinto.env - edit
.envand put your username and mail according to Github-s rules- Note: it is acceptable to use noreply emails to protect your privacy
- start the container using
up.bat - start a shell using
shell.bat - run the command
config-repo.sh /h/oin folder/h/s/. This will configure the current repository to follow the required contribution policies. - Note that in the folder
runconfigs\iwcd-overwatch\local\.sshyou now have a new ssh key and the related public keys, but also aallowed_signersfile used to check the commits signatures. Declare the public ssh key in your GitHub user settings both for authentication and for signature.
- copy
-
The managed repositories are specified in the csv file
runconfigs\iwcd-overwatch\scripts\repos.csv. This file is gitignored, create a new one by copying overrunconfigs\iwcd-overwatch\scripts\allRepos.csvand eventually filter for the repositories of interest. -
Use the container
runconfigs\iwcd-overwatchto manage the repositories.- Run the file
up.bat - Open a shell using
shell.bat - change dir to
~/sand run./fetch-all.sh. Consistently use this tool to sync from origin - do your work
- in the end destroy the container using
down.bat
- Run the file
Remember that all files ar expected to have unix end lines, clone accordingly.
Note that the scripts in this repository are configuring the repostiories to implement the required policies, in particular having cryptographically signed commits. The container is also defining an alias, called scommit that stands for git commit -s. Signing and "signing-off" are two distinct things, as "signing" is about cryptographically signing the commit and "sign-off" means appending to the commit comment a text line "Signed off by ...". The command git commit -s is still required for the append of this signoff line.