https://github.com/melanmeg/my-isucon-template
https://github.com/melanmeg/my-isucon-template
isucon
Last synced: 8 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/melanmeg/my-isucon-template
- Owner: melanmeg
- Created: 2024-11-24T15:34:20.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2024-11-30T10:43:21.000Z (11 months ago)
- Last Synced: 2025-01-11T02:33:44.262Z (10 months ago)
- Topics: isucon
- Language: Shell
- Homepage:
- Size: 16.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# my-isucon-template
## 初期設定
- SSH後に実行
```bash
# デプロイキー設定
$ ssh-keygen -t ed25519 -C "" -f ~/.ssh/id_ed25519 -N "" && \
sudo apt update -y
# 適宜、Git管理 `init commit`を実施
$ git clone https://github.com/melanmeg/GIT_REPO.git /tmp/GIT_REPO && \
mv /home/isucon/webapp /home/isucon/webapp.bk && \
mv /tmp/GIT_REPO/{*,.gitignore,.github,.git} /home/isucon/ && \
rm -rf /tmp/GIT_REPO
$ cd /home/isucon && git add -A && git commit -m "init commit" && git push
# private-isuでGOROOT空だったので、そのような場合にGoをインストールする
$ sudo rm -rf /usr/local/go
$ TAR_FILENAME=$(curl 'https://go.dev/dl/?mode=json' | jq -r '.[0].files[] | select(.os == "linux" and .arch == "amd64" and .kind == "archive") | .filename')
$ URL="https://go.dev/dl/$TAR_FILENAME"
$ curl -fsSL "$URL" -o /tmp/go.tar.gz && \
sudo tar -C /usr/local -xzf /tmp/go.tar.gz && \
rm -f /tmp/go.tar.gz
$ cat <> ~/.bashrc
export GOROOT=/usr/local/go
export GOPATH=$HOME/go
export PATH=/usr/local/go/bin:$PATH
EOF
```
## メモ