Commit 601bcb9d authored by nimrod's avatar nimrod
Browse files

Initial Dockerfile and pre-commit-hooks.yaml.

To build the first image and start testing.
parent 313ddaae
Loading
Loading
Loading
Loading

.pre-commit-hooks.yaml

0 → 100644
+17 −0
Changes for .pre-commit-hooks.yaml: 17 added lines, 0 removed lines.
Original line number Diff line number Diff line
# 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 ]

Dockerfile

0 → 100644
+4 −0
Changes for Dockerfile: 4 added lines, 0 removed lines.
Original line number Diff line number Diff line
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