Skip to content
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

feat: add docker-socket-host-path input #862

Merged
merged 3 commits into from
Sep 30, 2024

Conversation

justfalter
Copy link
Contributor

@justfalter justfalter commented Aug 23, 2024

  • Adds docker-socket-host-path input, allowing users to override the location of the docker socket on their host. Defaults to /var/run/docker.sock.

README.md Outdated Show resolved Hide resolved
src/input.ts Outdated
@@ -73,6 +73,10 @@ class Input {
return core.getInput('mount-docker-socket') === 'true';
}

dockerSocketHostPath(): string {
return core.getInput('docker-socket-host-path');
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

validate existence

src/renovate.ts Outdated
Comment on lines 87 to 88
const dockerSocketStat = await fs.stat(this.input.dockerSocketHostPath());
return dockerSocketStat.gid.toString();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

separate PR

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If this gets merged, I'll create a separate PR that leverages the stat done as part of verification to also get the gid.

- Adds `docker-socket-host-path` input, allowing users to override the
  location of the docker socket on their host. Defaults to
  `/var/run/docker.sock`.
@justfalter
Copy link
Contributor Author

Any additional thoughts, @viceice?

README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
@viceice viceice enabled auto-merge (squash) September 30, 2024 10:22
@viceice viceice merged commit c0afe86 into renovatebot:main Sep 30, 2024
5 checks passed
zemnmez-renovate-bot added a commit to zemn-me/monorepo that referenced this pull request Sep 30, 2024
github-merge-queue bot pushed a commit to zemn-me/monorepo that referenced this pull request Sep 30, 2024
zemnmez-renovate-bot added a commit to zemn-me/monorepo that referenced this pull request Sep 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants