Skip to content

Commit

Permalink
Merge pull request #1437 from isucon/for-public
Browse files Browse the repository at this point in the history
For public
  • Loading branch information
Mahito committed Aug 22, 2021
2 parents 21c404b + 2acc59e commit a443b24
Show file tree
Hide file tree
Showing 20 changed files with 14 additions and 61 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion development/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# development

開発用資材置場です。
**このディレクトリは予選問題開発用です。**

開発する前に S3 から必要なデータを取ってくる必要があるため、 `初期データについて` の項はご一読ください。

Expand Down
3 changes: 3 additions & 0 deletions extra/envchecker/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# envchecker

競技環境を検証するためのもの
4 changes: 4 additions & 0 deletions extra/initial-data/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
### initial-data

初期データ生成用

6 changes: 6 additions & 0 deletions extra/jiaapi-mock/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
### jiaapi-mock

以下の機能を持ちます。

* Isucondition にログインするための JWT を生成する JIA Auth サービス
* ISU の activate リクエストを受けて、 ISU を模した Post IsuCondition をリクエストするサービス
29 changes: 0 additions & 29 deletions provisioning/ansible-replace-bench/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,32 +8,3 @@ ansible-replace-bench

* ansible 4.2.0 (core 2.11.2)

### 実行方法

**この Playbook は踏み台サーバで実行されることが想定されています。**

* teams.json から hosts ファイルを生成

```
python generate_hosts.py > hosts
```

* `ssh_config` にて jump サーバの指定
* 本番環境の構成上、手元から ansible を実行する場合は jump サーバ経由で ssh する必要があります

```diff
Host 192.168.*
User isucon-admin
+ ProxyJump <jumpサーバのアドレス>
StrictHostKeyChecking no
UserKnownHostsFile /dev/null
```

* 差し替えたいコンパイル済みのベンチバイナリ (`bench`) 、supervisorバイナリ (`isuxportal-supervisor`) をこのディレクトリに配置
* 配置してない場合、task は skip されます

* Ansible の実行

```
ansible-playbook -i hosts tasks.yml
```
31 changes: 0 additions & 31 deletions provisioning/ansible-retest-contestant/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,34 +8,3 @@ ansible-retest-contestant

* ansible 4.2.0 (core 2.11.2)

### 実行方法

* `ssh_config` にて jump サーバの指定
* 本番環境の構成上、手元から ansible を実行する場合は jump サーバ経由で ssh する必要があります

```diff
Host *
User isucon-admin
ControlMaster auto
ControlPath ~/.ssh/%C
ControlPersist 60s
+ IdentityFile <秘密鍵のPATH>
```

* 再配置するチェックスクリプトは envchecker に配置
* isucon-env-checker は必要に応じてビルドを行う
* 配置してない場合、task は fail されます

```
cp -a ../../extra/envchecker .
pushd envchecker/isucon-env-checker
env GOOS=linux GOARCH=amd64 go build
scp isucon-env-checker isucon11-qualify/extra/envchecker/isucon-env-checker/isucon-env-checker
popd
```

* Ansible の実行

```
ansible-playbook -i hosts tasks.yml
```

0 comments on commit a443b24

Please sign in to comment.