Skip to content

Commit

Permalink
fix: better defaults to work without sudo
Browse files Browse the repository at this point in the history
Signed-off-by: Luca Di Maio <[email protected]>
  • Loading branch information
89luca89 committed Jun 8, 2023
1 parent f16d5e3 commit 10395fe
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions hack/provider/provider.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ optionGroups:
name: "SSH options"
defaultVisible: false
- options:
- DOCKER_PATH
- AGENT_PATH
- INACTIVITY_TIMEOUT
- INJECT_DOCKER_CREDENTIALS
Expand All @@ -19,9 +20,12 @@ optionGroups:
options:
INACTIVITY_TIMEOUT:
description: "If defined, will automatically stop the container after the inactivity period. Example: 10m"
DOCKER_PATH:
description: The path where to find the docker binary.
default: docker
AGENT_PATH:
description: The path where to inject the DevPod agent to.
default: /opt/devpod/agent
default: /tmp/devpod/agent
INJECT_GIT_CREDENTIALS:
description: "If DevPod should inject git credentials into the remote host."
default: "true"
Expand All @@ -41,12 +45,15 @@ agent:
injectGitCredentials: ${INJECT_GIT_CREDENTIALS}
injectDockerCredentials: ${INJECT_DOCKER_CREDENTIALS}
path: ${AGENT_PATH}
docker:
path: ${DOCKER_PATH}
install: false
exec:
init: |
ssh -oStrictHostKeyChecking=no \
-p ${PORT} \
${EXTRA_FLAGS} \
"${HOST}"
"${HOST}"
if [ $? != 0 ]; then
>&2 echo "Unexpected non-zero ssh exit code"
Expand Down

0 comments on commit 10395fe

Please sign in to comment.