Skip to content

Instantly share code, notes, and snippets.

@matsuu
Last active April 24, 2021 22:37
Show Gist options
  • Select an option

  • Save matsuu/d415980d81f31fad7e5788602482b833 to your computer and use it in GitHub Desktop.

Select an option

Save matsuu/d415980d81f31fad7e5788602482b833 to your computer and use it in GitHub Desktop.
isucon10-qualify provisioning script
#!/bin/sh
set -e
export DEBIAN_FRONTEND=noninteractive
apt-get update
apt-get install -y --no-install-recommends ansible git
GITDIR="/tmp/isucon10-qualify-base"
rm -rf ${GITDIR}
git clone https://github.com/isucon/isucon10-qualify.git ${GITDIR}
(
cd ${GITDIR}/provisioning/ansible
PYTHONUNBUFFERED=1 ANSIBLE_FORCE_COLOR=true ansible-playbook -i allinone, --connection=local allinone.yaml
)
rm -rf ${GITDIR}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment