Skip to content

Commit

Permalink
Fix: ポート番号を 50021 から 10101 に変更
Browse files Browse the repository at this point in the history
ポート 32768 以降はエフェメラルポートなので、32768 未満に収めた
  • Loading branch information
tsukumijima committed Mar 4, 2024
1 parent 29711f7 commit 8f1e0dc
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/release-test-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ jobs:
run: docker pull "${{ steps.docker_vars.outputs.image_tag }}"

- name: Docker run
run: docker run -d -p 50021:50021 "${{ steps.docker_vars.outputs.image_tag }}"
run: docker run -d -p 10101:10101 "${{ steps.docker_vars.outputs.image_tag }}"

# Docker コンテナが起動してから、レスポンスが返ってくるまで待機する
# リトライは10回まで `/version` にアクセスしてレスポンスのステータスコードをチェック
Expand All @@ -76,11 +76,11 @@ jobs:
- name: Wait for container to start
run: |
set +e # curlのエラーを無視する
url="http://127.0.0.1:50021/version"
url="http://127.0.0.1:10101/version"
max_attempts=10
sleep_interval=5
for i in $(seq 1 "$max_attempts"); do
status=$(curl -o /dev/null -s -w '%{http_code}\n' "$url")
if [ "$status" -eq 200 ]; then
Expand Down
8 changes: 4 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ build-linux-docker-ubuntu20.04:
.PHONY: run-linux-docker-ubuntu20.04
run-linux-docker-ubuntu20.04:
docker run --rm -it \
-p '127.0.0.1:50021:50021' $(ARGS) \
-p '127.0.0.1:10101:10101' $(ARGS) \
voicevox/voicevox_engine:cpu-ubuntu20.04-latest $(CMD)

.PHONY: build-linux-docker-nvidia-ubuntu20.04
Expand All @@ -39,7 +39,7 @@ build-linux-docker-nvidia-ubuntu20.04:
run-linux-docker-nvidia-ubuntu20.04:
docker run --rm -it \
--gpus all \
-p '127.0.0.1:50021:50021' $(ARGS) \
-p '127.0.0.1:10101:10101' $(ARGS) \
voicevox/voicevox_engine:nvidia-ubuntu20.04-latest $(CMD)


Expand All @@ -58,7 +58,7 @@ build-linux-docker-ubuntu18.04:
.PHONY: run-linux-docker-ubuntu18.04
run-linux-docker-ubuntu18.04:
docker run --rm -it \
-p '127.0.0.1:50021:50021' $(ARGS) \
-p '127.0.0.1:10101:10101' $(ARGS) \
voicevox/voicevox_engine:cpu-ubuntu18.04-latest $(CMD)

.PHONY: build-linux-docker-nvidia-ubuntu18.04
Expand All @@ -76,7 +76,7 @@ build-linux-docker-nvidia-ubuntu18.04:
run-linux-docker-nvidia-ubuntu18.04:
docker run --rm -it \
--gpus all \
-p '127.0.0.1:50021:50021' $(ARGS) \
-p '127.0.0.1:10101:10101' $(ARGS) \
voicevox/voicevox_engine:nvidia-ubuntu18.04-latest $(CMD)


Expand Down
2 changes: 1 addition & 1 deletion build_util/check_release_build.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

import soundfile

base_url = "http://127.0.0.1:50021/"
base_url = "http://127.0.0.1:10101/"


def test_release_build(dist_dir: Path, skip_run_process: bool) -> None:
Expand Down
2 changes: 1 addition & 1 deletion run.py
Original file line number Diff line number Diff line change
Expand Up @@ -1436,7 +1436,7 @@ def main() -> None:
help="接続を受け付けるホストアドレスです。",
)
parser.add_argument(
"--port", type=int, default=50021, help="接続を受け付けるポート番号です。"
"--port", type=int, default=10101, help="接続を受け付けるポート番号です。"
)
parser.add_argument(
"--use_gpu", action="store_true", help="GPUを使って音声合成するようになります。"
Expand Down

0 comments on commit 8f1e0dc

Please sign in to comment.