Skip to content

Conversation

@hernanvicente
Copy link
Collaborator

@hernanvicente hernanvicente commented Mar 22, 2025

What Issue Does This PR Cover, If Any?

A Docker environment was implemented to emulate the AWS S3 API locally for local development by adding its respective Dockerfile.dev and docker-compose.dev.yml. This setup allows us to add more AWS services without creating development credentials and provides a production-like environment.

Resolves #118

What Changed? And Why Did It Change?

  • Rails runs the application in the development environment from its container
  • Localstack emulates the AWS S3 service
  • Postgresql runs in its container
  • Active Storage uses the Amazon provider, and uploads are being stored in a local bucket
  • A Makefile with make commands is in place, run make help to see a list of available options

How Has This Been Tested?

  • Tests continue working from the host system
  • We can run tests inside the container, try: make test

Please Provide Screenshots

Run the app and specs from the host system

docker.mp4

Run the app and specs from the host system

local.mov

@hernanvicente hernanvicente linked an issue Mar 22, 2025 that may be closed by this pull request
3 tasks
@hernanvicente hernanvicente changed the title Setup Azure for local development #118 Setup Azure for local development Mar 22, 2025
@dcollie2 dcollie2 marked this pull request as draft March 22, 2025 17:22
@hernanvicente hernanvicente force-pushed the 118-set-up-local-azure-emulation-for-use-in-development branch from 1cd2133 to e933723 Compare March 26, 2025 18:03
@hernanvicente hernanvicente force-pushed the 118-set-up-local-azure-emulation-for-use-in-development branch from e933723 to dc998a1 Compare April 11, 2025 15:24
@hernanvicente hernanvicente force-pushed the 118-set-up-local-azure-emulation-for-use-in-development branch from dc998a1 to 87c9d91 Compare April 28, 2025 19:40
@hernanvicente hernanvicente self-assigned this Apr 28, 2025
@hernanvicente hernanvicente added documentation Improvements or additions to documentation Infrastructure labels Apr 28, 2025
@hernanvicente hernanvicente force-pushed the 118-set-up-local-azure-emulation-for-use-in-development branch 5 times, most recently from 951a844 to d81696e Compare April 29, 2025 08:48
@hernanvicente hernanvicente marked this pull request as ready for review April 29, 2025 08:50
@hernanvicente hernanvicente force-pushed the 118-set-up-local-azure-emulation-for-use-in-development branch from d81696e to 922d271 Compare April 29, 2025 08:58
@hernanvicente hernanvicente force-pushed the 118-set-up-local-azure-emulation-for-use-in-development branch 3 times, most recently from d96f726 to 17777aa Compare May 13, 2025 08:52
@hernanvicente hernanvicente changed the title Setup Azure for local development Setup Localstack AWS S3 for local development May 22, 2025
@dcollie2 dcollie2 force-pushed the 118-set-up-local-azure-emulation-for-use-in-development branch from 17777aa to 4aaab52 Compare June 3, 2025 21:05
@dcollie2 dcollie2 merged commit cce3bc6 into main Jun 6, 2025
4 checks passed
@dcollie2 dcollie2 deleted the 118-set-up-local-azure-emulation-for-use-in-development branch June 6, 2025 00:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation Infrastructure

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Set up Localstack for local emulation in development

4 participants