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

LocalStack #149

Merged
merged 20 commits into from
Jun 4, 2020
Merged

LocalStack #149

merged 20 commits into from
Jun 4, 2020

Conversation

kylerwsm
Copy link
Contributor

@kylerwsm kylerwsm commented Jun 3, 2020

Problem

So, we need a S3-like service for local development. We want it to be accessed without credentials. And we want something that is contained only within our local development environment. Enter LocalStack, an easy-to-use test/mock framework for developing cloud applications.

Closes #117.

Solution

  • Introduce dockerised version of LocalStack in our docker compose
  • Created an init script (heavily inspired from formsg's version)
  • In development, LocalStack is injected in-lieu of S3ServerSide.
  • Updated .gitignore to ignore local files created by LocalStack

Notable changes

  • Since LocalStack runs locally on http, https is disabled in development.
  • Since file links on localhost is not a proper url, url validation on Sequelize is disabled in development.

Notes

  • This PR should be merged after file-upload-frontend
  • This is a working prototype, and subsequently, I will be refining it further.

@kylerwsm kylerwsm changed the base branch from develop to file-upload-frontend June 3, 2020 12:10
init-localstack.sh Outdated Show resolved Hide resolved
Base automatically changed from file-upload-frontend to develop June 4, 2020 04:44
@kylerwsm kylerwsm merged commit c67402c into develop Jun 4, 2020
@kylerwsm kylerwsm deleted the localstack branch June 4, 2020 08:18
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.

S3 service for local development
3 participants