|
|
@@ -24,6 +24,7 @@ def main():
|
|
|
ssh_auth_sock = os.getenv("SSH_AUTH_SOCK")
|
|
|
config_path = Path.cwd() / "data" / "borgmatic.d"
|
|
|
credentials_path = Path.cwd() / "data" / "credentials"
|
|
|
+ storage_box_env = credentials_path / "storage_box_env"
|
|
|
ssh_config_path = Path.home() / ".ssh"
|
|
|
volumes = [
|
|
|
f"{config_path}:/etc/borgmatic.d/",
|
|
|
@@ -56,10 +57,14 @@ def main():
|
|
|
"--detach",
|
|
|
"--name",
|
|
|
container_name,
|
|
|
- "-e SSH_AUTH_SOCK",
|
|
|
- "-e TZ=Europe/Paris",
|
|
|
+ "-e",
|
|
|
+ "SSH_AUTH_SOCK",
|
|
|
+ "-e",
|
|
|
+ "TZ=Europe/Paris",
|
|
|
"-e",
|
|
|
f"SSH_KEY_NAME={ssh_key_name}",
|
|
|
+ "--env-file",
|
|
|
+ storage_box_env,
|
|
|
"--security-opt=label=disable"
|
|
|
] + volume_args + [image_name]
|
|
|
print(args)
|