set -eou pipefail

docker build . -it pipedream-builder:latest
docker run -v /var/run/docker.sock:/var/run/docker.sock -v /mnt/flashblade:/mnt/flashblade -it \
  -e IMAGE_HASH=c111dcb497e8a66f6cd6652f93999a137c8f6e4e
  -e REPO_HASH=2b3671d6ada190c6a7fa41f628d38dcbbb0fc727
  -e VERSION_NUM=39  # TODO get these from the pipedream/framework/bin/version_num.py file
  -e DB_VERSION_NUM=111
  -e SCHEDULING_VERSION_NUM=6
  -e AWS_ACCESS_KEY_ID=<INPUT>
  -e AWS_SECRET_ACCESS_KEY=<INPUT>
  -e SKIP_TRIAGE=1
  -e USERNAME=<INPUT>
  -e LDAP_PASSWORD=<INPUT>
  pipedream-builder:latest
