From 93f8a6e230109c2fbe24b715ad2ccf9726be5381 Mon Sep 17 00:00:00 2001 From: ViViDboarder Date: Mon, 28 Oct 2019 18:19:18 -0700 Subject: [PATCH] Add a few linter tools that need to be set up with system --- assets/default/bin/hadolint | 11 +++++++++++ recipes/default/packages | 2 +- 2 files changed, 12 insertions(+), 1 deletion(-) create mode 100755 assets/default/bin/hadolint diff --git a/assets/default/bin/hadolint b/assets/default/bin/hadolint new file mode 100755 index 0000000..7f81205 --- /dev/null +++ b/assets/default/bin/hadolint @@ -0,0 +1,11 @@ +#! /bin/bash + +# Runs hadolint from a Docker image + +version=v1.17.2 + +docker run -i --rm \ + -v `pwd`:/data \ + -w /data \ + hadolint/hadolint:${version}-debian \ + hadolint $* diff --git a/recipes/default/packages b/recipes/default/packages index 7cdce84..b46a80e 100755 --- a/recipes/default/packages +++ b/recipes/default/packages @@ -1,7 +1,7 @@ #! /bin/bash sudo_package_update -packages="tmux htop curl wget mercurial ctags tig pv jq fish mosh bash-completion doxygen" +packages="tmux htop curl wget mercurial ctags tig pv jq fish mosh bash-completion doxygen shellcheck" # This now installs a lot of language specific stuff from python, gradle, to go. # Should consider pulling these into different recipes that are dependent on the environment