From 601bcb9d3979b83c49f6dd7cbf15e44abd4b00d0 Mon Sep 17 00:00:00 2001 From: Adar Nimrod <nimrod@shore.co.il> Date: Fri, 5 Jul 2019 11:38:15 +0300 Subject: [PATCH] Initial Dockerfile and pre-commit-hooks.yaml. To build the first image and start testing. --- .pre-commit-hooks.yaml | 17 +++++++++++++++++ Dockerfile | 4 ++++ 2 files changed, 21 insertions(+) create mode 100644 .pre-commit-hooks.yaml create mode 100644 Dockerfile diff --git a/.pre-commit-hooks.yaml b/.pre-commit-hooks.yaml new file mode 100644 index 0000000..3db8dd5 --- /dev/null +++ b/.pre-commit-hooks.yaml @@ -0,0 +1,17 @@ +# vim:ff=unix ts=2 sw=2 ai expandtab +--- +- id: hadolint + name: Hadolint Dockerfile linter + description: Dockerfile linter, validate inline bash, written in Haskell + minimum_pre_commit_version: '0.18.0' + language: docker_image + entry: adarnimrod/docker-pre-commit hadolint + files: Dockerfile +- id: docker-compose + name: docker-compose config + description: Validate the docker-compose file + minimum_pre_commit_version: '0.18.0' + language: docker_image + entry: adarnimrod/docker-pre-commit docker-compose-config + files: docker-compose + types: [ yaml ] diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..0790b5a --- /dev/null +++ b/Dockerfile @@ -0,0 +1,4 @@ +FROM alpine:3.10 +RUN apk add --update --no-cache --repository http://dl-cdn.alpinelinux.org/alpine/edge/testing/ docker-compose && \ + wget https://github.com/hadolint/hadolint/releases/download/v1.17.1/hadolint-Linux-x86_64 -O /usr/local/bin/hadolint && \ + chmod +x /usr/local/bin/hadolint -- GitLab