Skip to content

Instantly share code, notes, and snippets.

@asksven
Created March 4, 2019 13:55
Show Gist options
  • Save asksven/c81fddb03d17a597f088d6a3cc1f730b to your computer and use it in GitHub Desktop.
Save asksven/c81fddb03d17a597f088d6a3cc1f730b to your computer and use it in GitHub Desktop.
Picks

Tips for faster feedback loops

lint your Dockerfile

  1. Install the hadolint binary: https://github.com/hadolint/hadolint/releases
  2. In VSCode install the hadolint extension
  3. Open a Dockerfile in VSCode and enjoy
  4. Add a lint job to your pipeline
lint_dockerfile:
  stage: build
  image: hadolint/hadolint:latest-debian
  script:
    - hadolint Dockerfile

lint your .gitlab-ci

  1. Install the gitlab workflow extension
  2. Confirm the gitlab URL and personal access token
  3. Open a .gitlab-ci file in VSCode and enjoy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment