-
Notifications
You must be signed in to change notification settings - Fork 10
Add input for runtime basedir #168
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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)}`); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| `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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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-basedir
to fixXDG_RUNTIME_DIR needs to be set and writable
error.Updated the docs for the same.