Skip to content

This repository contains the Dockerfile and build script to create a docker image for awscli v2 with jq

Notifications You must be signed in to change notification settings

tankibaj/awscli-jq

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

AWS CLI with jq Docker Image

This repository contains the Dockerfile and build script to create a lightweight, production-ready Docker image for AWS CLI v2 with jq installed. The image is based on Alpine Linux for minimal size and includes necessary dependencies for AWS CLI operations.

Table of Contents

Features

  • Lightweight: Based on Alpine Linux to ensure a minimal footprint.
  • AWS CLI v2: Includes the latest version of AWS CLI v2.
  • jq: Installed for easy manipulation of JSON data.

Usage

Building the Image

To build the Docker image, run the following command:

./build

Running the Container

To run the container interactively:

docker run -it thenaim/awscli-jq:v2.15.30

Dockerfile Details

The Dockerfile uses a multi-stage build approach to ensure a minimal final image size:

  1. Builder Stage:

    • Uses python:3.11-alpine as the base image.
    • Installs necessary build dependencies.
    • Clones the AWS CLI repository and builds it.
    • Removes unnecessary files to reduce the image size.
  2. Final Stage:

    • Uses alpine:3.20 as the base image.
    • Installs runtime dependencies (jq, less, groff).
    • Copies the AWS CLI from the builder stage.
    • Sets the environment variables and entry point.

About

This repository contains the Dockerfile and build script to create a docker image for awscli v2 with jq

Resources

Stars

Watchers

Forks