10000 Run Glint within Docker by johnnyfreeman · Pull Request #1 · johnnyfreeman/glint · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Run Glint within Docker #1

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

Merged
merged 4 commits into from
Dec 2, 2024
Merged

Run Glint within Docker #1

merged 4 commits into from
Dec 2, 2024

Conversation

johnnyfreeman
Copy link
Owner
@johnnyfreeman johnnyfreeman commented Dec 1, 2024

This pull request adds support for running Glint inside a Docker container. It introduces a Dockerfile that allows users to easily build and run Glint without needing to install Rust, Git, or other dependencies locally.

Key Changes:

  • Added a multi-stage Dockerfile for Glint.
    • The builder stage uses the official Rust image to compile Glint with a release profile.
    • The runtime stage uses Alpine Linux to provide a lightweight runtime environment for Glint.
  • Added configuration volume support to allow users to mount local configuration files.
  • Defined an entrypoint to run Glint directly, making it convenient for users to execute commands.

Usage Instructions:
To build the Docker image for Glint, run the following command:

docker build -t glint .

To run Glint within Docker:

docker run --rm -v /path/to/your/config:/glint glint [OPTIONS] <COLLECTION> [REQUEST]

This allows users to run Glint without installing Rust or other dependencies, simplifying the usage for those who prefer containerized tools.

Why this is useful:

  • Simplifies setup for users who do not wish to install Rust or manage dependencies manually.
  • Provides a consistent environment for running Glint, reducing compatibility issues.

Todos:

  • dockerfile
  • docs
  • (optional) github action to build/push image to container registry

@johnnyfreeman johnnyfreeman merged commit 87f4d3f into main Dec 2, 2024
@johnnyfreeman johnnyfreeman deleted the feature-docker branch December 2, 2024 03:06
johnnyfreeman added a commit that referenced this pull request Dec 9, 2024
* updated docs

* Run Glint within Docker (#1)

* dockerfile used to build glint image

* updated README

* oops, forgot this part of the README

* replaced header of README

* Added screenshot to README

* better support for json/form body types

* oops, forgot to commit an updated example

* Resolve dependencies from response header

* updated examples and docs with the new serialization changes

* updated logging levels

* added flags for toggling output and styling (#4)

* updated docs

* CLI help descriptions

* you can now mask output using a regex pattern and replacement string
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.

1 participant
0