Setup utilities
Normally this repository is used as a library in other repositories. It provides code to build gitops scripts that setup a development environment, a runtime environment or otherwise.
That said, this repository offer one unique feature that can be quite useful: Bootstrapping on vanilla environment where an Operating System was freshly installed. In other words: Setup by calling a single command. It currently supports the scenarios described below
More specifically, it supports Ubuntu (apt) and CentOS (yum) currently. Tailored for bash. It will perform the following:
- Install git
- Clone a specified git repository
- Invoke an entry point for further execution
Here is an example on how this one-liner feature can be used:
wget -qO- 'https://raw.githubusercontent.com/jeremfg/setup/refs/heads/main/src/setup_git' | bash -s -- [email protected]:jeremfg/setup.git main -- echo 'Welcome to Setup!'
From Windows 10 and Later, this will perform the following:
- Install WSL2
- Install the latest Ubuntu LTS release
- Installl docker
- Clone specified git repository inside WSL
- Invoke an entry point for further exection
Here is an example how this one-liner feature can be used:
bitsadmin /transfer setup ^
https://raw.githubusercontent.com/jeremfg/setup/refs/heads/main/src/setup_wsldockergit.bat ^
%cd%\setup_wsldockergit.bat & setup_wsldockergit.bat -RepoUrl "[email protected]:jeremfg/setup.git" ^
-RepoRef "main" -RepoDir "$HOME/repos" -EntryPoint "echo 'Welcome to Setup!'"