The greenhouse install script generator is a command line tool that reads
configuration data from your BOSH director or a Diego-Windows CF manifest
to generate
a batch file with the appropriate command line parameters
to install and configure GardenWindows.msi and DiegoWindows.msi.
Precompiled binaries can be downloaded from the Diego Windows Releases. See the Diego Windows installation instructions for more detail.
Sample for CF Manifest:
generate -manifest cf.yml -outputDir /tmp/install.bat
Sample for BOSH Lite:
generate -boshUrl https://admin:admin@192.168.50.4:25555 -outputDir /tmp/bosh-lite-install-bat -windowsPassword password -windowsUsername username
The Windows user must be a local user with administrative privileges, e.g. domain users are not supported. The password cannot contain special characters. Only the letters A-Z and the numbers 0-9 are currently allowed.
- Install and configure direnv
git clone https://github.com/cloudfoundry-incubator/greenhouse-install-script-generator
cd ./greenhouse-install-script-generator
- Allow direnv to execute in this dir
direnv allow
- Pull in libs
git submodule init && git submodule update
- Build the executable
go build -o $GOPATH/bin/generate ./src/generate/generate.go
We use Ginkgo as our testing framework and runner. To run the install script generator tests:
go get github.com/onsi/ginkgo/ginkgo
ginkgo ./src/integration ./src/models ./src/yaml