From 2872d76b5e0b127400eb7e6dd16da362c7c142ba Mon Sep 17 00:00:00 2001 From: Antoine C Date: Fri, 12 Jan 2024 00:19:42 +0100 Subject: [PATCH] Change .env to .env.example to avoid overwriting local .env when pulling (#35) --- .env => .env.example | 0 .gitignore | 1 + README.md | 1 + monitoring/{.env => .env.example} | 0 monitoring/README.md | 4 ++++ 5 files changed, 6 insertions(+) rename .env => .env.example (100%) create mode 100644 .gitignore rename monitoring/{.env => .env.example} (100%) diff --git a/.env b/.env.example similarity index 100% rename from .env rename to .env.example diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..4c49bd7 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.env diff --git a/README.md b/README.md index 850e8e4..da0e976 100644 --- a/README.md +++ b/README.md @@ -18,6 +18,7 @@ Clone this repo and execute the following commands: git clone https://github.com/Layr-Labs/eigenda-operator-setup.git cd eigenda-operator-setup chmod +x run.sh +cp .env.example .env ``` Update the `TODO` sections in the `.env` file given in the root directory of the repository with your own details.: diff --git a/monitoring/.env b/monitoring/.env.example similarity index 100% rename from monitoring/.env rename to monitoring/.env.example diff --git a/monitoring/README.md b/monitoring/README.md index 4984e0f..ccd5d2d 100644 --- a/monitoring/README.md +++ b/monitoring/README.md @@ -3,6 +3,10 @@ If you want to set up monitoring using docker, you can use the following command In the folder +* Copy the [.env.example](./.env.example) file to `.env` file: +```bash +cp .env.example .env +``` * Make sure your prometheus config [file](./prometheus.yml) is updated with the metrics port (`NODE_METRICS_PORT`) of the eigenda node. * Make sure the eigenda container name is also set correctly in the prometheus config file. You can find that in eigenda [.env](../.env) file (`MAIN_SERVICE_NAME`)