Skip to content

This repository provides Docker images for the dotenv-linter tool, packaged in two versions: Alpine and BusyBox.

License

Notifications You must be signed in to change notification settings

zavoloklom/dotenv-linter-docker

Repository files navigation

Dotenv Linter (Docker Images with Toolbox)

Latest Version Docker Pulls Conventional Commits

This repository provides Docker images for the dotenv-linter tool, packaged in two versions Alpine and BusyBox:

  • Alpine version: Includes additional utilities git and curl providing more flexibility.
  • BusyBox version: A minimalistic image containing only dotenv-linter and the BusyBox toolkit.

Please note that if you only need dotenv-linter, it's recommended to use the official Docker image - dotenvlinter/dotenv-linter.

Image Tags and Versioning

The Docker images follow the same versioning as the official dotenv-linter releases. They are published using the following tags:

Alpine version

  • zavoloklom/dotenv-linter:VERSION-alpine - where VERSION is the version of the dotenv-linter package.
  • zavoloklom/dotenv-linter:latest-alpine - latest version of the dotenv-linter package.
  • zavoloklom/dotenv-linter:alpine - same as latest-alpine.

BusyBox version

  • zavoloklom/dotenv-linter:VERSION-busybox - where VERSION is the version of the dotenv-linter package.
  • zavoloklom/dotenv-linter:latest-busybox - latest version of the dotenv-linter package.
  • zavoloklom/dotenv-linter:busybox - same as latest-busybox.

New Docker images will be released whenever a new version of dotenv-linter is published.

How to Use

You can use either the Alpine-based or BusyBox-based Docker images to run dotenv-linter. Below are examples of how to pull the images and run dotenv-linter commands inside the container.

Running the Linter with the Alpine Version

  1. Pull the image:

    docker pull zavoloklom/dotenv-linter:3.3.0-alpine
  2. Run the linter:

    To run the dotenv-linter using the Alpine-based image, use the following command:

    docker run --rm -v ${PWD}:/app zavoloklom/dotenv-linter:3.3.0-alpine <COMMAND> <ARGS>

    Replace <COMMAND> and <ARGS> with the appropriate dotenv-linter command and arguments.

    For example, to check the .env file in your current directory:

    docker run --rm -v ${PWD}:/app zavoloklom/dotenv-linter:3.3.0-alpine check .env

    This command mounts the current directory (${PWD}) into /app inside the container and runs dotenv-linter on the .env file.

Running the Linter with the BusyBox Version

  1. Pull the image:

    docker pull zavoloklom/dotenv-linter:3.3.0-busybox
  2. Run the linter:

    For a smaller footprint, use the BusyBox version. The command structure is the same:

    docker run --rm -v ${PWD}:/app zavoloklom/dotenv-linter:3.3.0-busybox check .env

Documentation

For more examples and information on how dotenv-linter works, refer to the official documentation.

License

This project is licensed under the MIT License. See the LICENSE file for more information.

Please refer to original LICENSE for more information about dotenv-linter licensing terms.

About

This repository provides Docker images for the dotenv-linter tool, packaged in two versions: Alpine and BusyBox.

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks