Ansibleを使ってmultipass上に競技環境を立てる方法を記述します
下記の環境ができます。
- 競技1台 (CPU: 1 core, memory: 2 GB)
- ベンチ1台 (CPU: 1 core, memory: 2 GB)
想定動作環境は ArmベースのMacです。
- ssh-keygen
brew install ansible
# ansible [core 2.12.5]
brew install --cask multipass
# multipass 1.8.1+mac
# multipassd 1.8.1+mac
cd infra/virtual-machine
## launch VM
make reset-multipass-web
make reset-multipass-bench
#for app
multipass shell r-calendar-web
# for bench
multipass shell r-calendar-bench
make start-bench