Skip to content

Commit

Permalink
refactor: compose file name
Browse files Browse the repository at this point in the history
  • Loading branch information
rubencabrera committed Aug 27, 2024
1 parent 77029e2 commit e31a763
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 105 deletions.
23 changes: 12 additions & 11 deletions cli-src/odoo_docker_cli/odoo_docker_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ def compose(
pudb,
repos_path,
upstream_path=False,
compose_filename="docker-compose.yaml"
):
"""Generate a docker compose yaml file to run the image built from
this repository.
Expand All @@ -136,15 +137,15 @@ def compose(
loader=FileSystemLoader("templates"),
trim_blocks=True,
)
template = env.get_template("docker-compose.yml")
print(
template.render(
comments=comments,
db_filter=db_filter,
mount_upstream=mount_upstream,
project_name=project_name,
pudb=pudb,
repos_host_path=repos_path,
upstream_path=upstream_path, # only relevant if mount_upstream
)
template = env.get_template("docker-compose.yaml")
output = template.render(
comments=comments,
db_filter=db_filter,
mount_upstream=mount_upstream,
project_name=project_name,
pudb=pudb,
repos_host_path=repos_path,
upstream_path=upstream_path, # only relevant if mount_upstream
)
with open(compose_filename, "x") as f:
f.write(output)
94 changes: 0 additions & 94 deletions docker-compose.yml

This file was deleted.

File renamed without changes.

0 comments on commit e31a763

Please sign in to comment.