Skip to content

Commit

Permalink
Install helm-docs
Browse files Browse the repository at this point in the history
  • Loading branch information
containerscrew committed Nov 25, 2024
1 parent 00afd2d commit f4f8799
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
11 changes: 9 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ ARG TERRAGRUNT_VERSION=0.67.6
ARG AWSCLI_VERSION="2.15.57-r0"
ARG TFTOOLS_VERSION="v0.9.0"
ARG TFLINT_VERSION="0.51.1-r3"
ARG HELM_DOCS_VERSION="1.14.2"
ENV USERNAME="infratools"
ENV USER_UID=1000
ENV USER_GID=$USER_UID
Expand All @@ -23,14 +24,14 @@ RUN set -eux

# Set architecture
RUN case $(uname -m) in \

Check failure on line 26 in Dockerfile

View workflow job for this annotation

GitHub Actions / Lint Containerfile using Hadolint

SC2028 info: echo may not expand escape sequences. Use printf.

Check failure on line 26 in Dockerfile

View workflow job for this annotation

GitHub Actions / Lint Containerfile using Hadolint

SC2028 info: echo may not expand escape sequences. Use printf.
x86_64) ARCH=amd64; ;; \
x86_64) ARCH=amd64; ALT_ARCH=x86_64; ;; \
armv7l) ARCH=arm; ;; \
aarch64) ARCH=arm64; ;; \
ppc64le) ARCH=ppc64le; ;; \
s390x) ARCH=s390x; ;; \
*) echo "un-supported arch, exit ..."; exit 1; ;; \
esac && \
echo "export ARCH=$ARCH" > /envfile && \
echo "export ARCH=$ARCH\n export ALT_ARCH=$ALT_ARCH" > /envfile && \
cat /envfile

# Core packages
Expand Down Expand Up @@ -66,6 +67,12 @@ RUN source /envfile && curl -sL https://github.com/gruntwork-io/terragrunt/relea
# Install tftools
RUN curl --proto '=https' --tlsv1.2 -sSfL https://raw.githubusercontent.com/containerscrew/tftools/main/scripts/install.sh | sh -s -- -v "$TFTOOLS_VERSION"

# Install helm-docs plugin
RUN source /envfile && curl -sL https://github.com/norwoodj/helm-docs/releases/download/v${HELM_DOCS_VERSION}/helm-docs_${HELM_DOCS_VERSION}_Linux_${ALT_ARCH}.tar.gz -o /tmp/helm-docs.tar.gz && \

Check failure on line 71 in Dockerfile

View workflow job for this annotation

GitHub Actions / Lint Containerfile using Hadolint

SC2086 info: Double quote to prevent globbing and word splitting.

Check failure on line 71 in Dockerfile

View workflow job for this annotation

GitHub Actions / Lint Containerfile using Hadolint

SC2086 info: Double quote to prevent globbing and word splitting.
tar -xz -C /usr/bin/ -f /tmp/helm-docs.tar.gz helm-docs && \
chmod +x /usr/bin/helm-docs && \
rm /tmp/helm-docs.tar.gz

# User actions
USER $USERNAME

Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ local-build: ## Build the image using podman
docker build -t localhost/infratools:test .

local-run: ## Run the image locally
docker run --rm -it -h containertools --name infratools localhost/infratools:test
docker run --rm -it -h containertools --name infratools localhost/infratools:test /bin/zsh

local-build-run: local-build local-run ## Build and run the image locally

Expand Down

0 comments on commit f4f8799

Please sign in to comment.