merlin
01/19/2023, 12:43 AMNate
01/19/2023, 1:10 AMmerlin
01/19/2023, 1:25 AMZanie
01/19/2023, 1:28 AMDockerContainer
and Process
infrastructure abstractions that we use for flow runs are totally valid for this purposepython -c 'from prefect.infrastructure import DockerContainer; DockerContainer(command=["julia", "--version"], image="julia:latest").run()'
19:29:24.703 | INFO | prefect.infrastructure.docker-container - Pulling image 'julia:latest'...
19:29:25.406 | INFO | prefect.infrastructure.docker-container - Creating Docker container with auto-generated name...
19:29:25.473 | INFO | prefect.infrastructure.docker-container - Docker container 'fervent_moore' has status 'created'
19:29:25.879 | INFO | prefect.infrastructure.docker-container - Docker container 'fervent_moore' has status 'exited'
julia version 1.8.5
19:29:25.911 | INFO | prefect.infrastructure.docker-container - Docker container 'fervent_moore' has status 'exited'
run
into start
and wait
methods as well which would make a context manager trivial.Nate
01/19/2023, 1:32 AMmerlin
01/19/2023, 11:16 PM