Page MenuHomePhabricator

[services] Change services yarn script name from run-local-cloud to init-local-cloud
ClosedPublic

Authored by max on Jun 20 2022, 6:50 AM.
Tags
None
Referenced Files
F3377737: D4303.id13609.diff
Wed, Nov 27, 6:58 AM
F3377005: D4303.diff
Wed, Nov 27, 3:24 AM
Unknown Object (File)
Mon, Nov 25, 9:08 AM
Unknown Object (File)
Sat, Nov 23, 1:42 PM
Unknown Object (File)
Wed, Nov 13, 12:48 AM
Unknown Object (File)
Fri, Nov 8, 6:06 PM
Unknown Object (File)
Fri, Nov 8, 5:44 PM
Unknown Object (File)
Fri, Nov 8, 12:38 PM

Details

Summary

When running yarn run-local-cloud we are starting the localstack docker image and initialize the DynamoDB tables and S3 buckets using the Terraform
scripts.

When we are starting some of the services the localstack image starts automatically along with it because for each service we have in docker-compose
depends on the parameter:

depends_on:
      - localstack

That's why we need to run yarn run-local-cloud only for the first-time initialization.

For the tunnelbroker we have depends_on for a RabbitMQ local docker image as well (but it doesn't need to be initialized, just started along with the
service).

From the described above the name of the command doesn't reflect what it is doing and the name changed to init-local-cloud in the services package.json
would be more purpose-reflecting.

Linear task: ENG-1275

Test Plan

Run yarn init-local-cloud and the expected result is localstack docker image start and dynamoDB tables, s3 buckets are initialized by the Terraform script.

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable