Skip to content

Commit b916b7d

Browse files
committed
Introduce localstack pro into GitHub Actions(CI)
1 parent 1a82759 commit b916b7d

File tree

4 files changed

+14
-1
lines changed

4 files changed

+14
-1
lines changed

.github/workflows/linux_test.yml

+3
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@ jobs:
2525
go-version: "1"
2626
check-latest: true
2727

28+
- name: Setup localstack
29+
run: docker compose up
30+
2831
- name: Download dependencies
2932
run: go mod download
3033

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,4 @@ data
2424
localstack
2525
/s3hub
2626
/spare
27+
.envrc

compose.yml

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,16 @@
11
services:
22
localstack:
33
container_name: "rainbow-localstack"
4-
image: localstack/localstack:latest
4+
image: localstack/localstack-pro:latest
55
ports:
66
- "127.0.0.1:4566:4566" # LocalStack Gateway
77
- "127.0.0.1:4510-4559:4510-4559" # external services port range
88
environment:
9+
- LOCALSTACK_AUTH_TOKEN=${LOCALSTACK_AUTH_TOKEN- }
910
- DEBUG=${DEBUG-}
1011
- DOCKER_HOST=unix:///var/run/docker.sock
12+
- DNS_LOCAL_NAME_PATTERNS='.*cloudfront\.net'
13+
- CLOUDFRONT_STATIC_PORTS= 1
1114
volumes:
1215
- "${LOCALSTACK_VOLUME_DIR:-./localstack}:/var/lib/localstack"
1316
- "/var/run/docker.sock:/var/run/docker.sock"

doc/common/developers.md

+6
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,12 @@ aws_secret_access_key=test
4242
> [!NOTE]
4343
> Alternatively, you can also set the AWS_PROFILE=localstack environment variable, in which case the --profile localstack parameter can be omitted in the commands above.
4444

45+
### localstack subscriptions
46+
Please access the official website of [localstack](https://www.localstack.cloud/) and obtain a Hobby Subscription. Then, you can get the authentication token from the localstack dashboard. Finally, set the LOCALSTACK_AUTH_TOKEN environment variable. You must not upload the LOCALSTACK_AUTH_TOKEN to the remote repository.
47+
```shell
48+
export LOCALSTACK_AUTH_TOKEN=YOUR_AUTH_TOKEN
49+
```
50+
4551
### Run localstack
4652
Run the following command to start localstack:
4753
```shell

0 commit comments

Comments
 (0)