Skip to content

Commit

Permalink
Add dockerfilelint pre-commit hook
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris Gilmer committed Jun 7, 2019
1 parent 7ae20d1 commit 02647fc
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 5 deletions.
2 changes: 2 additions & 0 deletions .dockerfilelintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
rules:
latest_tag: off
6 changes: 6 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -126,3 +126,9 @@ repos:
language: script
files: .codecov.yml
pass_filenames: false

- repo: https://github.com/pryorda/dockerfilelint-precommit-hooks
rev: v0.1.0
hooks:
- id: dockerfilelint
stages: [commit]
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM gcr.io/distroless/base
FROM gcr.io/distroless/base:latest

COPY bin/rds-combined-ca-bundle.pem /bin/rds-combined-ca-bundle.pem
COPY bin/chamber /bin/chamber
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile.migrations
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ ENV GO_ENV=container

# Install tools needed in container
RUN apk update
RUN apk add postgresql-client python3 ca-certificates bash
RUN apk add postgresql-client python3 ca-certificates bash --no-cache
RUN pip3 install awscli

WORKDIR /scripts
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile.migrations_local
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@ ENV SECURE_MIGRATION_DIR=/migrate/local

# Install tools needed in container
RUN apk update
RUN apk add postgresql-client bash
RUN apk add postgresql-client bash --no-cache

WORKDIR /scripts
2 changes: 1 addition & 1 deletion Dockerfile.tasks
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM gcr.io/distroless/base
FROM gcr.io/distroless/base:latest

COPY bin/rds-combined-ca-bundle.pem /bin/rds-combined-ca-bundle.pem
COPY bin/chamber /bin/chamber
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile.tasks_local
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM gcr.io/distroless/base
FROM gcr.io/distroless/base:latest

COPY bin_linux/save-fuel-price-data /bin/save-fuel-price-data

Expand Down

0 comments on commit 02647fc

Please sign in to comment.