Skip to content

Commit

Permalink
Run tools with the docker.sock
Browse files Browse the repository at this point in the history
  • Loading branch information
slimslenderslacks committed Nov 6, 2024
1 parent 8ebb3f2 commit 4312656
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 1 deletion.
20 changes: 20 additions & 0 deletions prompts/examples/dood.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
tools:
- name: docker
description: run any docker command with arguments
parameters:
type: object
properties:
args:
type: string
description: arguments to pass to the docker CLI
container:
image: docker:cli
command:
- "{{args|safe}}"
---

# prompt user

1. run the docker command to figure out which images have been pulled

3 changes: 2 additions & 1 deletion src/docker.clj
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,8 @@
(when host-dir {:HostConfig
{:Binds
(concat [(format "%s:/project:rw" host-dir)
"docker-lsp:/docker-lsp"]
"docker-lsp:/docker-lsp"
"/var/run/docker.sock:/var/run/docker.sock"]
(when thread-id [(format "%s:/thread:rw" thread-id)]))}
:WorkingDir "/project"})
(when entrypoint {:Entrypoint entrypoint})
Expand Down

0 comments on commit 4312656

Please sign in to comment.