mysteriouscode/cfn-lint

By mysteriouscode

Updated 2 months ago

Regularily updated cfn-lint docker image, for use in your CI pipelines and everywhere else.

Image
Integration & delivery
Developer tools
0

10K+

mysteriouscode/cfn-lint repository overview

cfn-lint-docker

This is a public repository for images built by https://github.com/MysteriousCode/cfn-lint-docker/

This repository was created to automatically build and publish public docker images for aws-cloudformation/cfn-lint.

Since there's no official docker repository for cfn-lint we have decided to create this repo and use GitHub Actions to automatically build a new docker image for each cfn-lint release.

The GitHub Actions in this repo are triggered each day to check if a new release of cfn-lint is available, so we can always have up-to-date docker image available!

Where to get it

The images are published to a public ECR and Docker Hub repositories. From there, use cfn-lint as usual - we simply build cfn-lint from their repository, see Dockerfile.

To get the latest release of cfn-lint, run:

docker pull mysteriouscode/cfn-lint

If you want a specific version, run:

docker pull mysteriouscode/cfn-lint:v0.87.9

You can also use major versions:

docker pull mysteriouscode/cfn-lint:v1

Usage

Most CI environments mount your code into the container automatically and correctly set the workdir, so all you need to so is run cfn-lint. We use --info argument in the examples below to print out a little more information on what cfn-lint is doing.

Jenkins Pipelines
docker.image('mysteriouscode/cfn-lint:latest') {
    sh "cfn-lint --info"
}
GitLab CI
lint:
  image:
    name: mysteriouscode/cfn-lint:latest
  script:
    - cfn-lint --info
Command line

Mount your files using -v to any directory inside the container (we're using /data in this example) and set the workdir (-w or --workdir) to that directory:

docker run -v `pwd`:/data -w /data mysteriouscode/cfn-lint:v0 cfn-lint --info

License

MIT No Attribution

As with all Docker images, these likely also contain other software which may be under other licenses (such as Bash, etc from the base distribution, along with any direct or indirect dependencies of the primary software being contained).

Not sure if you can trust this repo?

We have created this repository as a public service, and all of it is publicly visible - you can check out the .github/workflows/ files to see the exact steps that are used to build the docker image.

All commits are signed with GPG keys, see GitHub's documentation on signed commits.

Tag summary

Content type

Image

Digest

sha256:4559849db

Size

118.8 MB

Last updated

2 months ago

Requires Docker Desktop 4.37.1 or later.