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!
The images are published to a public ECR and Docker Hub repositories. From there, use cfn-lint as usual - we simply use the Dockerfile provided by cfn-lint repository, we do not apply any changes.
Docker Hub repository: https://hub.docker.com/r/mysteriouscode/cfn-lint
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.86.3
Public ECR repository: https://gallery.ecr.aws/mysteriouscode/cfn-lint
To get the latest release of cfn-lint, run:
docker pull public.ecr.aws/mysteriouscode/cfn-lint:latest
If you want a specific version, run:
docker pull public.ecr.aws/mysteriouscode/cfn-lint:v0.86.3
In most CI environments, you'll need to overwrite the entrypoint, as the cfn-lint's Dockerfile does not follow the official docker image consistency guidelines:
docker.image('mysteriouscode/cfn-lint:latest').inside("--entrypoint=''") {
sh "cfn-lint --info"
}
lint:
image:
name: mysteriouscode/cfn-lint:latest
entrypoint: [""]
script:
- cfn-lint --info
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.
We also use this repository to store the CloudFormation template we use to authorise GitHub access to the ECR repository - you can find it in cloudformation/ directory.