Conversation
crazy-max
left a comment
There was a problem hiding this comment.
Thanks for your contrib!
See my comments and also you forgot to run docker buildx bake pre-checkin: https://github.com/docker/setup-docker-action/blob/master/.github/CONTRIBUTING.md#submitting-a-pull-request
When addressed please squash your commits.
yarn.lock
Outdated
| # THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY. | ||
| # yarn lockfile v1 |
There was a problem hiding this comment.
Seems a tool on your machine updated the yarn lock, please remove these changes.
src/main.ts
Outdated
| async () => { | ||
| const input: context.Inputs = context.getInputs(); | ||
| const runDir = path.join(os.homedir(), `setup-docker-action-${crypto.randomUUID().slice(0, 8)}`); | ||
| const runDir = input.runtimeBasedir || path.join(os.homedir(), `setup-docker-action-${crypto.randomUUID().slice(0, 8)}`); |
There was a problem hiding this comment.
Need to keep random dir for multiple setup: #141 (comment)
| const runDir = input.runtimeBasedir || path.join(os.homedir(), `setup-docker-action-${crypto.randomUUID().slice(0, 8)}`); | |
| const runBasedir = input.runtimeBasedir || path.join(os.homedir(), `setup-docker-action`); | |
| const runDir = path.join(runBasedir, `run-${crypto.randomUUID().slice(0, 8)}`); |
|
sorry let me run bake command and get back. |
Yes and also squash your commits, thanks! |
README.md
Outdated
| | `rootless` | Bool | `false` | Start daemon in rootless mode | | ||
|
|
||
| | `rootless` | Bool | `false` | Start daemon in rootless mode | | ||
| | `runtime-basedir` | String | `false` | Docker runtime base directory |
There was a problem hiding this comment.
| | `runtime-basedir` | String | `false` | Docker runtime base directory | |
| | `runtime-basedir` | String | `<home>/setup-docker-action` | Docker runtime base directory |
8e15b57 to
e416dff
Compare
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
e416dff to
28ef634
Compare
crazy-max
left a comment
There was a problem hiding this comment.
LGTM thanks
Pushed extra commit to move default to context
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
3105473 to
a4da7e5
Compare
closes #141
Adding Input for
runtime-basedirto fixXDG_RUNTIME_DIR needs to be set and writableerror.Updated the docs for the same.