Dockerfilelint Online (dockerfilelint.com)
Dockerfilelint.com is a client javascript site to review and analyze a Dockerfile for common mistakes and use of best practices.
Note: This repository has evolved from the original project replicatedhq/fromlatest.io, a special thanks to everyone over there who created this excellent website. Unfortunately, it has not been updated in a long time and therefore their website (fromlatest.io) is using an outdated version of Dockerfilelint.
- Latest Release: www.dockerfilelint.com
- Next Release Candidate: beta.dockerfilelint.com
- Development Branch: alpha.dockerfilelint.com
To build and run locally you will need the following installed:
- Git
- Make
- Node
- NPM
- Grunt & Grunt-Cli
- Babel
Alternatively, if you have docker installed build and run within a container (see below).
On Ubuntu:
sudo apt-get update
curl -sL https://deb.nodesource.com/setup_0.12 | sudo bash -
sudo apt-get install build-essential nodejs
sudo npm install -g grunt-cli babel
npm install
You can choose to build and run the website on your host machine providing you have installed all the prerequisites (you will likely have most installed). Or, you can build using docker and run the image to serve the website.
Note: building through docker does mean you cannot take use of the hot module replacement and you will need to rebuild the image to see any code changes take affect.
make clean
make deps
make run
The frontend will then be hosted at http://127.0.0.1:5000/
docker build -t dockerfilelint.com .
docker run -it --name dockerfilelint.com -p 5000:5000 dockerfilelint.com
I encourage community support on this project but please note GitLab is the primary host of this project. Having said that feel free to use GitHub to contribute even though I suggest giving GitLab a try 😉. The GitLab stream is mirrored on GitHub and any merge requests from GitHub will be merged into the GitLab stream. Steve Perkins has an excellent blog post outlining his decisions for moving to GitLab and describes the way I manage the two hosting providers with Option 1: Create Separate Named Remotes.
If you're curious these are a few links to the GitLab repository