Skip to content

Commit

Permalink
Merge pull request #40 from docker/slim/backend.sock
Browse files Browse the repository at this point in the history
add backend.sock to prompt startup
  • Loading branch information
ColinMcNeil authored Sep 30, 2024
2 parents f9247c6 + eb77972 commit a690d2e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/utils/promptRunner.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ export const getRunArgs = async (promptRef: string, projectDir: string, username
'-v', 'openai_key:/secret',
'--mount', 'type=volume,source=docker-prompts,target=/prompts',
'-e', 'OPENAI_API_KEY_LOCATION=/secret',
'-v', "/run/host-services/backend.sock:/host-services/docker-desktop-backend.sock",
'-e', "DOCKER_DESKTOP_SOCKET_PATH=/host-services/docker-desktop-backend.sock",
];

const runArgs: string[] = render ? [] : [
Expand Down

0 comments on commit a690d2e

Please sign in to comment.