@@ -8,8 +8,26 @@ ENV OC_VERSION=4.14.8
8
8
USER root
9
9
10
10
# hadolint ignore=DL3041
11
- RUN dnf install -y -q --allowerasing --nobest nodejs-devel nodejs-libs python3-pip jq diffutils \
12
- openssl openssl-devel ca-certificates make cmake cpp gcc gcc-c++ zlib zlib-devel brotli brotli-devel python3 nodejs-packaging && \
11
+ RUN dnf install -y -q --allowerasing --nobest \
12
+ brotli \
13
+ brotli-devel \
14
+ ca-certificates \
15
+ cmake \
16
+ cpp \
17
+ diffutils \
18
+ gcc \
19
+ gcc-c++ \
20
+ jq \
21
+ make \
22
+ nodejs-devel \
23
+ nodejs-libs \
24
+ nodejs-packaging \
25
+ openssl \
26
+ openssl-devel \
27
+ python3 \
28
+ python3-pip \
29
+ zlib \
30
+ zlib-devel && \
13
31
pip3 install --upgrade pip && \
14
32
pip3 install --upgrade setuptools && \
15
33
pip3 install yq yamllint && \
@@ -18,18 +36,23 @@ RUN dnf install -y -q --allowerasing --nobest nodejs-devel nodejs-libs python3-p
18
36
echo -n "node version: " ; node -v; \
19
37
echo -n "npm version: " ; npm -v; \
20
38
echo -n "yarn version: " ; yarn -v && \
21
- curl --fail -sSL https://github.com/koalaman/shellcheck/releases/download/v$SHELLCHECK_VERSION/shellcheck-v$SHELLCHECK_VERSION.linux.x86_64.tar.xz | tar -xJvf - shellcheck-v$SHELLCHECK_VERSION/shellcheck && \
22
- mv shellcheck-v$SHELLCHECK_VERSION/shellcheck /usr/local/bin/shellcheck && chmod 755 /usr/local/bin/shellcheck && rm -rf "shellcheck-v$SHELLCHECK_VERSION" && \
23
- curl -fsSL -o get_helm.sh https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3 && chmod 700 get_helm.sh && ./get_helm.sh && rm -rf get_helm.sh && \
24
- curl -Lso /usr/local/bin/yq https://github.com/mikefarah/yq/releases/download/${YQ_VERSION}/yq_linux_amd64 && chmod +x /usr/local/bin/yq && \
25
- curl -fsSL -o tkn.tgz "https://github.com/tektoncd/cli/releases/download/${TEKTONCD_CLI_VERSION}/tkn_${TEKTONCD_CLI_VERSION:1}_Linux_x86_64.tar.gz" && tar -C "/usr/local/bin" --no-same-owner -xzf "tkn.tgz" tkn && rm -rf "tkn.tgz" && \
26
- curl -sSL -o argocd-linux-amd64 https://github.com/argoproj/argo-cd/releases/latest/download/argocd-linux-amd64 &&\
39
+ curl -fsSL --proto "=https" "https://github.com/koalaman/shellcheck/releases/download/v${SHELLCHECK_VERSION}/shellcheck-v${SHELLCHECK_VERSION}.linux.x86_64.tar.xz" | tar -xJvf - "shellcheck-v${SHELLCHECK_VERSION}/shellcheck" && \
40
+ mv "shellcheck-v${SHELLCHECK_VERSION}/shellcheck" /usr/local/bin/shellcheck && \
41
+ chmod 755 /usr/local/bin/shellcheck && \
42
+ rm -rf "shellcheck-v${SHELLCHECK_VERSION}" && \
43
+ curl -fsSL --proto "=https" -o get_helm.sh https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3 && \
44
+ chmod 700 get_helm.sh && ./get_helm.sh && rm -rf get_helm.sh && \
45
+ curl -fsSL --proto "=https" -o /usr/local/bin/yq "https://github.com/mikefarah/yq/releases/download/${YQ_VERSION}/yq_linux_amd64" && chmod +x /usr/local/bin/yq && \
46
+ curl -fsSL --proto "=https" -o tkn.tgz "https://github.com/tektoncd/cli/releases/download/${TEKTONCD_CLI_VERSION}/tkn_${TEKTONCD_CLI_VERSION:1}_Linux_x86_64.tar.gz" && tar -C "/usr/local/bin" --no-same-owner -xzf "tkn.tgz" tkn && rm -rf "tkn.tgz" && \
47
+ curl -fsSL --proto "=https" -o argocd-linux-amd64 https://github.com/argoproj/argo-cd/releases/latest/download/argocd-linux-amd64 &&\
27
48
install -m 555 argocd-linux-amd64 /usr/local/bin/argocd && \
28
49
rm argocd-linux-amd64 && \
29
- curl -Lso /usr/local/bin/kubectl "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl" && chmod +x /usr/local/bin/kubectl && \
30
- curl -Lso /usr/local/bin/cosign https://github.com/sigstore/cosign/releases/latest/download/cosign-linux-amd64 && chmod +x /usr/local/bin/cosign && \
31
- curl -sSfL https://raw.githubusercontent.com/anchore/syft/main/install.sh | sh -s -- -b /usr/local/bin && \
32
- curl -L "https://mirror.openshift.com/pub/openshift-v4/clients/ocp/${OC_VERSION}/openshift-client-linux.tar.gz" -o /tmp/openshift-client-linux.tar.gz && \
50
+ curl -fsSL -o /usr/local/bin/kubectl "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl" && \
51
+ chmod +x /usr/local/bin/kubectl && \
52
+ curl -fsSL --proto "=https" -o /usr/local/bin/cosign https://github.com/sigstore/cosign/releases/latest/download/cosign-linux-amd64 && \
53
+ chmod +x /usr/local/bin/cosign && \
54
+ curl -fsSL --proto "=https" https://raw.githubusercontent.com/anchore/syft/main/install.sh | sh -s -- -b /usr/local/bin && \
55
+ curl -fsSL --proto "=https" "https://mirror.openshift.com/pub/openshift-v4/clients/ocp/${OC_VERSION}/openshift-client-linux.tar.gz" -o /tmp/openshift-client-linux.tar.gz && \
33
56
tar --no-same-owner -xzf /tmp/openshift-client-linux.tar.gz && \
34
57
mv oc kubectl /usr/local/bin && \
35
58
oc version --client && \
0 commit comments