-
Notifications
You must be signed in to change notification settings - Fork 5
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
base: feature/MTG-868-slots-storage
Are you sure you want to change the base?
Conversation
@@ -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)] |
There was a problem hiding this comment.
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" |
There was a problem hiding this comment.
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" |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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
No description provided.