Skip to content

Commit 4ce3cfb

Browse files
author
F嘉阳
committed
add kubectl argocd
1 parent 23dd828 commit 4ce3cfb

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

Dockerfile

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,15 @@ RUN \
5757
&& echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_${NODE_VERSION}.x nodistro main" | tee /etc/apt/sources.list.d/nodesource.list \
5858
&& apt-get update && apt-get install -y nodejs \
5959
\
60+
# Install kubectl (latest stable version).
61+
&& curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl" \
62+
&& chmod +x kubectl \
63+
&& mv kubectl /usr/local/bin/ \
64+
\
65+
# Install argocd CLI (latest version).
66+
&& curl -sSL -o /usr/local/bin/argocd https://github.com/argoproj/argo-cd/releases/latest/download/argocd-linux-amd64 \
67+
&& chmod +x /usr/local/bin/argocd \
68+
\
6069
# 2. Install Miniforge (Conda).
6170
&& wget "https://github.com/conda-forge/miniforge/releases/download/${MINIFORGE_VERSION}/Miniforge3-${MINIFORGE_VERSION}-Linux-x86_64.sh" -O miniforge.sh \
6271
&& /bin/bash miniforge.sh -b -p ${CONDA_DIR} \
@@ -114,6 +123,8 @@ RUN echo "Verifying root environment..." && \
114123
uv --version && \
115124
npm -v && \
116125
node -v && \
126+
kubectl version --client && \
127+
argocd version --client && \
117128
echo "Root environment check PASSED!"
118129

119130
# Final check as CODER.

0 commit comments

Comments
 (0)