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

Add env feature for clap #314

Open
wants to merge 5 commits into
base: feature/MTG-868-slots-storage
Choose a base branch
from

Conversation

n00m4d
Copy link
Contributor

@n00m4d n00m4d commented Nov 14, 2024

No description provided.

@@ -41,40 +41,40 @@ const SLOT_COLLECTION_OFFSET: u64 = 300;
)]
struct Args {
/// Path to the target RocksDB instance with slots
#[arg(short, long)]
#[arg(short, long, env)]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

specify the Env name here?

.env.example Outdated
# Required by Postgre container
POSTGRE_DB_PATH="postgre/db/path"
ASSETS_ROCKS_DB_PATH="path/to/assets/db"
ASSETS_ROCKS_DB_SECONDARY_PATH="path/to/assets_secondary/db"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this one will be per service most likely. As it's secondary. Sometimes we could use temp dir for it or if we expect it to grow during the runtime.

.env.example Outdated
# Ingester instance config
INGESTER_LOG_LEVEL=info
SLOTS_ROCKS_DB_PATH="path/to/slots/db"
SLOTS_ROCKS_DB_SECONDARY_PATH="path/to/slots_secondary/db"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same here

env_file:
- .env
network_mode: host
volumes:
- ${target_db_path}:${target_db_path}:rw
- ${INGESTER_PROFILING_FILE_PATH}:${INGESTER_PROFILING_FILE_PATH_CONTAINER}:rw
- ${TARGET_DB_PATH}:${TARGET_DB_PATH}:rw
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

value missing from .env.example.
Also some conflicts with the #310 are expected

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.

2 participants