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

Drop core-indexing container #314

Merged
merged 9 commits into from
Jan 15, 2025
Merged

Drop core-indexing container #314

merged 9 commits into from
Jan 15, 2025

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
Collaborator

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
Collaborator

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
Collaborator

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
Collaborator

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

@n00m4d n00m4d changed the base branch from feature/MTG-868-slots-storage to main January 13, 2025 13:50
@n00m4d
Copy link
Contributor Author

n00m4d commented Jan 13, 2025

UPD: lot of changes were merged already, so previously the goal of this PR was to be able to run slot-persister in Docker container with clap env variables, that changes were merged before this PR.

At the moment this PR updates .env.example file and drops unused container from docker-compose

@n00m4d
Copy link
Contributor Author

n00m4d commented Jan 14, 2025

UPD: now this PR only drops useless core-indexing container from the docker-compose file

@StanChe StanChe changed the title Add env feature for clap Drop core-indexing container Jan 15, 2025
@n00m4d n00m4d merged commit 9758c18 into main Jan 15, 2025
2 checks passed
@n00m4d n00m4d deleted the feat/mtg-924 branch January 15, 2025 12:05
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.

4 participants