Skip to content

Commit

Permalink
Add dynamic docker compose file
Browse files Browse the repository at this point in the history
  • Loading branch information
maaktweluit committed Nov 15, 2021
1 parent 38dee3f commit bb4c732
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
6 changes: 3 additions & 3 deletions goth/configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -213,12 +213,12 @@ def read_compose_config(self) -> ComposeConfig:
if build_env_config:
build_env_config.ensure_type(dict)
build_env = build_env_config.read_build_env(docker_dir)
compose_file = build_env_config["compose-file"]
else:
build_env = YagnaBuildEnvironment(docker_dir)
compose_file = DEFAULT_COMPOSE_FILE

return ComposeConfig(
build_env, docker_dir / DEFAULT_COMPOSE_FILE, log_patterns.doc
)
return ComposeConfig(build_env, docker_dir / compose_file, log_patterns.doc)

def read_build_env(self, docker_dir: Path) -> YagnaBuildEnvironment:
"""Read a `YagnaBuildEnvironment` instance from this parser's document."""
Expand Down
1 change: 1 addition & 0 deletions goth/default-assets/goth-config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

docker-compose:

compose-file: "docker-compose.yml"
docker-dir: "docker/"

build-environment:
Expand Down

0 comments on commit bb4c732

Please sign in to comment.