A collection of Dockerfiles.
This is a collection of dockerfiles that keep clean code.
Available dockerfiles are supported the following tools:
- prettier: It's an opinionated code formatter, see the documents.
- yamllint: It's a linter for YAML files, see the documents.
- markdownlint: It's a style checker and lint tool for Markdown files, see the documents.
These are useful tools, but there is no official image. Therefore, this repository creates and distributes these lightweight images.
You can pull from Docker Hub or GitHub Packages, whichever you prefer. Using prettier as an example, pull as the following commands.
Docker Hub:
docker pull tmknom/prettierGitHub Packages:
docker pull ghcr.io/tmknom/dockerfiles/prettierThe following shows how to use it when pulled from Docker Hub.
docker run --rm -v "$(pwd):/work" tmknom/prettier --check --parser=markdown README.mdFor more information, see prettier/README.md.
docker run --rm -v "$(pwd):/work" tmknom/yamllint -- .For more information, see yamllint/README.md.
docker run --rm -v "$(pwd):/work" tmknom/markdownlint -- .For more information, see markdownlint/README.md.
- linux/amd64
- linux/arm64
Click to see details
- Create
<image_name>/directory - Define docker image:
Dockerfile,entrypoint.sh,.dockerignore - Manage package file:
package.jsonorrequirements.txt
- Create release action:
.github/workflows/release-<image_name>.yml - Configure version updates for dependencies:
.github/dependabot.yml
- Write details for the new docker image:
<image_name>/README.md - Update description and append usage:
README.md
- Update Dockerfile or package management file
- Commit, push, and create a pull request
- After merged, run Workflows with
release-prefix automatically at GitHub Actions
Then, publishes Docker images to Docker Hub and GitHub Packages. 🚀
Use Dependabot version updates. For more information, see dependabot.yml.
Stored following secrets in Repository Secrets.
DOCKERHUB_TOKEN: Personal access token used to log against Docker Hub.