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
(cleanup {:keys [cleanup?]})
Deletes files after container job has finished
Deletes files after container job has finished
Creates a container/end
event, specifically for podman containers. This is used
as an intermediate step to save artifacts.
Creates a `container/end` event, specifically for podman containers. This is used as an intermediate step to save artifacts.
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.
(prepare-child-cmd ctx)
Prepares podman command to execute as child process
Prepares podman command to execute as child process
Interceptor that removes the job from the state, for cleanup
Interceptor that removes the job from the state, for cleanup
Terminates if the event job is not present in the state
Terminates if the event job is not 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