Functions for running containers using Podman. We don't use the api here, because it requires a socket, which is not always available. Instead, we invoke the podman command as a child process and communicate with it using the standard i/o streams.
Functions for running containers using Podman. We don't use the api here, because it requires a socket, which is not always available. Instead, we invoke the podman command as a child process and communicate with it using the standard i/o streams.
(add-job-ctx initial-ctx)
Adds the job context to the event context, and adds the job from state. Also updates the build in the context so the checkout dir is the workspace dir.
Adds the job context to the event context, and adds the job from state. Also updates the build in the context so the checkout dir is the workspace dir.
(add-job-dir wd)
Adds the directory for the job files in the event to the context
Adds the directory for the job files in the event to the context
(build-cmd-args {:keys [job sid] base :work-dir sd :script-dir :as opts})
Builds command line args for the podman executable
Builds command line args for the podman executable
Interceptor that terminates when the job in the event is not a container job
Interceptor that terminates when the job in the event is not a container job
The directory where files for this job are put
The directory where files for this job are put
The directory where container output is written to
The directory where container output is written to
The directory where script files are stored
The directory where script files are stored
The directory where the container process is run
The directory where the container process is run
(job-exec {{:keys [job-id sid status result]} :event})
Invoked after the podman container has exited. Posts a job/executed event.
Invoked after the podman container has exited. Posts a job/executed event.
Creates an internal job-executed event, specifically for podman containers. This is used as an intermediate step to save artifacts.
Creates an internal job-executed event, specifically for podman containers. This is used as an intermediate step to save artifacts.
(prepare-child-cmd ctx)
Prepares podman command to execute as child process
Prepares podman command to execute as child process
Terminates if no job is present in the state
Terminates if no job is present in the state
(restore-ws workspace)
Prepares the job working directory by restoring the files from the workspace.
Prepares the job working directory by restoring the files from the workspace.
Saves job to state for future reference
Saves job to state for future reference
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close