Skip to content

azurite関連ポートの修正#617

Merged
cipepser merged 3 commits intomainfrom
fix/azurite-ports
May 26, 2021
Merged

azurite関連ポートの修正#617
cipepser merged 3 commits intomainfrom
fix/azurite-ports

Conversation

@cipepser
Copy link
Copy Markdown
Collaborator

Issueへのリンク

  • なし

やったこと

  • 開発者ごとにazuriteで利用するポートを割り振ることができるよう、 .env で設定
  • frame/azure-client/docker-compose.ymlは開発用なので、専用にポートを払い出し。かつハードコードした(.envからは読まないが専用なので被らない)

やらないこと

  • test_blobの修正

動作検証

  • CI

参考

  • 開発者ごとのIPはnotionで割り振り済み

.env.sample Outdated
ETH_DOCKER_PORT=8545
AZURITE_IP_ADDRESS=172.16.0.4
AZURITE_HOST_PORT1=10000
AZURITE_HOST_PORT2=10001
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

10001はキューリスニングポートだからいらない説
https://docs.microsoft.com/ja-jp/azure/storage/common/storage-use-azurite#queue-listening-port-configuration

10002はエミュレータに追加しているが何に使っているんだろう

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:fmfm:
azuriteよくわからず機械的に環境変数化してしまったんですが、削ります?
10000だけあればよいのカナ

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

なるほどw 10000&100002ですね

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

10001 を爆破しつつ、環境変数名はblobとtableがわかるように命名し直します。
開発者ごとに割り振るポートも2つずつ(コンテナ内部からは10000と10002が見えるようにするので若干見づらいかもですが仕方ない)

@cipepser cipepser requested a review from osuketh May 26, 2021 04:02
Copy link
Copy Markdown
Member

@osuketh osuketh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@cipepser cipepser merged commit cf9a134 into main May 26, 2021
@cipepser cipepser deleted the fix/azurite-ports branch May 26, 2021 04:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants