Mercurial > core / lisp/lib/pod/podman.lisp
changeset 698: |
96958d3eb5b0 |
parent: |
9fa3b9154bb2
|
author: |
Richard Westhaver <ellis@rwest.io> |
date: |
Fri, 04 Oct 2024 22:04:59 -0400 |
permissions: |
-rw-r--r-- |
description: |
fixes |
1 ;;; lib/pod/podman.lisp --- Pod Manager 8 (defvar *podman-exe* (find-exe "podman")) 9 (defvar *buildah-exe* (find-exe "buildah") 10 "Path to the 'buildah' executable. This really isn't useful in our environment.") 12 ;; podman system service --time=0 unix:///tmp/podman.sock (local-socket) 13 ;; podman system service --time=0 tcp://localhost:8888 (inet-socket :stream :tcp) 14 (defun run-podman (&rest args) 15 "Run *PODMAN-EXE* using ARGS." 16 (sb-ext:run-program *podman-exe* args 18 :output *trace-output*)) 20 (defun start-podman-service (addr &optional (protocol :unix) (time 0)) 21 "Start the Libpod API on ADDR over PROTO which is either :TCP or :UNIX." 22 (declare ((member :unix :tcp) protocol)) 23 (run-podman `("system" 25 ,(format nil "~(~a~)://~a" protocol addr) 26 ,(format nil "--time=~a" time))))