arkitekt-next 0.7.42__py3-none-any.whl → 0.7.43__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.
Potentially problematic release.
This version of arkitekt-next might be problematic. Click here for more details.
- arkitekt_next/bloks/gateway.py +2 -0
- arkitekt_next/bloks/internal_docker.py +20 -8
- arkitekt_next/cli/commands/run/prod.py +6 -1
- {arkitekt_next-0.7.42.dist-info → arkitekt_next-0.7.43.dist-info}/METADATA +1 -1
- {arkitekt_next-0.7.42.dist-info → arkitekt_next-0.7.43.dist-info}/RECORD +8 -8
- {arkitekt_next-0.7.42.dist-info → arkitekt_next-0.7.43.dist-info}/LICENSE +0 -0
- {arkitekt_next-0.7.42.dist-info → arkitekt_next-0.7.43.dist-info}/WHEEL +0 -0
- {arkitekt_next-0.7.42.dist-info → arkitekt_next-0.7.43.dist-info}/entry_points.txt +0 -0
arkitekt_next/bloks/gateway.py
CHANGED
|
@@ -163,6 +163,7 @@ class GatewayBlok:
|
|
|
163
163
|
]
|
|
164
164
|
+ exposed_ports_strings,
|
|
165
165
|
"depends_on": caddy_depends_on,
|
|
166
|
+
"networks": ["gateway", "default"],
|
|
166
167
|
}
|
|
167
168
|
|
|
168
169
|
context.docker_compose.set_nested("services", "caddy", caddy_container)
|
|
@@ -178,6 +179,7 @@ class GatewayBlok:
|
|
|
178
179
|
}
|
|
179
180
|
|
|
180
181
|
context.docker_compose.set_nested("services", "certer", certer_container)
|
|
182
|
+
context.docker_compose.set_nested("networks", "gateway", {"driver": "bridge"})
|
|
181
183
|
|
|
182
184
|
def expose(self, path_name: str, port: int, host: str, strip_prefix: bool = False):
|
|
183
185
|
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.2-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,7 @@ class InternalDockerBlok:
|
|
|
33
38
|
|
|
34
39
|
self.token = lok.retrieve_token()
|
|
35
40
|
|
|
36
|
-
self.command =
|
|
37
|
-
f"arkitekt-next run prod --redeem-token={self.token} --url http://{self.gateway_host}:{self.gateway_port}"
|
|
38
|
-
)
|
|
41
|
+
self.command = f"arkitekt-next run prod --redeem-token={self.token} --url http://{self.gateway_host}:{self.gateway_port}"
|
|
39
42
|
|
|
40
43
|
self.initialized = True
|
|
41
44
|
|
|
@@ -52,6 +55,16 @@ class InternalDockerBlok:
|
|
|
52
55
|
"volumes": [f"{self._socket}:/var/run/docker.sock"],
|
|
53
56
|
"environment": {
|
|
54
57
|
"INSTANCE_ID": self.instance_id,
|
|
58
|
+
"ARKITEKT_GATEWAY": f"http://{self.gateway_host}:{self.gateway_port}",
|
|
59
|
+
"ARKITEKT_NETWORK": "gateway",
|
|
60
|
+
},
|
|
61
|
+
"deploy": {
|
|
62
|
+
"restart_policy": {
|
|
63
|
+
"condition": "on-failure",
|
|
64
|
+
"delay": "10s",
|
|
65
|
+
"max_attempts": 3,
|
|
66
|
+
"window": "120s",
|
|
67
|
+
},
|
|
55
68
|
},
|
|
56
69
|
}
|
|
57
70
|
|
|
@@ -68,7 +81,6 @@ class InternalDockerBlok:
|
|
|
68
81
|
help="Should we skip creating this service?",
|
|
69
82
|
default=False,
|
|
70
83
|
type=bool,
|
|
71
|
-
|
|
72
84
|
)
|
|
73
85
|
|
|
74
86
|
return [
|
|
@@ -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)
|
|
@@ -18,8 +18,8 @@ arkitekt_next/bloks/arkitekt.py,sha256=1h2fyJK-TcuiOVFyE7iO2S1jwLv52APsQpfxddmHW
|
|
|
18
18
|
arkitekt_next/bloks/config.py,sha256=SqJg9kB0AQ62b_WpIKgJ8Jpcqpc-AKN7gdEj87O-UGY,1268
|
|
19
19
|
arkitekt_next/bloks/fluss.py,sha256=07l8mdS35JyuEthv4xH9qpCCNepMkJGm02PxEakQBD0,2671
|
|
20
20
|
arkitekt_next/bloks/funcs.py,sha256=z1b58hENZfTfXYEqg_pP_2hm3ogDyu9_Ek8wk1P5XkA,3633
|
|
21
|
-
arkitekt_next/bloks/gateway.py,sha256=
|
|
22
|
-
arkitekt_next/bloks/internal_docker.py,sha256=
|
|
21
|
+
arkitekt_next/bloks/gateway.py,sha256=D3qP2LuMVQ8gQgR33stSXnk_BxJprrDh9gfgiteblT4,6369
|
|
22
|
+
arkitekt_next/bloks/internal_docker.py,sha256=ETxPA0i_Wc0DTEfy7t49LOI6tU6RP5tkOnVFEBsCgP0,2812
|
|
23
23
|
arkitekt_next/bloks/kabinet.py,sha256=RMetXRKFRO9z_eGPXyzGCHTo9HJlcPaew2lfCltGoMg,2937
|
|
24
24
|
arkitekt_next/bloks/livekit.py,sha256=yhre3PkIQwKGdGPFC-DhTID3rIbRQMts_UsAX9tw6-A,2561
|
|
25
25
|
arkitekt_next/bloks/lok.py,sha256=MGXKg1NRvydA-wlncBQJwO2GfaQLl2shVo0g45r9J_8,12532
|
|
@@ -82,7 +82,7 @@ arkitekt_next/cli/commands/manifest/wizard.py,sha256=a8rIHgtmKuw-L4E3eO3kXwXv0TM
|
|
|
82
82
|
arkitekt_next/cli/commands/run/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
83
83
|
arkitekt_next/cli/commands/run/dev.py,sha256=mobsKX155O6NXGzLK-c4_l2RN4vlM4-1lj2gQaX9HeA,10033
|
|
84
84
|
arkitekt_next/cli/commands/run/main.py,sha256=0bNO3DqwbZ4ddMsDWbCGmlPD6Cs3Jlg4yh2-zilsEbY,552
|
|
85
|
-
arkitekt_next/cli/commands/run/prod.py,sha256=
|
|
85
|
+
arkitekt_next/cli/commands/run/prod.py,sha256=EqDMa_eYNaffHZOBHGQEGNJVKdq8NHCgfoqK8yH63B4,1637
|
|
86
86
|
arkitekt_next/cli/commands/run/utils.py,sha256=zH-MNNEfKgyOYQvwP6Ph8KUHVqH48fw3ZI6tiQ9unwQ,325
|
|
87
87
|
arkitekt_next/cli/configs/base.yaml,sha256=9IJ7B4Fq3swHsLUbKn1MlhhzJKqDI1wnR5PAG_VKs8A,30097
|
|
88
88
|
arkitekt_next/cli/constants.py,sha256=xHG2lfXw_4atx9B4ICAY45fbNbQN0UQAfdxZQbduz_w,1411
|
|
@@ -135,8 +135,8 @@ arkitekt_next/qt/utils.py,sha256=MgBPtPmCSBkIuATov3UgREESwxAHh77lWNNxyE7Qs48,773
|
|
|
135
135
|
arkitekt_next/service_registry.py,sha256=pczUuP_Nve7OYwB7-oDBLIw6bkjZPnzL3xFca5TF1io,3405
|
|
136
136
|
arkitekt_next/tqdm.py,sha256=DlrxPluHao7TvW-Cqgt0UokRS-fM2_ZNiWiddqvCqCc,1488
|
|
137
137
|
arkitekt_next/utils.py,sha256=gmKWy9M51vimohmmaoIpAJ0CaB22TFP0w3JszRrwiak,2379
|
|
138
|
-
arkitekt_next-0.7.
|
|
139
|
-
arkitekt_next-0.7.
|
|
140
|
-
arkitekt_next-0.7.
|
|
141
|
-
arkitekt_next-0.7.
|
|
142
|
-
arkitekt_next-0.7.
|
|
138
|
+
arkitekt_next-0.7.43.dist-info/LICENSE,sha256=YZ2oRjC248t-GpoEyw7J13vwKYNG6zhYMaEAix6EzF0,1089
|
|
139
|
+
arkitekt_next-0.7.43.dist-info/METADATA,sha256=pTmq2hp1u2N5nkyC85ToBuYTS7YzKCJHEFNeY0XgkAI,5973
|
|
140
|
+
arkitekt_next-0.7.43.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
|
141
|
+
arkitekt_next-0.7.43.dist-info/entry_points.txt,sha256=-hxikQx4xZ6TiOnWVDOlTN_kcAISgGFvTHXIchsCHSc,60
|
|
142
|
+
arkitekt_next-0.7.43.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|