mirror of
https://github.com/Cian-H/I-Form_Research_Server_Stack.git
synced 2025-12-23 14:42:02 +00:00
Lint & general cleanup
This commit is contained in:
10
deploy
10
deploy
@@ -1,12 +1,12 @@
|
|||||||
#!/usr/bin/env poetry run python
|
#!/usr/bin/env poetry run python
|
||||||
|
|
||||||
from typing import Optional
|
|
||||||
import typer # type: ignore
|
|
||||||
import subprocess
|
import subprocess
|
||||||
import portainer # type: ignore
|
from typing import Optional
|
||||||
|
|
||||||
import docker # type: ignore
|
import docker # type: ignore
|
||||||
|
import portainer # type: ignore
|
||||||
import tomllib
|
import tomllib
|
||||||
from pathlib import Path
|
import typer # type: ignore
|
||||||
|
|
||||||
|
|
||||||
def docker_deploy_core(stack_name: Optional[str] = "core"):
|
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(),
|
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"):
|
def docker_deploy_all(username: str, password: str, core_name: Optional[str] = "core", stack_name: Optional[str] = "stack"):
|
||||||
|
|||||||
@@ -5,9 +5,7 @@ description = ""
|
|||||||
authors = ["Cian Hughes <cian.hughes@dcu.ie>"]
|
authors = ["Cian Hughes <cian.hughes@dcu.ie>"]
|
||||||
readme = "README.md"
|
readme = "README.md"
|
||||||
repository = "https://github.com/Cian-H/I-Form_Research_Server_Stack"
|
repository = "https://github.com/Cian-H/I-Form_Research_Server_Stack"
|
||||||
packages = [
|
packages = [{ include = "deploy", from = "." }]
|
||||||
{ include = "deploy", from = "." },
|
|
||||||
]
|
|
||||||
|
|
||||||
[tool.poetry.dependencies]
|
[tool.poetry.dependencies]
|
||||||
python = "^3.11"
|
python = "^3.11"
|
||||||
|
|||||||
@@ -1,6 +1,5 @@
|
|||||||
version: "3.8"
|
version: "3.8"
|
||||||
|
|
||||||
|
|
||||||
services:
|
services:
|
||||||
###~~~~~~ First, we should plan our network management services ~~~~~~###
|
###~~~~~~ First, we should plan our network management services ~~~~~~###
|
||||||
# Obviously, we should add the portainer agent service for managing swarm resources
|
# Obviously, we should add the portainer agent service for managing swarm resources
|
||||||
|
|||||||
Reference in New Issue
Block a user