Skip to content

Commit

Permalink
End of support: Node.js
Browse files Browse the repository at this point in the history
  • Loading branch information
showwin committed Oct 6, 2024
1 parent 3213fa9 commit ab95fae
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 29 deletions.
1 change: 0 additions & 1 deletion .github/workflows/benchmark.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ jobs:
matrix:
language:
- "go"
# - "nodejs"
- "python"
- "ruby"
env:
Expand Down
5 changes: 2 additions & 3 deletions .github/workflows/build_and_push_images.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,9 @@ jobs:
fail-fast: false
matrix:
language:
# - "go"
# - "nodejs"
- "go"
- "python"
# - "ruby"
- "ruby"
env:
ISHOCON_APP_LANG: ${{ matrix.language }}
UNAME: ${{ secrets.DOCKER_HUB_USERNAME }}
Expand Down
8 changes: 4 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -75,18 +75,18 @@ bench-with-db-init:
";

check-lang:
if echo "$(ISHOCON_APP_LANG)" | grep -qE '^(ruby|python|go|nodejs)$$'; then \
if echo "$(ISHOCON_APP_LANG)" | grep -qE '^(ruby|python|go)$$'; then \
echo "ISHOCON_APP_LANG is valid."; \
else \
echo "Invalid ISHOCON_APP_LANG. It must be one of: ruby, python, go, nodejs."; \
echo "Invalid ISHOCON_APP_LANG. It must be one of: ruby, python, go."; \
exit 1; \
fi;

change-lang: check-lang
if sed --version 2>&1 | grep -q GNU; then \
echo "GNU sed"; \
sed -i 's/\(ruby\|python\|go\|nodejs\)/'"$(ISHOCON_APP_LANG)"'/g' ./docker-compose.yml; \
sed -i 's/\(ruby\|python\|go\)/'"$(ISHOCON_APP_LANG)"'/g' ./docker-compose.yml; \
else \
echo "BSD sed"; \
sed -i '' -E 's/(ruby|python|go|nodejs)/'"$(ISHOCON_APP_LANG)"'/g' ./docker-compose.yml; \
sed -i '' -E 's/(ruby|python|go)/'"$(ISHOCON_APP_LANG)"'/g' ./docker-compose.yml; \
fi;
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ ISUCONは3人チームで取り組むことを基準に課題が作られてい
* AMI: `ami-0d00b2a9a38084503`
* インスタンスタイプ: `c5.xlarge`
* 参考実装言語: Ruby, Go, Python
* メンテナンス外: Crystal(by [@Goryudyuma](https://github.com/Goryudyuma)), Scala(by [@Goryudyuma](https://github.com/Goryudyuma))
* メンテナンス外: Node.js(TypeScript), Crystal(by [@Goryudyuma](https://github.com/Goryudyuma)), Scala(by [@Goryudyuma](https://github.com/Goryudyuma))
* 推奨実施時間: 1人で8時間

## 社内ISUCON等のイベントで使用したい方
Expand Down
20 changes: 0 additions & 20 deletions run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -56,25 +56,5 @@ function run_go() {
/tmp/go/webapp
}

function run_php() {
cd "/home/ishocon/webapp/$app_lang"
sudo service php7.2-fpm restart
make_tmp_file
sudo tail -f /var/log/nginx/access.log /var/log/nginx/error.log
}

function run_nodejs() {
cd "/home/ishocon/webapp/$app_lang"
make_tmp_file
npm run start
}

function run_crystal() {
cd "/home/ishocon/webapp/$app_lang"
sudo shards install
make_tmp_file
sudo crystal app.cr
}

echo "starting running $app_lang app..."
"run_${app_lang}"

0 comments on commit ab95fae

Please sign in to comment.