https://github.com/matsuu/wsl-isucon11-qualifier
ISUCON11予選の環境をWSL2上に構築するスクリプト
https://github.com/matsuu/wsl-isucon11-qualifier
isucon powershell wsl2
Last synced: 6 months ago
JSON representation
ISUCON11予選の環境をWSL2上に構築するスクリプト
- Host: GitHub
- URL: https://github.com/matsuu/wsl-isucon11-qualifier
- Owner: matsuu
- License: mit
- Created: 2021-08-23T23:31:32.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2022-04-27T14:02:26.000Z (over 3 years ago)
- Last Synced: 2024-04-14T22:51:33.858Z (over 1 year ago)
- Topics: isucon, powershell, wsl2
- Language: Shell
- Homepage:
- Size: 11.7 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# matsuu/wsl-isucon11-qualifier
## これはなに
ISUCON11予選の環境をWSL2上に構築するスクリプトです。
## 構築
PowerShell上で以下を実行します。
```
# ダウンロード
git clone https://github.com/matsuu/wsl-isucon11-qualifier.git# ディレクトリに移動
cd wsl-isucon11-qualifier# 一時的にPowerShell実行を許可
Set-ExecutionPolicy RemoteSigned -Scope Process# 構築スクリプト実行(引数はDistro名、インストールパス)
.\build.ps1 isucon11-qualify .\isucon11-qualify
```## 実行
```
wsl.exe -d isucon11-qualify
```### サイト表示確認
https://localhost/
### ベンチマーク実行
```
cd ~/bench
# 本番同様にnginx(https)へアクセスを向けたい場合
./bench -all-addresses 127.0.0.11 -target 127.0.0.11:443 -tls -jia-service-url http://127.0.0.1:4999
# isucondition(3000)へ直接アクセスを向けたい場合
./bench -all-addresses 127.0.0.11 -target 127.0.0.11:3000 -jia-service-url http://127.0.0.1:4999
```## 関連
* [ISUCON11予選問題](https://github.com/isucon/isucon11-qualify)
* [matsuu/wsl-isucon](https://github.com/matsuu/wsl-isucon)## TODO
* エラー制御
* 二重実行の防止
* `/etc/resolv.conf` 周りの調整
* PowerShellなんもわからん