Skip to content

Commit

Permalink
ci: introduce Dockerfile linting
Browse files Browse the repository at this point in the history
  • Loading branch information
audrium committed Nov 16, 2020
1 parent 29931aa commit e83061c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
7 changes: 5 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
FROM python:3.6-slim

ENV DEBIAN_FRONTEND=noninteractive

# hadolint ignore=DL3008
RUN apt-get update && \
apt-get install -y \
krb5-config \
Expand All @@ -10,6 +12,7 @@ RUN apt-get update && \
vim-tiny \
--no-install-recommends && \
apt-get -y autoremove && \
apt-get -y clean
apt-get -y clean && \
rm -rf /var/lib/apt/lists/*

ADD krb5.conf /etc/krb5.conf
COPY krb5.conf /etc/krb5.conf
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,8 @@ build: Dockerfile
test:
docker run -i --rm $(IMAGE) klist 2>&1 | grep "klist: No credentials"

lint:
docker run -i --rm hadolint/hadolint < Dockerfile

push:
docker push $(IMAGE)

0 comments on commit e83061c

Please sign in to comment.