This repo contains a set of scripts for automating the process of building BOSH Windows Stemcells.
Please submit PR's to the develop
branch
- Ruby Latest 2.3.x version
- Golang Latest 1.8.x compiler
- Packer for concourse automation
- Win32-OpenSSH Release v0.0.18.0 is tested.
gem install bundler
bundle install
rake build:aws # Build AWS Stemcell
rake build:azure # Build Azure Stemcell
rake build:gcp # Build GCP Stemcell
rake build:vsphere # Build VSphere Stemcell
rake build:vsphere_add_updates # Apply Windows Updates for VMX
rake package:agent # Package BOSH Agent and dependencies into agent.zip
rake package:bwats # package bosh-windows-acceptance-tests (BWATS) config.json
rake package:psmodules # Package BOSH psmodules into bosh-psmodules.zip
rake package:vsphere_ova[ova_file_name,output_directory,version,updates_path] # Package VSphere OVA files into Stemcells
rake publish:staging:azure # Stage an image to the Azure marketplace
rake publish:production:azure # Publish an image to the Azure marketplace
rake publish:finalize:azure # Wait for finalizing an image to the Azure marketplace
rake publish:gcp # Publish an image to GCP
rake run:bwats[iaas] # Run bosh-windows-acceptance-tests (BWATS)
Instructions for building a manual stemcell for vSphere can be found in the wiki.
bundle exec rspec
Testing stemcell with bosh-windows-acceptance-tests
Set the following environment variables:
bosh-cli environment variables
- BOSH_TARGET: IP of your BOSH director
- BOSH_CLIENT:
- BOSH_CLIENT_SECRET:
- BOSH_CA_CERT: (not a file name, but the actual cert itself)
- STEMCELL_PATH: Path to stemcell tarball
Match with cloud config
- AZ:
- VM_TYPE:
- VM_EXTENSIONS:
- NETWORK:
Run BWATS:
rake package:bwats
rake run:bwats["vsphere"]