mirror of
https://github.com/Cian-H/I-Form_Research_Server_Stack.git
synced 2025-12-23 06:32:07 +00:00
Lint & general cleanup
This commit is contained in:
10
deploy
10
deploy
@@ -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"):
|
||||
|
||||
@@ -5,14 +5,12 @@ 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"
|
||||
typer = "^0.9.0"
|
||||
portainer = {path = "src/portainer_api"}
|
||||
portainer = { path = "src/portainer_api" }
|
||||
docker = "^7.0.0"
|
||||
|
||||
[tool.poetry.group.dev.dependencies]
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user