From dccc932276ddc4d9f8d8b98571cb8ca807d5244e Mon Sep 17 00:00:00 2001 From: Lucas Gravley <29484535+admiralAwkbar@users.noreply.github.com> Date: Wed, 17 Jun 2020 13:12:10 -0500 Subject: [PATCH 1/3] Testing npmrc --- Dockerfile | 5 +++++ lib/.npmrc | 9 +++++++++ 2 files changed, 14 insertions(+) create mode 100644 lib/.npmrc diff --git a/Dockerfile b/Dockerfile index 47e5ce3b..a1deafa6 100644 --- a/Dockerfile +++ b/Dockerfile @@ -35,6 +35,11 @@ RUN apk add --no-cache \ RUN pip3 --no-cache-dir install --upgrade --no-cache-dir \ yamllint pylint yq +################################### +# COPY .npmrc to docker container # +################################### +COPY lib/.npmrc ~/.npmrc + #################### # Run NPM Installs # #################### diff --git a/lib/.npmrc b/lib/.npmrc new file mode 100644 index 00000000..f1e964c2 --- /dev/null +++ b/lib/.npmrc @@ -0,0 +1,9 @@ +################################ +# .NPMRC file for Super Linter # +################################ + +# Set prefix path +prefix=~/.npm-global + +# Set the log Level to Error only +loglevel=error From e6e119320ae71ce7ef96942c8c5c8206093bdc4c Mon Sep 17 00:00:00 2001 From: Lucas Gravley <29484535+admiralAwkbar@users.noreply.github.com> Date: Wed, 17 Jun 2020 13:16:41 -0500 Subject: [PATCH 2/3] lets try this way --- Dockerfile | 7 +------ lib/.npmrc | 9 --------- 2 files changed, 1 insertion(+), 15 deletions(-) delete mode 100644 lib/.npmrc diff --git a/Dockerfile b/Dockerfile index a1deafa6..c1347345 100644 --- a/Dockerfile +++ b/Dockerfile @@ -35,15 +35,10 @@ RUN apk add --no-cache \ RUN pip3 --no-cache-dir install --upgrade --no-cache-dir \ yamllint pylint yq -################################### -# COPY .npmrc to docker container # -################################### -COPY lib/.npmrc ~/.npmrc - #################### # Run NPM Installs # #################### -RUN npm -g --no-cache install \ +RUN npm config set package-lock false && npm config set loglevel error && npm -g --no-cache install \ markdownlint-cli \ jsonlint prettyjson \ coffeelint \ diff --git a/lib/.npmrc b/lib/.npmrc deleted file mode 100644 index f1e964c2..00000000 --- a/lib/.npmrc +++ /dev/null @@ -1,9 +0,0 @@ -################################ -# .NPMRC file for Super Linter # -################################ - -# Set prefix path -prefix=~/.npm-global - -# Set the log Level to Error only -loglevel=error From 3694a8e85e6423021eb41d4b0c225d4c41a87efe Mon Sep 17 00:00:00 2001 From: Lucas Gravley <29484535+admiralAwkbar@users.noreply.github.com> Date: Wed, 17 Jun 2020 13:26:54 -0500 Subject: [PATCH 3/3] cleaner downloads --- Dockerfile | 50 ++++++++++++++++++++++++++------------------------ 1 file changed, 26 insertions(+), 24 deletions(-) diff --git a/Dockerfile b/Dockerfile index c1347345..89eab906 100644 --- a/Dockerfile +++ b/Dockerfile @@ -38,28 +38,30 @@ RUN pip3 --no-cache-dir install --upgrade --no-cache-dir \ #################### # Run NPM Installs # #################### -RUN npm config set package-lock false && npm config set loglevel error && npm -g --no-cache install \ - markdownlint-cli \ - jsonlint prettyjson \ - coffeelint \ - typescript eslint \ - standard \ - babel-eslint \ - @typescript-eslint/eslint-plugin \ - @typescript-eslint/parser \ - eslint-plugin-jest \ - && npm --no-cache install \ - markdownlint-cli \ - jsonlint prettyjson \ - coffeelint \ - typescript eslint \ - standard \ - babel-eslint \ - prettier \ - eslint-config-prettier \ - @typescript-eslint/eslint-plugin \ - @typescript-eslint/parser \ - eslint-plugin-jest +RUN npm config set package-lock false \ + && npm config set loglevel error \ + && npm -g --no-cache install \ + markdownlint-cli \ + jsonlint prettyjson \ + coffeelint \ + typescript eslint \ + standard \ + babel-eslint \ + @typescript-eslint/eslint-plugin \ + @typescript-eslint/parser \ + eslint-plugin-jest \ + && npm --no-cache install \ + markdownlint-cli \ + jsonlint prettyjson \ + coffeelint \ + typescript eslint \ + standard \ + babel-eslint \ + prettier \ + eslint-config-prettier \ + @typescript-eslint/eslint-plugin \ + @typescript-eslint/parser \ + eslint-plugin-jest #################################### # Install dockerfilelint from repo # @@ -88,12 +90,12 @@ RUN wget -qO- "https://github.com/koalaman/shellcheck/releases/download/stable/s # Install Go Linter # ##################### ARG GO_VERSION='v1.23.7' -RUN wget -O- -nv https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s "$GO_VERSION" +RUN wget -O- -nvq https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s "$GO_VERSION" ################## # Install TFLint # ################## -RUN curl -L "$(curl -Ls https://api.github.com/repos/terraform-linters/tflint/releases/latest | grep -o -E "https://.+?_linux_amd64.zip")" -o tflint.zip && unzip tflint.zip && rm tflint.zip \ +RUN curl -Ls "$(curl -Ls https://api.github.com/repos/terraform-linters/tflint/releases/latest | grep -o -E "https://.+?_linux_amd64.zip")" -o tflint.zip && unzip tflint.zip && rm tflint.zip \ && mv "tflint" /usr/bin/ ###########################################