Skip to content

Commit

Permalink
Mount host .ssh and .gitconfig dirs in container (#80)
Browse files Browse the repository at this point in the history
  • Loading branch information
angelofenoglio authored Mar 3, 2022
1 parent 1a6b5fa commit 9dc0cd0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions leverage/modules/terraform.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,8 +157,8 @@ def run(entrypoint=TERRAFORM_BINARY, command="", args=None, enable_mfa=True, int

mounts = [
Mount(target=WORKING_DIR, source=CWD, type="bind"),
# Mount(target="/root/.ssh", source=f"{HOME}/.ssh", type="bind"), # SSH keys for Ansible
# Mount(target="/etc/gitconfig", source=f"{HOME}/.gitconfig", type="bind"), # Git user configuration
Mount(target="/root/.ssh", source=f"{HOME}/.ssh", type="bind"), # SSH keys for Ansible
Mount(target="/etc/gitconfig", source=f"{HOME}/.gitconfig", type="bind"), # Git user configuration
Mount(target=f"/root/tmp/{project}", source=f"{HOME}/.aws/{project}", type="bind")
]
if Path(str(CONFIG)).exists() and Path(str(ACCOUNT_CONFIG)).exists():
Expand Down

0 comments on commit 9dc0cd0

Please sign in to comment.