Questions tagged [hadolint]

3 questions
9
votes
1 answer

DL4006 warning: Set the SHELL option -o pipefail before RUN with a pipe in it

I have a Dockerfile FROM strimzi/kafka:0.20.1-kafka-2.6.0 USER root:root RUN mkdir -p /opt/kafka/plugins/debezium # Download, unpack, and place the debezium-connector-postgres folder into the /opt/kafka/plugins/debezium directory RUN curl -s…
Hongbo Miao
  • 45,290
  • 60
  • 174
  • 267
0
votes
0 answers

Running hadolint (Dockerfile linter) with Google Cloud Build

I'm working on image factory hosted on GCP and one of the pipeline I'm working on should build docker images from Dockerfile that is pushed to Cloud Source Repository. As a step 0 in my cloud build pipeline I'd like to use hadolint to check the…
0
votes
1 answer

How to give JSON notation syntax for given command in dockerfile for linting purpose?

Could you please provide JSON notation syntax for following command for Dockerfile Linting? CMD exec gunicorn --bind :$PORT --workers 1 --threads 8 app:app
Aniket Ghole
  • 192
  • 1
  • 11