Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

localで正常に起動するように #15

Merged
merged 1 commit into from
Sep 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions manager/README.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,9 @@ make generate
make clean-testcache

# テスト
make test
make tests
# テスト対象を絞る場合
make test TEST_TARGET="--run DeliveryStartUsecase ./..."
make tests TEST_TARGET="--run DeliveryStartUsecase ./..."
# vscodeの場合、editorから個別にテストを起動できる (デバッグも)

make delete-all-table
Expand Down
4 changes: 2 additions & 2 deletions manager/localstack/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@ DELIVERY_CONTROL_QUEUE = $(PROJECT_NAME_PREFIX)delivery-control

DELIVERY_OPERATION_TOPIC = $(PROJECT_NAME_PREFIX)delivery-operation-local
DELIVERY_OPERATION_TOPIC_ARN = arn:aws:sns:ap-northeast-1:000000000000:$(DELIVERY_OPERATION_TOPIC)
DELIVERY_OPERATION_NOTIFICATION_ENDPOINT = '$(SNS_ENDPOINT)/000000000000/$(DELIVERY_OPERATION_QUEUE)'
DELIVERY_OPERATION_NOTIFICATION_ENDPOINT = 'arn:aws:sqs:ap-northeast-1:000000000000:$(DELIVERY_OPERATION_QUEUE)'

DELIVERY_CONTROL_TOPIC = $(PROJECT_NAME_PREFIX)server-campaign-cache-local
DELIVERY_CONTROL_TOPIC_ARN = arn:aws:sns:ap-northeast-1:000000000000:$(DELIVERY_CONTROL_TOPIC)

start-localstack: ## build sqs mock (elasticmq)
docker run --name touchgift-job-localstack -d --rm -it -p 4566:4566 -p 4567-4582:4567-4582 -e "LOCALSTACK_SERVICES=sns,sqs,dynamodb" localstack/localstack:1.2.0
docker run --name touchgift-job-localstack -d --rm -it -p 4566:4566 -p 4567-4582:4567-4582 -e "LOCALSTACK_SERVICES=sns,sqs,dynamodb" localstack/localstack:3.7.1
Copy link
Collaborator Author

@nakagawa1022 nakagawa1022 Sep 20, 2024

Choose a reason for hiding this comment

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

localstackのverをあげておかないとSQSコマンド実行時に下記エラーが発生していた。

An error occurred (500) when calling the CreateQueue operation (reached max retries: 2): <?xml version='1.0' encoding='utf-8'?>
<ErrorResponse xmlns="http://queue.amazonaws.com/doc/2012-11-05/"><Error><Code>InternalError</Code><Message>exception while calling sqs with unknown operation: Operation detection failed. Missing Action in request for query-protocol service ServiceModel(sqs).</Message></Error><RequestId>YM0CHXZO7WL5RHJNBUGK9U5U549YFKRDOKM5SLZR30W3AT5VLSOR</RequestId></ErrorResponse>
make[1]: *** [create-sqs-delivery-operation-queue] Error 254
make: *** [create-sqs-all-queue] Error 2



stop-localstack: ## stop sqs mock (elasticmq)
docker stop touchgift-job-localstack
Expand Down
Loading