Skip to content

Commit 21a36c9

Browse files
committed
Use new image of localstack to fixing error in SQS and SNS in CI
1 parent 076aedd commit 21a36c9

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

docker-compose.yml

+9-9
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ services:
77
build:
88
context: docker
99
args:
10-
PHP_VERSION: "${PHP_VERSION:-7.4}"
10+
PHP_VERSION: "${PHP_VERSION:-8.2}"
1111
depends_on:
1212
- rabbitmq
1313
- mysql
@@ -38,16 +38,16 @@ services:
3838
- PREDIS_DSN=redis+predis://redis
3939
- PHPREDIS_DSN=redis+phpredis://redis
4040
- GPS_DSN=gps:?projectId=mqdev&emulatorHost=http://google-pubsub:8085
41-
- SQS_DSN=sqs:?key=key&secret=secret&region=us-east-1&endpoint=http://localstack:4576&version=latest
42-
- SNS_DSN=sns:?key=key&secret=secret&region=us-east-1&endpoint=http://localstack:4575&version=latest
43-
- SNSQS_DSN=snsqs:?key=key&secret=secret&region=us-east-1&sns_endpoint=http://localstack:4575&sqs_endpoint=http://localstack:4576&version=latest
41+
- SQS_DSN=sqs:?key=key&secret=secret&region=us-east-1&endpoint=http://localstack:4566&version=latest
42+
- SNS_DSN=sns:?key=key&secret=secret&region=us-east-1&endpoint=http://localstack:4566&version=latest
43+
- SNSQS_DSN=snsqs:?key=key&secret=secret&region=us-east-1&sns_endpoint=http://localstack:4566&sqs_endpoint=http://localstack:4566&version=latest
4444
- WAMP_DSN=wamp://thruway:9090
4545
- REDIS_HOST=redis
4646
- REDIS_PORT=6379
4747
- AWS_SQS_KEY=key
4848
- AWS_SQS_SECRET=secret
4949
- AWS_SQS_REGION=us-east-1
50-
- AWS_SQS_ENDPOINT=http://localstack:4576
50+
- AWS_SQS_ENDPOINT=http://localstack:4566
5151
- AWS_SQS_VERSION=latest
5252
- BEANSTALKD_DSN=beanstalk://beanstalkd:11300
5353
- GEARMAN_DSN=gearman://gearmand:4730
@@ -127,13 +127,13 @@ services:
127127
- '9090:9090'
128128

129129
localstack:
130-
image: 'localstack/localstack:0.8.10'
130+
image: 'localstack/localstack'
131131
ports:
132-
- '4576:4576'
133-
- '4575:4575'
132+
- "127.0.0.1:4566:4566" # LocalStack Gateway
133+
- "127.0.0.1:4510-4559:4510-4559" # external services port range
134134
environment:
135135
HOSTNAME_EXTERNAL: 'localstack'
136-
SERVICES: 'sqs,sns'
136+
SERVICES: 's3,sqs,sns'
137137

138138
influxdb:
139139
image: 'influxdb:latest'

docker/bin/test.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ waitForService gearmand 4730 50
3939
waitForService kafka 9092 50
4040
waitForService mongo 27017 50
4141
waitForService thruway 9090 50
42-
waitForService localstack 4576 50
42+
waitForService localstack 4566 50
4343

4444
php docker/bin/refresh-mysql-database.php || exit 1
4545
php docker/bin/refresh-postgres-database.php || exit 1

0 commit comments

Comments
 (0)