Skip to content

Commit

Permalink
Add default overrides and unambiguous way of disabling them
Browse files Browse the repository at this point in the history
  • Loading branch information
sarayourfriend committed Apr 14, 2023
1 parent 55bfcdd commit 19ec605
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docker-compose.overrides.yml
@@ -0,0 +1,4 @@
services:
es:
# Memory limit for ES, as it tends to be a memory hoarder
mem_limit: 4294967296
4 changes: 4 additions & 0 deletions justfile
Expand Up @@ -7,6 +7,7 @@ set dotenv-load := false
IS_PROD := env_var_or_default("PROD", "")
IS_CI := env_var_or_default("CI", "")
DC_USER := env_var_or_default("DC_USER", "opener")
ENABLE_DC_OVERRIDES := env_var_or_default("OPENVERSE_ENABLE_DC_OVERRIDES", "true")

# Show all available recipes, also recurses inside nested justfiles
@_default:
Expand Down Expand Up @@ -103,6 +104,9 @@ env:
DOCKER_FILE := "-f " + (
if IS_PROD == "true" { "ingestion_server/docker-compose.yml" }
else { "docker-compose.yml" }
) + (
if ENABLE_DC_OVERRIDES == "true" { " -f docker-compose.overrides.yml" }
else { "" }
)

# Run `docker-compose` configured with the correct files and environment
Expand Down

0 comments on commit 19ec605

Please sign in to comment.