arkitekt-next 0.7.42__tar.gz → 0.7.44__tar.gz
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.
Potentially problematic release.
This version of arkitekt-next might be problematic. Click here for more details.
- {arkitekt_next-0.7.42 → arkitekt_next-0.7.44}/PKG-INFO +1 -1
- {arkitekt_next-0.7.42 → arkitekt_next-0.7.44}/arkitekt_next/bloks/funcs.py +4 -1
- {arkitekt_next-0.7.42 → arkitekt_next-0.7.44}/arkitekt_next/bloks/gateway.py +12 -1
- {arkitekt_next-0.7.42 → arkitekt_next-0.7.44}/arkitekt_next/bloks/internal_docker.py +22 -8
- {arkitekt_next-0.7.42 → arkitekt_next-0.7.44}/arkitekt_next/bloks/kabinet.py +4 -2
- {arkitekt_next-0.7.42 → arkitekt_next-0.7.44}/arkitekt_next/bloks/services/gateway.py +2 -0
- {arkitekt_next-0.7.42 → arkitekt_next-0.7.44}/arkitekt_next/cli/commands/run/prod.py +6 -1
- {arkitekt_next-0.7.42 → arkitekt_next-0.7.44}/pyproject.toml +1 -1
- {arkitekt_next-0.7.42 → arkitekt_next-0.7.44}/LICENSE +0 -0
- {arkitekt_next-0.7.42 → arkitekt_next-0.7.44}/README.md +0 -0
- {arkitekt_next-0.7.42 → arkitekt_next-0.7.44}/arkitekt_next/__blok__.py +0 -0
- {arkitekt_next-0.7.42 → arkitekt_next-0.7.44}/arkitekt_next/__init__.py +0 -0
- {arkitekt_next-0.7.42 → arkitekt_next-0.7.44}/arkitekt_next/apps/__init__.py +0 -0
- {arkitekt_next-0.7.42 → arkitekt_next-0.7.44}/arkitekt_next/apps/easy.py +0 -0
- {arkitekt_next-0.7.42 → arkitekt_next-0.7.44}/arkitekt_next/apps/next.py +0 -0
- {arkitekt_next-0.7.42 → arkitekt_next-0.7.44}/arkitekt_next/apps/qt.py +0 -0
- {arkitekt_next-0.7.42 → arkitekt_next-0.7.44}/arkitekt_next/apps/service/__init__.py +0 -0
- {arkitekt_next-0.7.42 → arkitekt_next-0.7.44}/arkitekt_next/apps/service/fakts.py +0 -0
- {arkitekt_next-0.7.42 → arkitekt_next-0.7.44}/arkitekt_next/apps/service/fakts_next.py +0 -0
- {arkitekt_next-0.7.42 → arkitekt_next-0.7.44}/arkitekt_next/apps/service/fakts_qt.py +0 -0
- {arkitekt_next-0.7.42 → arkitekt_next-0.7.44}/arkitekt_next/apps/service/grant_registry.py +0 -0
- {arkitekt_next-0.7.42 → arkitekt_next-0.7.44}/arkitekt_next/apps/service/herre.py +0 -0
- {arkitekt_next-0.7.42 → arkitekt_next-0.7.44}/arkitekt_next/apps/service/herre_qt.py +0 -0
- {arkitekt_next-0.7.42 → arkitekt_next-0.7.44}/arkitekt_next/apps/types.py +0 -0
- {arkitekt_next-0.7.42 → arkitekt_next-0.7.44}/arkitekt_next/bloks/__init__.py +0 -0
- {arkitekt_next-0.7.42 → arkitekt_next-0.7.44}/arkitekt_next/bloks/admin.py +0 -0
- {arkitekt_next-0.7.42 → arkitekt_next-0.7.44}/arkitekt_next/bloks/arkitekt.py +0 -0
- {arkitekt_next-0.7.42 → arkitekt_next-0.7.44}/arkitekt_next/bloks/config.py +0 -0
- {arkitekt_next-0.7.42 → arkitekt_next-0.7.44}/arkitekt_next/bloks/fluss.py +0 -0
- {arkitekt_next-0.7.42 → arkitekt_next-0.7.44}/arkitekt_next/bloks/livekit.py +0 -0
- {arkitekt_next-0.7.42 → arkitekt_next-0.7.44}/arkitekt_next/bloks/lok.py +0 -0
- {arkitekt_next-0.7.42 → arkitekt_next-0.7.44}/arkitekt_next/bloks/mikro.py +0 -0
- {arkitekt_next-0.7.42 → arkitekt_next-0.7.44}/arkitekt_next/bloks/minio.py +0 -0
- {arkitekt_next-0.7.42 → arkitekt_next-0.7.44}/arkitekt_next/bloks/mount.py +0 -0
- {arkitekt_next-0.7.42 → arkitekt_next-0.7.44}/arkitekt_next/bloks/namegen.py +0 -0
- {arkitekt_next-0.7.42 → arkitekt_next-0.7.44}/arkitekt_next/bloks/postgres.py +0 -0
- {arkitekt_next-0.7.42 → arkitekt_next-0.7.44}/arkitekt_next/bloks/redis.py +0 -0
- {arkitekt_next-0.7.42 → arkitekt_next-0.7.44}/arkitekt_next/bloks/rekuest.py +0 -0
- {arkitekt_next-0.7.42 → arkitekt_next-0.7.44}/arkitekt_next/bloks/secret.py +0 -0
- {arkitekt_next-0.7.42 → arkitekt_next-0.7.44}/arkitekt_next/bloks/services/__init__.py +0 -0
- {arkitekt_next-0.7.42 → arkitekt_next-0.7.44}/arkitekt_next/bloks/services/admin.py +0 -0
- {arkitekt_next-0.7.42 → arkitekt_next-0.7.44}/arkitekt_next/bloks/services/config.py +0 -0
- {arkitekt_next-0.7.42 → arkitekt_next-0.7.44}/arkitekt_next/bloks/services/db.py +0 -0
- {arkitekt_next-0.7.42 → arkitekt_next-0.7.44}/arkitekt_next/bloks/services/livekit.py +0 -0
- {arkitekt_next-0.7.42 → arkitekt_next-0.7.44}/arkitekt_next/bloks/services/lok.py +0 -0
- {arkitekt_next-0.7.42 → arkitekt_next-0.7.44}/arkitekt_next/bloks/services/mount.py +0 -0
- {arkitekt_next-0.7.42 → arkitekt_next-0.7.44}/arkitekt_next/bloks/services/name.py +0 -0
- {arkitekt_next-0.7.42 → arkitekt_next-0.7.44}/arkitekt_next/bloks/services/redis.py +0 -0
- {arkitekt_next-0.7.42 → arkitekt_next-0.7.44}/arkitekt_next/bloks/services/s3.py +0 -0
- {arkitekt_next-0.7.42 → arkitekt_next-0.7.44}/arkitekt_next/bloks/services/secret.py +0 -0
- {arkitekt_next-0.7.42 → arkitekt_next-0.7.44}/arkitekt_next/bloks/services/socket.py +0 -0
- {arkitekt_next-0.7.42 → arkitekt_next-0.7.44}/arkitekt_next/bloks/socket.py +0 -0
- {arkitekt_next-0.7.42 → arkitekt_next-0.7.44}/arkitekt_next/bloks/tailscale.py +0 -0
- {arkitekt_next-0.7.42 → arkitekt_next-0.7.44}/arkitekt_next/builders.py +0 -0
- {arkitekt_next-0.7.42 → arkitekt_next-0.7.44}/arkitekt_next/cli/__init__.py +0 -0
- {arkitekt_next-0.7.42 → arkitekt_next-0.7.44}/arkitekt_next/cli/commands/call/__init__.py +0 -0
- {arkitekt_next-0.7.42 → arkitekt_next-0.7.44}/arkitekt_next/cli/commands/call/local.py +0 -0
- {arkitekt_next-0.7.42 → arkitekt_next-0.7.44}/arkitekt_next/cli/commands/call/main.py +0 -0
- {arkitekt_next-0.7.42 → arkitekt_next-0.7.44}/arkitekt_next/cli/commands/call/remote.py +0 -0
- {arkitekt_next-0.7.42 → arkitekt_next-0.7.44}/arkitekt_next/cli/commands/gen/__init__.py +0 -0
- {arkitekt_next-0.7.42 → arkitekt_next-0.7.44}/arkitekt_next/cli/commands/gen/compile.py +0 -0
- {arkitekt_next-0.7.42 → arkitekt_next-0.7.44}/arkitekt_next/cli/commands/gen/init.py +0 -0
- {arkitekt_next-0.7.42 → arkitekt_next-0.7.44}/arkitekt_next/cli/commands/gen/main.py +0 -0
- {arkitekt_next-0.7.42 → arkitekt_next-0.7.44}/arkitekt_next/cli/commands/gen/watch.py +0 -0
- {arkitekt_next-0.7.42 → arkitekt_next-0.7.44}/arkitekt_next/cli/commands/init/__init__.py +0 -0
- {arkitekt_next-0.7.42 → arkitekt_next-0.7.44}/arkitekt_next/cli/commands/init/main.py +0 -0
- {arkitekt_next-0.7.42 → arkitekt_next-0.7.44}/arkitekt_next/cli/commands/inspect/__init__.py +0 -0
- {arkitekt_next-0.7.42 → arkitekt_next-0.7.44}/arkitekt_next/cli/commands/inspect/main.py +0 -0
- {arkitekt_next-0.7.42 → arkitekt_next-0.7.44}/arkitekt_next/cli/commands/inspect/requirements.py +0 -0
- {arkitekt_next-0.7.42 → arkitekt_next-0.7.44}/arkitekt_next/cli/commands/inspect/templates.py +0 -0
- {arkitekt_next-0.7.42 → arkitekt_next-0.7.44}/arkitekt_next/cli/commands/inspect/variables.py +0 -0
- {arkitekt_next-0.7.42 → arkitekt_next-0.7.44}/arkitekt_next/cli/commands/kabinet/__init__.py +0 -0
- {arkitekt_next-0.7.42 → arkitekt_next-0.7.44}/arkitekt_next/cli/commands/kabinet/build.py +0 -0
- {arkitekt_next-0.7.42 → arkitekt_next-0.7.44}/arkitekt_next/cli/commands/kabinet/init.py +0 -0
- {arkitekt_next-0.7.42 → arkitekt_next-0.7.44}/arkitekt_next/cli/commands/kabinet/main.py +0 -0
- {arkitekt_next-0.7.42 → arkitekt_next-0.7.44}/arkitekt_next/cli/commands/kabinet/publish.py +0 -0
- {arkitekt_next-0.7.42 → arkitekt_next-0.7.44}/arkitekt_next/cli/commands/kabinet/stage.py +0 -0
- {arkitekt_next-0.7.42 → arkitekt_next-0.7.44}/arkitekt_next/cli/commands/kabinet/utils.py +0 -0
- {arkitekt_next-0.7.42 → arkitekt_next-0.7.44}/arkitekt_next/cli/commands/kabinet/validate.py +0 -0
- {arkitekt_next-0.7.42 → arkitekt_next-0.7.44}/arkitekt_next/cli/commands/kabinet/wizard.py +0 -0
- {arkitekt_next-0.7.42 → arkitekt_next-0.7.44}/arkitekt_next/cli/commands/manifest/__init__.py +0 -0
- {arkitekt_next-0.7.42 → arkitekt_next-0.7.44}/arkitekt_next/cli/commands/manifest/inspect.py +0 -0
- {arkitekt_next-0.7.42 → arkitekt_next-0.7.44}/arkitekt_next/cli/commands/manifest/main.py +0 -0
- {arkitekt_next-0.7.42 → arkitekt_next-0.7.44}/arkitekt_next/cli/commands/manifest/scopes.py +0 -0
- {arkitekt_next-0.7.42 → arkitekt_next-0.7.44}/arkitekt_next/cli/commands/manifest/version.py +0 -0
- {arkitekt_next-0.7.42 → arkitekt_next-0.7.44}/arkitekt_next/cli/commands/manifest/wizard.py +0 -0
- {arkitekt_next-0.7.42 → arkitekt_next-0.7.44}/arkitekt_next/cli/commands/run/__init__.py +0 -0
- {arkitekt_next-0.7.42 → arkitekt_next-0.7.44}/arkitekt_next/cli/commands/run/dev.py +0 -0
- {arkitekt_next-0.7.42 → arkitekt_next-0.7.44}/arkitekt_next/cli/commands/run/main.py +0 -0
- {arkitekt_next-0.7.42 → arkitekt_next-0.7.44}/arkitekt_next/cli/commands/run/utils.py +0 -0
- {arkitekt_next-0.7.42 → arkitekt_next-0.7.44}/arkitekt_next/cli/configs/base.yaml +0 -0
- {arkitekt_next-0.7.42 → arkitekt_next-0.7.44}/arkitekt_next/cli/constants.py +0 -0
- {arkitekt_next-0.7.42 → arkitekt_next-0.7.44}/arkitekt_next/cli/dockerfiles/vanilla.dockerfile +0 -0
- {arkitekt_next-0.7.42 → arkitekt_next-0.7.44}/arkitekt_next/cli/errors.py +0 -0
- {arkitekt_next-0.7.42 → arkitekt_next-0.7.44}/arkitekt_next/cli/inspect.py +0 -0
- {arkitekt_next-0.7.42 → arkitekt_next-0.7.44}/arkitekt_next/cli/io.py +0 -0
- {arkitekt_next-0.7.42 → arkitekt_next-0.7.44}/arkitekt_next/cli/main.py +0 -0
- {arkitekt_next-0.7.42 → arkitekt_next-0.7.44}/arkitekt_next/cli/options.py +0 -0
- {arkitekt_next-0.7.42 → arkitekt_next-0.7.44}/arkitekt_next/cli/schemas/fluss.schema.graphql +0 -0
- {arkitekt_next-0.7.42 → arkitekt_next-0.7.44}/arkitekt_next/cli/schemas/gucker.schema.graphql +0 -0
- {arkitekt_next-0.7.42 → arkitekt_next-0.7.44}/arkitekt_next/cli/schemas/kabinet.schema.graphql +0 -0
- {arkitekt_next-0.7.42 → arkitekt_next-0.7.44}/arkitekt_next/cli/schemas/kluster.schema.graphql +0 -0
- {arkitekt_next-0.7.42 → arkitekt_next-0.7.44}/arkitekt_next/cli/schemas/konviktion.schema.graphql +0 -0
- {arkitekt_next-0.7.42 → arkitekt_next-0.7.44}/arkitekt_next/cli/schemas/kuay.schema.graphql +0 -0
- {arkitekt_next-0.7.42 → arkitekt_next-0.7.44}/arkitekt_next/cli/schemas/mikro.schema.graphql +0 -0
- {arkitekt_next-0.7.42 → arkitekt_next-0.7.44}/arkitekt_next/cli/schemas/mikro_next.schema.graphql +0 -0
- {arkitekt_next-0.7.42 → arkitekt_next-0.7.44}/arkitekt_next/cli/schemas/napari.schema.graphql +0 -0
- {arkitekt_next-0.7.42 → arkitekt_next-0.7.44}/arkitekt_next/cli/schemas/omero_ark.schema.graphql +0 -0
- {arkitekt_next-0.7.42 → arkitekt_next-0.7.44}/arkitekt_next/cli/schemas/port.schema.graphql +0 -0
- {arkitekt_next-0.7.42 → arkitekt_next-0.7.44}/arkitekt_next/cli/schemas/rekuest.schema.graphql +0 -0
- {arkitekt_next-0.7.42 → arkitekt_next-0.7.44}/arkitekt_next/cli/schemas/rekuest_next.schema.graphql +0 -0
- {arkitekt_next-0.7.42 → arkitekt_next-0.7.44}/arkitekt_next/cli/schemas/unlok.schema.graphql +0 -0
- {arkitekt_next-0.7.42 → arkitekt_next-0.7.44}/arkitekt_next/cli/templates/filter.py +0 -0
- {arkitekt_next-0.7.42 → arkitekt_next-0.7.44}/arkitekt_next/cli/templates/simple.py +0 -0
- {arkitekt_next-0.7.42 → arkitekt_next-0.7.44}/arkitekt_next/cli/texts.py +0 -0
- {arkitekt_next-0.7.42 → arkitekt_next-0.7.44}/arkitekt_next/cli/types.py +0 -0
- {arkitekt_next-0.7.42 → arkitekt_next-0.7.44}/arkitekt_next/cli/ui.py +0 -0
- {arkitekt_next-0.7.42 → arkitekt_next-0.7.44}/arkitekt_next/cli/utils.py +0 -0
- {arkitekt_next-0.7.42 → arkitekt_next-0.7.44}/arkitekt_next/cli/validators.py +0 -0
- {arkitekt_next-0.7.42 → arkitekt_next-0.7.44}/arkitekt_next/cli/vars.py +0 -0
- {arkitekt_next-0.7.42 → arkitekt_next-0.7.44}/arkitekt_next/cli/versions/v1.yaml +0 -0
- {arkitekt_next-0.7.42 → arkitekt_next-0.7.44}/arkitekt_next/constants.py +0 -0
- {arkitekt_next-0.7.42 → arkitekt_next-0.7.44}/arkitekt_next/model.py +0 -0
- {arkitekt_next-0.7.42 → arkitekt_next-0.7.44}/arkitekt_next/qt/__init__.py +0 -0
- {arkitekt_next-0.7.42 → arkitekt_next-0.7.44}/arkitekt_next/qt/assets/dark/gear.png +0 -0
- {arkitekt_next-0.7.42 → arkitekt_next-0.7.44}/arkitekt_next/qt/assets/dark/green pulse.gif +0 -0
- {arkitekt_next-0.7.42 → arkitekt_next-0.7.44}/arkitekt_next/qt/assets/dark/orange pulse.gif +0 -0
- {arkitekt_next-0.7.42 → arkitekt_next-0.7.44}/arkitekt_next/qt/assets/dark/pink pulse.gif +0 -0
- {arkitekt_next-0.7.42 → arkitekt_next-0.7.44}/arkitekt_next/qt/assets/dark/red pulse.gif +0 -0
- {arkitekt_next-0.7.42 → arkitekt_next-0.7.44}/arkitekt_next/qt/assets/light/gear.png +0 -0
- {arkitekt_next-0.7.42 → arkitekt_next-0.7.44}/arkitekt_next/qt/assets/light/green pulse.gif +0 -0
- {arkitekt_next-0.7.42 → arkitekt_next-0.7.44}/arkitekt_next/qt/assets/light/orange pulse.gif +0 -0
- {arkitekt_next-0.7.42 → arkitekt_next-0.7.44}/arkitekt_next/qt/assets/light/pink pulse.gif +0 -0
- {arkitekt_next-0.7.42 → arkitekt_next-0.7.44}/arkitekt_next/qt/assets/light/red pulse.gif +0 -0
- {arkitekt_next-0.7.42 → arkitekt_next-0.7.44}/arkitekt_next/qt/builders.py +0 -0
- {arkitekt_next-0.7.42 → arkitekt_next-0.7.44}/arkitekt_next/qt/magic_bar.py +0 -0
- {arkitekt_next-0.7.42 → arkitekt_next-0.7.44}/arkitekt_next/qt/types.py +0 -0
- {arkitekt_next-0.7.42 → arkitekt_next-0.7.44}/arkitekt_next/qt/utils.py +0 -0
- {arkitekt_next-0.7.42 → arkitekt_next-0.7.44}/arkitekt_next/service_registry.py +0 -0
- {arkitekt_next-0.7.42 → arkitekt_next-0.7.44}/arkitekt_next/tqdm.py +0 -0
- {arkitekt_next-0.7.42 → arkitekt_next-0.7.44}/arkitekt_next/utils.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
from blok import blok, InitContext, Option
|
|
2
2
|
from blok.tree import YamlFile, Repo
|
|
3
|
-
from typing import Protocol
|
|
3
|
+
from typing import Any, Protocol
|
|
4
4
|
from blok.utils import check_protocol_compliance
|
|
5
5
|
from dataclasses import asdict
|
|
6
6
|
from arkitekt_next.bloks.services import (
|
|
@@ -50,9 +50,11 @@ def create_default_service_dependencies():
|
|
|
50
50
|
def create_default_service_yaml(
|
|
51
51
|
init: InitContext,
|
|
52
52
|
self: DefaultService,
|
|
53
|
+
additional_keys: dict[str, Any] = None,
|
|
53
54
|
) -> YamlFile:
|
|
54
55
|
check_protocol_compliance(self, DefaultService)
|
|
55
56
|
deps = init.dependencies
|
|
57
|
+
additional_keys = additional_keys or {}
|
|
56
58
|
|
|
57
59
|
init.get_service(LokService).register_scopes(self.scopes)
|
|
58
60
|
|
|
@@ -91,6 +93,7 @@ def create_default_service_yaml(
|
|
|
91
93
|
"scopes": self.scopes,
|
|
92
94
|
"force_script_name": path_name,
|
|
93
95
|
"csrf_trusted_origins": csrf_trusted_origins,
|
|
96
|
+
**additional_keys,
|
|
94
97
|
}
|
|
95
98
|
)
|
|
96
99
|
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
from arkitekt_next.bloks.services.name import NameService
|
|
1
2
|
from blok import blok, InitContext, ExecutionContext, Option
|
|
2
3
|
from blok.tree import YamlFile, Repo
|
|
3
4
|
from pydantic import BaseModel
|
|
@@ -54,12 +55,16 @@ class GatewayBlok:
|
|
|
54
55
|
def get_http_port(self):
|
|
55
56
|
return 80
|
|
56
57
|
|
|
57
|
-
def
|
|
58
|
+
def retrieve_gateway_network(self):
|
|
59
|
+
return self.gateway_network
|
|
60
|
+
|
|
61
|
+
def preflight(self, init: InitContext, dns: DnsService, name: NameService):
|
|
58
62
|
for key, value in init.kwargs.items():
|
|
59
63
|
setattr(self, key, value)
|
|
60
64
|
|
|
61
65
|
self.public_ips = dns.get_dns_result().ip_addresses
|
|
62
66
|
self.public_hosts = dns.get_dns_result().hostnames
|
|
67
|
+
self.gateway_network = name.retrieve_name().replace("-", "_")
|
|
63
68
|
|
|
64
69
|
def build(
|
|
65
70
|
self,
|
|
@@ -163,6 +168,7 @@ class GatewayBlok:
|
|
|
163
168
|
]
|
|
164
169
|
+ exposed_ports_strings,
|
|
165
170
|
"depends_on": caddy_depends_on,
|
|
171
|
+
"networks": [self.gateway_network, "default"],
|
|
166
172
|
}
|
|
167
173
|
|
|
168
174
|
context.docker_compose.set_nested("services", "caddy", caddy_container)
|
|
@@ -178,6 +184,11 @@ class GatewayBlok:
|
|
|
178
184
|
}
|
|
179
185
|
|
|
180
186
|
context.docker_compose.set_nested("services", "certer", certer_container)
|
|
187
|
+
context.docker_compose.set_nested(
|
|
188
|
+
"networks",
|
|
189
|
+
self.gateway_network,
|
|
190
|
+
{"driver": "bridge", "name": self.gateway_network},
|
|
191
|
+
)
|
|
181
192
|
|
|
182
193
|
def expose(self, path_name: str, port: int, host: str, strip_prefix: bool = False):
|
|
183
194
|
self.exposed_hosts[path_name] = ExposedHost(
|
|
@@ -13,12 +13,17 @@ from blok.tree import YamlFile, Repo
|
|
|
13
13
|
class InternalDockerBlok:
|
|
14
14
|
def __init__(self) -> None:
|
|
15
15
|
self.host = "internal_docker"
|
|
16
|
-
|
|
17
|
-
self.image = "jhnnsrs/deployer:0.0.1-vanilla"
|
|
18
|
-
self.instance_id = "INTERNAL_DOCKER"
|
|
19
16
|
|
|
17
|
+
self.image = "jhnnsrs/deployer:0.0.8-vanilla"
|
|
18
|
+
self.instance_id = "INTERNAL_DOCKER"
|
|
20
19
|
|
|
21
|
-
def preflight(
|
|
20
|
+
def preflight(
|
|
21
|
+
self,
|
|
22
|
+
init: InitContext,
|
|
23
|
+
gateway: GatewayService,
|
|
24
|
+
lok: LokBlok,
|
|
25
|
+
socket: DockerSocketBlok,
|
|
26
|
+
):
|
|
22
27
|
for key, value in init.kwargs.items():
|
|
23
28
|
setattr(self, key, value)
|
|
24
29
|
|
|
@@ -33,9 +38,9 @@ class InternalDockerBlok:
|
|
|
33
38
|
|
|
34
39
|
self.token = lok.retrieve_token()
|
|
35
40
|
|
|
36
|
-
self.
|
|
37
|
-
|
|
38
|
-
|
|
41
|
+
self.gateway_network = gateway.retrieve_gateway_network()
|
|
42
|
+
|
|
43
|
+
self.command = f"arkitekt-next run prod --redeem-token={self.token} --url http://{self.gateway_host}:{self.gateway_port}"
|
|
39
44
|
|
|
40
45
|
self.initialized = True
|
|
41
46
|
|
|
@@ -52,6 +57,16 @@ class InternalDockerBlok:
|
|
|
52
57
|
"volumes": [f"{self._socket}:/var/run/docker.sock"],
|
|
53
58
|
"environment": {
|
|
54
59
|
"INSTANCE_ID": self.instance_id,
|
|
60
|
+
"ARKITEKT_GATEWAY": f"http://{self.gateway_host}:{self.gateway_port}",
|
|
61
|
+
"ARKITEKT_NETWORK": self.gateway_network,
|
|
62
|
+
},
|
|
63
|
+
"deploy": {
|
|
64
|
+
"restart_policy": {
|
|
65
|
+
"condition": "on-failure",
|
|
66
|
+
"delay": "10s",
|
|
67
|
+
"max_attempts": 10,
|
|
68
|
+
"window": "300s",
|
|
69
|
+
},
|
|
55
70
|
},
|
|
56
71
|
}
|
|
57
72
|
|
|
@@ -68,7 +83,6 @@ class InternalDockerBlok:
|
|
|
68
83
|
help="Should we skip creating this service?",
|
|
69
84
|
default=False,
|
|
70
85
|
type=bool,
|
|
71
|
-
|
|
72
86
|
)
|
|
73
87
|
|
|
74
88
|
return [
|
|
@@ -23,7 +23,7 @@ class KabinetBlok:
|
|
|
23
23
|
self.build_repo = False
|
|
24
24
|
self.buckets = ["media"]
|
|
25
25
|
self.secret_key = secrets.token_hex(16)
|
|
26
|
-
self.ensured_repos = []
|
|
26
|
+
self.ensured_repos = ["jhnnsrs/ome:main", "jhnnsrs/renderer:main"]
|
|
27
27
|
self.image = "jhnnsrs/kabinet:next"
|
|
28
28
|
|
|
29
29
|
def get_builder(self):
|
|
@@ -36,7 +36,9 @@ class KabinetBlok:
|
|
|
36
36
|
for key, value in init.kwargs.items():
|
|
37
37
|
setattr(self, key, value)
|
|
38
38
|
|
|
39
|
-
self.service = create_default_service_yaml(
|
|
39
|
+
self.service = create_default_service_yaml(
|
|
40
|
+
init, self, {"ensured_repos": self.ensured_repos}
|
|
41
|
+
)
|
|
40
42
|
|
|
41
43
|
self.initialized = True
|
|
42
44
|
|
|
@@ -12,6 +12,8 @@ class GatewayService(Protocol):
|
|
|
12
12
|
self, path_name: str, port: int, host: str, strip_prefix: bool = True
|
|
13
13
|
): ...
|
|
14
14
|
|
|
15
|
+
def retrieve_gateway_network(self): ...
|
|
16
|
+
|
|
15
17
|
def expose_mapped(self, path_name: str, port: int, host: str, to_name: str): ...
|
|
16
18
|
|
|
17
19
|
def expose_default(self, port: int, host: str): ...
|
|
@@ -5,6 +5,7 @@ from arkitekt_next.cli.ui import construct_run_panel
|
|
|
5
5
|
from importlib import import_module
|
|
6
6
|
from .utils import import_builder
|
|
7
7
|
from arkitekt_next.constants import DEFAULT_ARKITEKT_URL
|
|
8
|
+
import sys
|
|
8
9
|
|
|
9
10
|
|
|
10
11
|
async def run_app(app):
|
|
@@ -58,4 +59,8 @@ def prod(ctx, entrypoint=None, builder=None, **builder_kwargs):
|
|
|
58
59
|
panel = construct_run_panel(app)
|
|
59
60
|
console.print(panel)
|
|
60
61
|
|
|
61
|
-
|
|
62
|
+
try:
|
|
63
|
+
asyncio.run(run_app(app))
|
|
64
|
+
except Exception as e:
|
|
65
|
+
console.print_exception()
|
|
66
|
+
sys.exit(1)
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{arkitekt_next-0.7.42 → arkitekt_next-0.7.44}/arkitekt_next/cli/commands/inspect/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
{arkitekt_next-0.7.42 → arkitekt_next-0.7.44}/arkitekt_next/cli/commands/inspect/requirements.py
RENAMED
|
File without changes
|
{arkitekt_next-0.7.42 → arkitekt_next-0.7.44}/arkitekt_next/cli/commands/inspect/templates.py
RENAMED
|
File without changes
|
{arkitekt_next-0.7.42 → arkitekt_next-0.7.44}/arkitekt_next/cli/commands/inspect/variables.py
RENAMED
|
File without changes
|
{arkitekt_next-0.7.42 → arkitekt_next-0.7.44}/arkitekt_next/cli/commands/kabinet/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{arkitekt_next-0.7.42 → arkitekt_next-0.7.44}/arkitekt_next/cli/commands/kabinet/validate.py
RENAMED
|
File without changes
|
|
File without changes
|
{arkitekt_next-0.7.42 → arkitekt_next-0.7.44}/arkitekt_next/cli/commands/manifest/__init__.py
RENAMED
|
File without changes
|
{arkitekt_next-0.7.42 → arkitekt_next-0.7.44}/arkitekt_next/cli/commands/manifest/inspect.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{arkitekt_next-0.7.42 → arkitekt_next-0.7.44}/arkitekt_next/cli/commands/manifest/version.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{arkitekt_next-0.7.42 → arkitekt_next-0.7.44}/arkitekt_next/cli/dockerfiles/vanilla.dockerfile
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{arkitekt_next-0.7.42 → arkitekt_next-0.7.44}/arkitekt_next/cli/schemas/fluss.schema.graphql
RENAMED
|
File without changes
|
{arkitekt_next-0.7.42 → arkitekt_next-0.7.44}/arkitekt_next/cli/schemas/gucker.schema.graphql
RENAMED
|
File without changes
|
{arkitekt_next-0.7.42 → arkitekt_next-0.7.44}/arkitekt_next/cli/schemas/kabinet.schema.graphql
RENAMED
|
File without changes
|
{arkitekt_next-0.7.42 → arkitekt_next-0.7.44}/arkitekt_next/cli/schemas/kluster.schema.graphql
RENAMED
|
File without changes
|
{arkitekt_next-0.7.42 → arkitekt_next-0.7.44}/arkitekt_next/cli/schemas/konviktion.schema.graphql
RENAMED
|
File without changes
|
|
File without changes
|
{arkitekt_next-0.7.42 → arkitekt_next-0.7.44}/arkitekt_next/cli/schemas/mikro.schema.graphql
RENAMED
|
File without changes
|
{arkitekt_next-0.7.42 → arkitekt_next-0.7.44}/arkitekt_next/cli/schemas/mikro_next.schema.graphql
RENAMED
|
File without changes
|
{arkitekt_next-0.7.42 → arkitekt_next-0.7.44}/arkitekt_next/cli/schemas/napari.schema.graphql
RENAMED
|
File without changes
|
{arkitekt_next-0.7.42 → arkitekt_next-0.7.44}/arkitekt_next/cli/schemas/omero_ark.schema.graphql
RENAMED
|
File without changes
|
|
File without changes
|
{arkitekt_next-0.7.42 → arkitekt_next-0.7.44}/arkitekt_next/cli/schemas/rekuest.schema.graphql
RENAMED
|
File without changes
|
{arkitekt_next-0.7.42 → arkitekt_next-0.7.44}/arkitekt_next/cli/schemas/rekuest_next.schema.graphql
RENAMED
|
File without changes
|
{arkitekt_next-0.7.42 → arkitekt_next-0.7.44}/arkitekt_next/cli/schemas/unlok.schema.graphql
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{arkitekt_next-0.7.42 → arkitekt_next-0.7.44}/arkitekt_next/qt/assets/light/orange pulse.gif
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|