Lint & general cleanup

This commit is contained in:
Cian Hughes
2024-01-10 17:05:07 +00:00
parent 5fb70cae60
commit 465eb89ab8
3 changed files with 63 additions and 68 deletions

10
deploy
View File

@@ -1,12 +1,12 @@
#!/usr/bin/env poetry run python
from typing import Optional
import typer # type: ignore
import subprocess
import portainer # type: ignore
from typing import Optional
import docker # type: ignore
import portainer # type: ignore
import tomllib
from pathlib import Path
import typer # type: ignore
def docker_deploy_core(stack_name: Optional[str] = "core"):
@@ -52,8 +52,6 @@ def docker_deploy_stack(username: str, password: str, stack_name: Optional[str]
repository_url=fetch_repository_url(),
)
)
# breakpoint() #! TODO: Implement way of using portainer api to deploy stack
# subprocess.run(["docker", "stack", "deploy", "-c", "stack.yaml", stack_name])
def docker_deploy_all(username: str, password: str, core_name: Optional[str] = "core", stack_name: Optional[str] = "stack"):

View File

@@ -5,9 +5,7 @@ description = ""
authors = ["Cian Hughes <cian.hughes@dcu.ie>"]
readme = "README.md"
repository = "https://github.com/Cian-H/I-Form_Research_Server_Stack"
packages = [
{ include = "deploy", from = "." },
]
packages = [{ include = "deploy", from = "." }]
[tool.poetry.dependencies]
python = "^3.11"

View File

@@ -1,6 +1,5 @@
version: "3.8"
services:
###~~~~~~ First, we should plan our network management services ~~~~~~###
# Obviously, we should add the portainer agent service for managing swarm resources