build: execute hadolint in TravisCI

This commit is contained in:
Tim Brust 2018-10-23 19:32:30 +02:00
parent 68ab9b00e2
commit c9bd6633e0
No known key found for this signature in database
GPG Key ID: 94EA4986FA50F11B
3 changed files with 17 additions and 1 deletions

2
.hadolint.yml Normal file
View File

@ -0,0 +1,2 @@
ignored:
- DL3018

10
.travis.yml Normal file
View File

@ -0,0 +1,10 @@
language: generic
services:
- docker
before_install:
- docker pull hadolint/hadolint
script:
- docker run --rm -i hadolint/hadolint hadolint --ignore DL3018 - < Dockerfile

View File

@ -1,4 +1,8 @@
# Node.js with Git Dockerfile [![Docker Automated build](https://img.shields.io/docker/automated/timbru31/node-alpine-git.svg)](https://hub.docker.com/r/timbru31/node-alpine-git/) [![Docker Build Status](https://img.shields.io/docker/build/timbru31/node-alpine-git.svg)](https://hub.docker.com/r/timbru31/node-alpine-git/)
# Node.js with Git Dockerfile
[![Docker Automated build](https://img.shields.io/docker/automated/timbru31/node-alpine-git.svg)](https://hub.docker.com/r/timbru31/node-alpine-git/)
[![Docker Build Status](https://img.shields.io/docker/build/timbru31/node-alpine-git.svg)](https://hub.docker.com/r/timbru31/node-alpine-git/)
[![Build Status](https://travis-ci.org/timbru31/docker-node-alpine-git.svg?branch=master)](https://travis-ci.org/timbru31/docker-node-alpine-git)
A minimal Dockerfile based on Node.js 8 LTS (Carbon) alpine with Git and ssh installed.