Skip to content
Permalink
Browse files

Merge pull request #2248 from transcom/cg_dockerfilelint

Add dockerfilelint pre-commit hook
  • Loading branch information...
chrisgilmerproj committed Jun 10, 2019
2 parents 1ddb11f + 02647fc commit e4486da4444149c7a220487b8c5449a3151c0cab
Showing with 13 additions and 5 deletions.
  1. +2 −0 .dockerfilelintrc
  2. +6 −0 .pre-commit-config.yaml
  3. +1 −1 Dockerfile
  4. +1 −1 Dockerfile.migrations
  5. +1 −1 Dockerfile.migrations_local
  6. +1 −1 Dockerfile.tasks
  7. +1 −1 Dockerfile.tasks_local
@@ -0,0 +1,2 @@
rules:
latest_tag: off
@@ -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]
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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

0 comments on commit e4486da

Please sign in to comment.
You can’t perform that action at this time.