We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f8fdae7 commit 4dc4eafCopy full SHA for 4dc4eaf
2 files changed
examples/python-dag/salt.yaml
@@ -4,7 +4,7 @@ paused: false
4
5
schedule:
6
type: "interval"
7
- every_seconds: "5"
+ every_seconds: "30"
8
9
triggers:
10
- type: time
src/salt/builders/py_builder.py
@@ -1,9 +1,7 @@
1
import glob
2
import pathlib
3
import sys
-import subprocess
-import build
import typer
import docker
@@ -38,7 +36,8 @@ def build_pex(pyproject_path: pathlib.Path):
38
36
container_project_dir = "/app"
39
37
40
command = (
41
- f"python -m build {container_project_dir}"
+ f"python -m build {container_project_dir} && "
+ f"pex {container_project_dir}/dist/*.whl -o {container_project_dir}/build/main.pex -m {pyproject_path.name}.main:main"
42
)
43
container = client.containers.run(
44
image="salt:latest",
0 commit comments