daml/infra/macos/scripts
Gary Verhaegen d2e2c21684
update copyright headers (#12240)
New year, new copyright, new expected unknown issues with various files
that won't be covered by the script and/or will be but shouldn't change.

I'll do the details on Jan 1, but would appreciate this being
preapproved so I can actually get it merged by then.

CHANGELOG_BEGIN
CHANGELOG_END
2022-01-03 16:36:51 +00:00
..
com.digitalasset.macos-builder-crontab.plist Fix launchd killing VMWare process at end of script execution (#6006) 2020-05-18 10:54:15 -04:00
README.md Fix launchd killing VMWare process at end of script execution (#6006) 2020-05-18 10:54:15 -04:00
rebuild-crontask.sh update copyright headers (#12240) 2022-01-03 16:36:51 +00:00
run-agent.sh update copyright headers (#12240) 2022-01-03 16:36:51 +00:00
step1.sh update copyright headers (#12240) 2022-01-03 16:36:51 +00:00
step2.sh update copyright headers (#12240) 2022-01-03 16:36:51 +00:00

Example scripts

This directory contains some helper scripts. These assume a physical machine with a "builder" account configured.

com.digitalasset.macos-builder-crontab.plist

Example script for Launchctl scheduled rebuild of MacOS nodes. Run via

launctl load com.digitalasset.macos-builder-crontab.plist

and unload via

launctl unload com.digitalasset.macos-builder-crontab.plist

NOTE: AbandonProcessGroup key is requied for VMWare or the started vmx process is sent a SIGTERM signal by launchd, causing node to halt and not be left running at end of script. Different behaviour to VirtualBox.

rebuild-crontask.sh

Script called by launchctl job to force destroy and rebuild a VSTS node. Needs a PAT token with job access rights to check no active jobs on node being rebuilt.

run-agent.sh

Helper script to build a node. Called from the above script. Needs a PAT token for agent installation.

Other Catalina Topics

  • Disable Energy Saver settings in System Preferences to stop devices going into sleep mode
  • Delete GarageBand, iMovie, KeyNote, Pages, Sheets to save space and avoid annoying Update notification
  • May need to download Catalina installer on new release to ensure latest patched version
  • Consider creating SSH key pair and distribute public key to other nodes in authorized_keys to distrbute files more easily