-
Notifications
You must be signed in to change notification settings - Fork 0
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
FPO-194: Add docker-compose + LocalStack (www.localstack.cloud) #19
Conversation
docker-compose.yml
Outdated
localstack: | ||
image: localstack/localstack:latest | ||
ports: | ||
- 4566:4566 # loLalStack edge port | ||
- 4510-4559:4510-4559 # maps various AWS services ports | ||
volumes: | ||
# Inizialization Hook (see https://docs.localstack.cloud/references/init-hooks/) | ||
- ./localstack-setup.sh:/etc/localstack/init/ready.d/script.sh |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is the section I added,
I was inspired by this blogpost:
https://whattodevnow.medium.com/using-localstack-with-docker-compose-to-mock-aws-services-bb25a5b01d4b
docker-compose.yml
Outdated
localstack: | ||
image: localstack/localstack:latest | ||
ports: | ||
- 4566:4566 # loLalStack edge port |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- 4566:4566 # loLalStack edge port | |
- 4566:4566 # localStack edge port |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LOLstack 🤣
docker-compose.yml
Outdated
- 4566:4566 # loLalStack edge port | ||
- 4510-4559:4510-4559 # maps various AWS services ports | ||
volumes: | ||
# Inizialization Hook (see https://docs.localstack.cloud/references/init-hooks/) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
# Inizialization Hook (see https://docs.localstack.cloud/references/init-hooks/) | |
# Initialization Hook (see https://docs.localstack.cloud/references/init-hooks/) |
AttributeName=FpoId,KeyType=RANGE \ | ||
--provisioned-throughput ReadCapacityUnits=5,WriteCapacityUnits=5 | ||
|
||
echo "Creating API Gateway..." |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are you thinking you want to do this part in a separate PR?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
basically I don't know how to do that 😅
need to dig a bit more on the current AWS setting and replicate it in here
@@ -0,0 +1,69 @@ | |||
version: "2" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So I think we can just embed these two configuration files as part of https://github.com/trade-tariff/trade-tariff-tech-docs/blob/main/source/manual/get-started.html.md
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That way, when we have a new dev starting they can copy this file into ~
So I think we'll want:
|
e54e837
to
5f659b6
Compare
Jira link
https://transformuk.atlassian.net/browse/FPO-194
What?
Recreated
docker-compose.yml
from the ReadmeAdded localstack in the
services
section in the docker-compose.ymlAdded localstack-setup.sh to initialise the local AWS services that we need
DONE:
-[x] dynamodb
TODO:
-[] API Gatway
-[] other?!?
Why?
So we don't need to setup AWS services to manually or run integration-test