zerops:
  - setup: app
    build:
      os: ubuntu
      base: ubuntu@latest
      buildCommands:
        - echo "build start at $(date -Iseconds)"
        # 1h10m sleep exercises the build-side prolong chain: zbuilder heartbeat -> znode -> zbusiness.
        # Old 1h cap would kill it at the 60min mark; with prolong the process should comfortably reach the echo below.
        - sleep 4200
        - echo "build done at $(date -Iseconds)"
      deployFiles:
        - ./
    run:
      os: ubuntu
      base: ubuntu@latest
      prepareCommands:
        - echo "prepare start at $(date -Iseconds)"
        # ~100 GiB of incompressible random data, written to the runtime image filesystem.
        # status=progress prints throughput every second so we can watch from the dashboard.
        - dd if=/dev/urandom of=/var/www/bigfile bs=1M count=20480 status=progress
        - echo "image bloated at $(date -Iseconds)"
      start: tail -f /dev/null
