cto-a / private-isu-ops Goto Github PK
View Code? Open in Web Editor NEWISUCON研修運営用
ISUCON研修運営用
ここに作っていく
当日、競技者が困らないように手順と動作を確認しておく
### キーペアの生成
ubuntu:~$ ssh-keygen -t rsa
Generating public/private rsa key pair.
Enter file in which to save the key (/home/ubuntu/.ssh/id_rsa):
Created directory '/home/ubuntu/.ssh'.
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /home/ubuntu/.ssh/id_rsa
Your public key has been saved in /home/ubuntu/.ssh/id_rsa.pub
The key fingerprint is:
SHA256:ejdWFdpyYZlaQ0bgMLbtgul0sD7K4jxUPDRA6cFsl8Q test1@ip-172-31-32-81
The key's randomart image is:
+---[RSA 3072]----+
| +o=.. + .+Bo |
| * E . * ==o |
| o = .. . =o+. |
| . + = ..+ |
| . .S o o |
| . = . o |
| . . = + |
| .o. o + . |
| .ooo |
+----[SHA256]-----+
### 秘密鍵をローカルに持ってくる
ubuntu:~$ cat ~/.ssh/id_rsa
-----BEGIN OPENSSH PRIVATE KEY-----
b3BlbnNzaC1rZXktdjEAAAAABG5vbmUAAAAEbm9uZQAAAAAAAAABAAABlwAAAAdzc2gtcn
=== 途中略 ===
I8FRb+ClG4YLtts/ucucj7qoc9ctLGgnzLycKmZ8z2BoXyNhGnAin/K0VtPq/ssbMyCo66
sFc3HdTxmaBm0AAAAVdGVzdDFAaXAtMTcyLTMxLTMyLTgxAQIDBAUG
-----END OPENSSH PRIVATE KEY-----
上記をコピーして、ローカルファイルに保存する。(例: ctoa_isucon.pem とか)
ローカルで、鍵のパーミッションを変える
local:~$ chmod 600 ctoa_isucon.pem
### 公開鍵の反映
ubuntu:~$ cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys
### ローカルから新しい鍵でログインできるか確認
local:~$ ssh -i ctoa_isucon.pem [email protected]
(Windowsの方は、SSHクライアントで同様のことを行う)
### もともと配られていた公開鍵を消す
ubuntu:~$ cat ~/.ssh/id_rsa.pub > ~/.ssh/authorized_keys
### もう一度、ローカルから新しい鍵でログインできるか確認
local:~$ ssh -i ctoa_isucon.pem [email protected]
(Windowsの方は、SSHクライアントで同様のことを行う)
(同様の手順で、直接 isucon ユーザーで入れるようにしてもOKです)
private-isu を動かせる環境を https://github.com/matsuu/cloud-init-isucon で作り、各種パッケージのアップデートをかけてAMI化しておく
いまAPIキーでやってるのでもうちょいセキュアにしたい
SNSの通知内容をdiscordに連携してもいいかも。
https://github.com/catatsuy/private-isu
いまfetchしてきてるだけなのでいい感じにjsonに色付けする
「チーム0」だと味気ないので。
idとしての数字(0, 1, 2, ...)は持っておいて、ポータルに表示するためのチーム名をpostして変えられるようにするとちょっとテンション上がる。
できたらやりたい。
できたらUXが爆上がりしそう
Nginx イメージから置き換えたい
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.