DEV Community

Cover image for Go lang app containerized in Docker with Chainguard image
Bek Brace
Bek Brace

Posted on

Go lang app containerized in Docker with Chainguard image

Welcome to Books CLI: Securely Search Books Using Chainguard Images

Hey everyone, Amir here! 🎉

I'm excited to introduce my latest project, Books CLI. This command-line application, built in Go, allows you to search for books by your favorite authors directly from your terminal. What sets this tool apart is its use of Chainguard Images to ensure that every search is not only fast but also secure.

Why Chainguard Images?

Security is a top priority in today’s software development landscape. Chainguard Images provide a secure, minimal base that is specifically designed to reduce vulnerabilities in Docker containers. This makes Books CLI not just powerful, but also a safer choice for developers.

Key Features

  • Search by Author: Simply enter an author’s name to retrieve a list of their books.
  • Simple CLI: Easy-to-use interface that requires minimal setup.
  • Immediate Results: Get book results instantly without the need for a GUI.
  • Secure: Runs in Docker containers powered by Chainguard Images for enhanced security.

Getting Started

Make sure you have Go installed on your machine. If not, you can download it from here.

# Clone the repository
git clone https://github.com/yourusername/books-cli.git
cd books-cli

# Build the application using Docker and Chainguard Images
docker build -t books-cli .

# Run the application
docker run books-cli search "Author Name"
Enter fullscreen mode Exit fullscreen mode

Video Tutorial

For a more detailed guide, check out my video tutorial where I cover everything from setting up Go to using Books CLI with Chainguard Images.
This is a great resource for those who prefer to learn visually.

Example Usage

Searching for books by J.K. Rowling
docker run books-cli search "J.K. Rowling"

The output will display a list of books by J.K. Rowling, showcasing the tool's quick and secure functionality.

Contribute

Contributions are welcome! If you have ideas for new features or improvements, please fork the project and submit a pull request.

License

Distributed under the MIT License. See LICENSE for more information.

Contact

Feel free to reach out to me on Twitter - https://x.com/BekBrace

Thank you, and I will see you in the next time.

Top comments (1)

Collapse
 
smythp profile image
Patrick Smyth

Cool use of Chainguard Images! Did you run a scan with grype or trivy? Wondering if we're at 0 CVE with your application.