Sign inSign up

labocbz/devops-linters

By labocbz

Updated 3 days ago

Labo-CBZ Docker image: devops/linters

Image
Integration & delivery
Developer tools
0

10K+

labocbz/devops-linters repository overview

Labo-CBZ Docker image: devops/linters

Licence Status CI Status Language Status Compagny Author

Description

Tag: Docker

This Docker image is a comprehensive toolbox designed for code linting and validation across various languages and formats. It includes multiple linters and tools to ensure code quality and security. The image is built on Alpine Linux and includes Node.js, Python, and several linters such as Hadolint, Ansible Lint, Jinja2 Lint, and more.

Environment variables

  • VERSION - The version of the image.
  • MAINTAINER - The maintainer of the image.
  • MAINTAINER_ADDRESS - The email address of the maintainer.
  • DEFAULT_USER - The default user to be created in the image.
  • DEFAULT_USER_ID - The user ID for the default user.
  • DEFAULT_GROUP - The default group to be created in the image.
  • DEFAULT_GROUP_GID - The group ID for the default group.
  • DEFAULT_USER_HOME - The home directory for the default user.
  • DEFAULT_WORKDIR - The default working directory.
  • HADOLINT_VERSION - The version of Hadolint to be installed.
  • NODEJS_VERSION - The version of Node.js to be installed.

Build a new image

You can build an image from a Dockerfile using the ./build script. This script allows you to build your image while loading variables from the .env file (don't forget to edit the script if you add any variables).

This bash script automates the building and tagging of Docker images based on specified criteria and arguments. It also handles versioning and tagging of the images. To use this script, follow these steps:

  1. Create a .env file with environment variables such as MAINTAINER, MAINTAINER_ADDRESS, DEFAULT_USER, DEFAULT_GROUP, and DEFAULT_WORKDIR.
  2. Optionally, create a .tag file to maintain versioning information.
  3. Execute the script with appropriate arguments.

The script supports the following arguments:

  • --major: Perform a major build, incrementing the major version and resetting the minor version.
  • --test: Perform a test build with a -test suffix.
  • --scout: Perform a scout build with the latest-scout tag.
  • --cicd: Perform a CI/CD build with a date suffix.
  • --push: Perform a minor build, incrementing the minor version.
  • No argument: Perform a test build by default.

Architectural Decisions Records

Here you can put your change to keep a trace of your work and decisions.

Authors

  • Lord Robin Crombez

Sources

Tag summary

Content type

Image

Digest

sha256:9a934f1b2

Size

530.5 MB

Last updated

3 days ago

docker pull labocbz/devops-linters