From a5f3acc9039c1b4b0b5f0603f26bf8a50ece311b Mon Sep 17 00:00:00 2001 From: David Jeffers Date: Tue, 1 Apr 2025 01:03:40 -0400 Subject: [PATCH] Using curl instead of installing and using wget due to no root for init container --- clusterprism_halloween_values.yaml | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/clusterprism_halloween_values.yaml b/clusterprism_halloween_values.yaml index 2ffdda6..730f0ae 100644 --- a/clusterprism_halloween_values.yaml +++ b/clusterprism_halloween_values.yaml @@ -28,8 +28,8 @@ ingress: initContainers: - name: init-con - image: debian - tag: stable + image: alpine + tag: curl command: | cp /hugo.conf/setup_hugo.sh /tmp/ && chmod +x /tmp/setup_hugo.sh && @@ -69,11 +69,8 @@ volumes: # yamllint disable rule:line-length fileContent: | #!/usr/bin/env bash - # Pre-reqs - apt-get update && apt-get install -y wget git - # Setting up Hugo - wget https://github.com/gohugoio/hugo/releases/download/v0.145.0/hugo_0.145.0_linux-arm64.tar.gz && + curl -O https://github.com/gohugoio/hugo/releases/download/v0.145.0/hugo_0.145.0_linux-arm64.tar.gz && tar -xzf hugo_0.111.3_Linux-64bit.tar.gz && chmod +x hugo && mv hugo /usr/local/bin && cd / &&