kloudlite / kl

Kloudlite CLI Client
GNU Affero General Public License v3.0
5 stars 1 forks source link

feat: adds docker socket proxy to host docker socket #190

Closed nxtcoder36 closed 1 week ago

nxtcoder36 commented 1 week ago

Summary by Sourcery

Add a Docker socket proxy to resolve permissions issues with the host's Docker socket and pin the base Ubuntu image to version 24.04.

New Features:

Enhancements:

sourcery-ai[bot] commented 1 week ago

Reviewer's Guide by Sourcery

This pull request introduces a Docker socket proxy to resolve permissions issues with the host's Docker socket, particularly for immutable file systems like Fedora Silverblue. It also includes changes to the Docker image build process and updates the Ubuntu base image to version 24.04.

No diagrams generated as the changes look simple and do not need a visual representation.

File-Level Changes

Change Details Files
Implement Docker socket proxy
  • Add a new script 'docker-socket.sh' to handle Docker socket proxying
  • Modify entrypoint.sh to run the new Docker socket proxy script
  • Update Docker socket mount path in utils.go
klbox-docker/docker-socket.sh
klbox-docker/entrypoint.sh
cmd/box/boxpkg/utils.go
Update Docker image build process
  • Add a 'tag' variable with a default value of 'v1.0.0-nightly'
  • Modify Docker build command to use the new 'tag' variable
klbox-docker/Taskfile.yml

Tips and commands #### Interacting with Sourcery - **Trigger a new review:** Comment `@sourcery-ai review` on the pull request. - **Continue discussions:** Reply directly to Sourcery's review comments. - **Generate a GitHub issue from a review comment:** Ask Sourcery to create an issue from a review comment by replying to it. - **Generate a pull request title:** Write `@sourcery-ai` anywhere in the pull request title to generate a title at any time. - **Generate a pull request summary:** Write `@sourcery-ai summary` anywhere in the pull request body to generate a PR summary at any time. You can also use this command to specify where the summary should be inserted. #### Customizing Your Experience Access your [dashboard](https://app.sourcery.ai) to: - Enable or disable review features such as the Sourcery-generated pull request summary, the reviewer's guide, and others. - Change the review language. - Add, remove or edit custom review instructions. - Adjust other review settings. #### Getting Help - [Contact our support team](mailto:support@sourcery.ai) for questions or feedback. - Visit our [documentation](https://docs.sourcery.ai) for detailed guides and information. - Keep in touch with the Sourcery team by following us on [X/Twitter](https://x.com/SourceryAI), [LinkedIn](https://www.linkedin.com/company/sourcery-ai/) or [GitHub](https://github.com/sourcery-ai).