Skip to content

armgit / macro

Public Imported from GitHub
0

Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.

update running locally readme (#1528)

Will Hutchinson0d8501211db0
diff --git a/RUNNING_LOCALLY.md b/RUNNING_LOCALLY.md
index 905de38522..d39c97e416 100644
--- a/RUNNING_LOCALLY.md
+++ b/RUNNING_LOCALLY.md
@@ -9,31 +9,47 @@
- AWS
- SQLX
-## Setup
+## Local Setup
-- You need to initialize the local postgres db with schema/data. To do this
-run:
+### Setup SOPS
+Export the **SOPS_KMS_ARN** (you can skip if you use nix-shell)
```bash
-just run_dbs
-just init_local_dbs
-just infra/stacks/fusionauth-instance/setup
+export SOPS_KMS_ARN = "arn:aws:kms:us-east-1:569036502058:key/mrk-cab29bf948044eb79005a81f48d40e93,arn:aws:kms:us-west-1:569036502058:key/mrk-cab29bf948044eb79005a81f48d40e93"
```
-- Export the **SOPS_KMS_ARN** (you can skip if you use nix-shell)
-`export SOPS_KMS_ARN = "arn:aws:kms:us-east-1:569036502058:key/mrk-cab29bf948044eb79005a81f48d40e93,arn:aws:kms:us-west-1:569036502058:key/mrk-cab29bf948044eb79005a81f48d40e93"`
+You can run `just get_environment` to convert the encrypted sops file into a
+.env file. **Importantly**, if you modify the .env file then rerun
+`just get_environment` it will **wipe** any changes you made to the file.
-- Next run `just get_environment` to convert the sops into a .env file
- - By default this will get you a fully local environment. If you want to
- run against dev assets you can run `just get_environment dev`. You'll need
- to update the AWS access key with a valid one if you do this though.
+You can also run `just get_environment dev` to get all environment variables
+needed to run locally against dev assets. You will need to fill in the AWS
+credentials.
-- Run `just setup_localstack` to instantiate all the local aws assets
+### Setup Localstack
+You need to initialize the localstack with all local AWS constructs.
+
+To do this run the following:
+
+```bash
+just setup_localstack
+```
+
+### Setup Local MacroDB
+To instantiate macrodb run `just setup_local_dbs`.
+
+### Setup FusionAuth
+To setup local FusionAuth run `just infra/stacks/fusionauth-instance/setup`.
+Make sure you have already generated your .env file as FusionAuth needs to
+append values to it.
+
+### Building the base docker image
+We have a single "root" docker image that is used as a base for all services.
+To build this you can run `just rust/cloud-storage/build_dev_service_images`
## Running
-You can run the services via `just build_run_local` or `just run_local` if you
-have already built the docker images.
+You can run the services via `just run_local` or `just build_run_local` if you wanted to rebuild the base docker image.
If you've updated the docker image after making changes to a service you'll need
to provide the `--build` flag in `just run_local` to trigger docker-compose to