vm-tool 1.0.37__py3-none-any.whl → 1.0.39__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- vm_tool/cli.py +8 -1
- vm_tool/runner.py +2 -1
- vm_tool/vm_setup/push_code_tasks.yml +7 -0
- {vm_tool-1.0.37.dist-info → vm_tool-1.0.39.dist-info}/METADATA +1 -1
- {vm_tool-1.0.37.dist-info → vm_tool-1.0.39.dist-info}/RECORD +9 -9
- {vm_tool-1.0.37.dist-info → vm_tool-1.0.39.dist-info}/WHEEL +0 -0
- {vm_tool-1.0.37.dist-info → vm_tool-1.0.39.dist-info}/entry_points.txt +0 -0
- {vm_tool-1.0.37.dist-info → vm_tool-1.0.39.dist-info}/licenses/LICENSE +0 -0
- {vm_tool-1.0.37.dist-info → vm_tool-1.0.39.dist-info}/top_level.txt +0 -0
vm_tool/cli.py
CHANGED
|
@@ -6,7 +6,7 @@ def main():
|
|
|
6
6
|
parser = argparse.ArgumentParser(
|
|
7
7
|
description="VM Tool: Setup, Provision, and Manage VMs"
|
|
8
8
|
)
|
|
9
|
-
parser.add_argument("--version", action="version", version="1.0.
|
|
9
|
+
parser.add_argument("--version", action="version", version="1.0.39")
|
|
10
10
|
parser.add_argument(
|
|
11
11
|
"--verbose", "-v", action="store_true", help="Enable verbose output"
|
|
12
12
|
)
|
|
@@ -236,6 +236,12 @@ def main():
|
|
|
236
236
|
action="store_true",
|
|
237
237
|
help="Preview deployment without executing (shows what would be deployed)",
|
|
238
238
|
)
|
|
239
|
+
docker_parser.add_argument(
|
|
240
|
+
"--project-dir",
|
|
241
|
+
type=str,
|
|
242
|
+
default="~/app",
|
|
243
|
+
help="Target directory on the server for deployment (default: ~/app)",
|
|
244
|
+
)
|
|
239
245
|
|
|
240
246
|
# Completion command
|
|
241
247
|
completion_parser = subparsers.add_parser(
|
|
@@ -600,6 +606,7 @@ def main():
|
|
|
600
606
|
env_file=args.env_file,
|
|
601
607
|
deploy_command=args.deploy_command,
|
|
602
608
|
force=args.force,
|
|
609
|
+
project_dir=args.project_dir,
|
|
603
610
|
)
|
|
604
611
|
|
|
605
612
|
# Run health checks if specified
|
vm_tool/runner.py
CHANGED
|
@@ -320,6 +320,7 @@ class SetupRunner:
|
|
|
320
320
|
env_file: str = None,
|
|
321
321
|
deploy_command: str = None,
|
|
322
322
|
force: bool = False,
|
|
323
|
+
project_dir: str = "~/app",
|
|
323
324
|
):
|
|
324
325
|
"""Runs the Docker Compose deployment with idempotency."""
|
|
325
326
|
from vm_tool.state import DeploymentState
|
|
@@ -391,7 +392,7 @@ class SetupRunner:
|
|
|
391
392
|
"GITHUB_PROJECT_URL": self.github_project_url,
|
|
392
393
|
"DEPLOY_MODE": "push",
|
|
393
394
|
"SOURCE_PATH": os.getcwd(), # Current working directory where vm_tool is run
|
|
394
|
-
"project_dest_dir":
|
|
395
|
+
"project_dest_dir": project_dir,
|
|
395
396
|
"GITHUB_REPOSITORY_OWNER": os.environ.get("GITHUB_REPOSITORY_OWNER", ""),
|
|
396
397
|
}
|
|
397
398
|
|
|
@@ -19,6 +19,13 @@
|
|
|
19
19
|
# Let's rely on 'synchronize' (rsync) if available, or just copy the compose file if user only provided that.
|
|
20
20
|
|
|
21
21
|
# For MVP of 'deploy-docker', let's copy the DOCKER_COMPOSE_FILE_PATH and .env if exists.
|
|
22
|
+
- name: Ensure Docker Compose file parent directory exists
|
|
23
|
+
file:
|
|
24
|
+
path: "{{ project_dest_dir }}/{{ DOCKER_COMPOSE_FILE_PATH | dirname }}"
|
|
25
|
+
state: directory
|
|
26
|
+
mode: '0755'
|
|
27
|
+
when: DOCKER_COMPOSE_FILE_PATH is defined and (DOCKER_COMPOSE_FILE_PATH | dirname) != ''
|
|
28
|
+
|
|
22
29
|
- name: Copy Docker Compose file
|
|
23
30
|
copy:
|
|
24
31
|
src: "{{ SOURCE_PATH }}/{{ DOCKER_COMPOSE_FILE_PATH }}"
|
|
@@ -24,7 +24,7 @@ vm_tool/alerting.py,sha256=6bNfQNSAQ_SJW9dQfB8s8gDZ-7ocYw4Q211VM6FWiXU,8269
|
|
|
24
24
|
vm_tool/audit.py,sha256=spVtMcwadTkD9lELH1tur7Dr3OHjajk44ZatKYEbeVI,3388
|
|
25
25
|
vm_tool/backup.py,sha256=WhwCXXJDYCQgoexroksNhWgB5ki6HUly0JhQ9ybCdMg,4130
|
|
26
26
|
vm_tool/benchmarking.py,sha256=9AZ4JwKd5aEjwtKnhsuFa77y6WSO_fSEIqgMh3w_Btw,6212
|
|
27
|
-
vm_tool/cli.py,sha256=
|
|
27
|
+
vm_tool/cli.py,sha256=PLq5CfO8p-6ppfXc_nm64NUZGD0vid9F_wmbizsdsig,28828
|
|
28
28
|
vm_tool/cloud.py,sha256=1fQV1o3wCth55B1hSenME_j2n5gCJDo9gtUcqDxCs7s,4047
|
|
29
29
|
vm_tool/completion.py,sha256=U8W8mmNdR0Ci0WjlEIa8CLOUtaVLZ5tWYpqViBBIBF8,7431
|
|
30
30
|
vm_tool/compliance.py,sha256=7yXrvRoPxJMW0DTVhJ-ZxbaJo7quDSVgae2_mYbVAmE,3173
|
|
@@ -41,7 +41,7 @@ vm_tool/policy.py,sha256=Z05TLSqMu-tSM0_SnCdsIZqebHGRtXNSRLwkOBDthtY,6072
|
|
|
41
41
|
vm_tool/rbac.py,sha256=hdFzh4QhUuQmGmMXBuG-o21FdEp1fb8WSJrCWAz-drI,3999
|
|
42
42
|
vm_tool/recovery.py,sha256=fesho6Pi_ItRkdtiNK2bh-8Q_T98kSn2LZwKovMFsWI,5473
|
|
43
43
|
vm_tool/reporting.py,sha256=yiLdArTfu7A8-PWL3dmFSRNpcMvBSq1iHNw6YJRO1hI,7419
|
|
44
|
-
vm_tool/runner.py,sha256=
|
|
44
|
+
vm_tool/runner.py,sha256=JoksxK31e2zVd4t-vHA8_GFrVvgeUngoMU9AFNxoxw4,17666
|
|
45
45
|
vm_tool/secrets.py,sha256=bvbunxt4dLupFZQs3VUHkxDOASoBgtpggO0oavTuzOk,9397
|
|
46
46
|
vm_tool/ssh.py,sha256=c9Nxs20VEq--qWCLZyc6uRqgny2-OCSwnTlcx9bZJtg,4905
|
|
47
47
|
vm_tool/state.py,sha256=DxJoRLITwT8mWcs_eAgFNTDfcrGh4PMdQuFjdGb1n6Y,4079
|
|
@@ -58,7 +58,7 @@ vm_tool/vm_setup/main.yml,sha256=QUWUFf7W1y9dvfL-sfYIgh491cxRBTm521jI4he24Jg,657
|
|
|
58
58
|
vm_tool/vm_setup/monitoring.yml,sha256=u4WhkO2P6O2Mrqo02z8G_FshcFjAbY1Avve5mb5sxZs,1090
|
|
59
59
|
vm_tool/vm_setup/project_service.yml,sha256=YlvRx9XgW2X1MsKa9XWr7LWK-BET2zFly8Q-7cNedH4,545
|
|
60
60
|
vm_tool/vm_setup/push_code.yml,sha256=U5zqx04oV2S4U4VsXaecn8S9_UrZGEcTjKbhIZdCgs8,112
|
|
61
|
-
vm_tool/vm_setup/push_code_tasks.yml,sha256=
|
|
61
|
+
vm_tool/vm_setup/push_code_tasks.yml,sha256=dgPgcn3WAxff50GiWB7z2cWpndoqPZWOvij7DZzBxwM,1773
|
|
62
62
|
vm_tool/vm_setup/setup.yml,sha256=D3qsBkzWEWEgeAmxO7bk99wxUaFImeSbZNVa3I2BXR8,659
|
|
63
63
|
vm_tool/vm_setup/setup_project_env.yml,sha256=Q4K6ZgGfgP8pW-QKV3Wkvb0V82AGjHoWB9TM8xq2Nd0,274
|
|
64
64
|
vm_tool/vm_setup/docker/create_docker_service.yml,sha256=C4nZpFBVzA7_xn0PEMIpYjXcYyA73ClxdMQgTh319eI,2140
|
|
@@ -66,9 +66,9 @@ vm_tool/vm_setup/docker/docker_setup.yml,sha256=kg6Abu3TjcLwV0JHnCAVUkj5l2HaGf7O
|
|
|
66
66
|
vm_tool/vm_setup/docker/install_docker_and_compose.yml,sha256=NxPm4YkOekRH0dpJQVgxjcSqrmT6f912Dv0owYsLBxE,3402
|
|
67
67
|
vm_tool/vm_setup/docker/login_to_docker_hub.yml,sha256=y9WaWLb1f1SuHVa1NNm24Gvf5bbwQ8eqEsImGLHGHGU,223
|
|
68
68
|
vm_tool/vm_setup/github/git_configuration.yml,sha256=hKuzOFsVlYRoBAXujREfrLiqV7j4RnQYbL5s63AEAqk,2355
|
|
69
|
-
vm_tool-1.0.
|
|
70
|
-
vm_tool-1.0.
|
|
71
|
-
vm_tool-1.0.
|
|
72
|
-
vm_tool-1.0.
|
|
73
|
-
vm_tool-1.0.
|
|
74
|
-
vm_tool-1.0.
|
|
69
|
+
vm_tool-1.0.39.dist-info/licenses/LICENSE,sha256=4OO6Zd_hYEOemzTNdgUR_E7oNvUJLuN2E7ZAgm7DcSM,1063
|
|
70
|
+
vm_tool-1.0.39.dist-info/METADATA,sha256=6MURa9xBzCUWCcfFKEYP7W1A-3wzbBghfFCcczB7HE0,6191
|
|
71
|
+
vm_tool-1.0.39.dist-info/WHEEL,sha256=wUyA8OaulRlbfwMtmQsvNngGrxQHAvkKcvRmdizlJi0,92
|
|
72
|
+
vm_tool-1.0.39.dist-info/entry_points.txt,sha256=A2EAvw95ftFXzVAWfHKIM-SsxQVxrIrByRNe-ArOp2k,45
|
|
73
|
+
vm_tool-1.0.39.dist-info/top_level.txt,sha256=jTLckJpKvJplpmKoMhPz2YKp_sQB9Q5-cCGmUHCp06M,17
|
|
74
|
+
vm_tool-1.0.39.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|