Skip to content

Commit

Permalink
chore(code-server) substitution de ADD par wget
Browse files Browse the repository at this point in the history
  • Loading branch information
Yannig committed Jan 17, 2025
1 parent 1024451 commit 5772ae6
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions code-server/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ RUN export DEBIAN_FRONTEND=noninteractive ; export TZ=Europe/Paris ; apt-get -y
git vim wget htop amazon-ecr-credential-helper groff-base gnupg2 pass bind9-utils gettext-base apache2-utils && \
# Nettoyer les fichiers inutiles
apt-get clean && rm -rf /var/lib/apt/lists/*
# Et on revient à un utilisateur lambda pour la suite
USER coder

# Install AWS cli
COPY --from=aws-cli /usr/local /usr/local
Expand All @@ -33,22 +35,18 @@ COPY --from=k9s /bin/k9s /usr/local/bin
COPY --from=dive /usr/local/bin/dive /usr/local/bin

# Installer kubectx
RUN wget -q https://github.com/ahmetb/kubectx/releases/download/${KUBECTX_VERSION}/kubectx -O /usr/local/bin/kubectx && \
wget -q https://github.com/ahmetb/kubectx/releases/download/${KUBECTX_VERSION}/kubens -O /usr/local/bin/kubens && \
chmod +x /usr/local/bin/kubens /usr/local/bin/kubectx
ADD --chmod=755 https://github.com/ahmetb/kubectx/releases/download/${KUBECTX_VERSION}/kubectx /usr/local/bin/kubectx
ADD --chmod=755 https://github.com/ahmetb/kubectx/releases/download/${KUBECTX_VERSION}/kubens /usr/local/bin/kubens

# Installer kube-ps1
COPY bash_completion.sh /etc/bash_completion
RUN wget -q https://raw.githubusercontent.com/jonmosco/kube-ps1/refs/heads/master/kube-ps1.sh -O /usr/local/bin/kube-ps1.sh
ADD --chmod=755 https://raw.githubusercontent.com/jonmosco/kube-ps1/refs/heads/master/kube-ps1.sh /usr/local/bin/kube-ps1.sh

# Installer promtool + prometheus + alertmanager + amtool
COPY --from=prometheus /bin/prometheus /usr/local/bin
COPY --from=prometheus /bin/promtool /usr/local/bin
COPY --from=alertmanager /bin/alertmanager /usr/local/bin
COPY --from=alertmanager /bin/amtool /usr/local/bin

# Et on revient à un utilisateur lambda pour la suite
USER coder

# Définir le point d'entrée par défaut
CMD ["/bin/bash"]

0 comments on commit 5772ae6

Please sign in to comment.