Skip to content

Commit

Permalink
Update Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
Darkfella91 authored Nov 27, 2024
1 parent 2e36c66 commit de5f9f2
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ RUN echo "**** Installing packages ****" && \
jq \
nano \
bash \
bash-completion \
openssl \
ca-certificates \
git \
Expand All @@ -49,8 +50,8 @@ RUN echo "**** Installing packages ****" && \
curl -fsSLO "https://dl.k8s.io/release/$KUBECTL_VERSION/bin/linux/amd64/kubectl" && \
curl -fsSLO "https://dl.k8s.io/release/$KUBECTL_VERSION/bin/linux/amd64/kubectl.sha256" && \
echo "$(cat kubectl.sha256) kubectl" | sha256sum --check --strict && \
chmod +x ./kubectl && \
mv ./kubectl /usr/local/bin/kubectl && \
kubectl completion bash | sudo tee /etc/bash_completion.d/kubectl > /dev/null && \
curl -fsSL https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3 | bash -s -- -v $HELM_VERSION && \
curl -fsSLO https://github.com/getsops/sops/releases/download/$SOPS_VERSION/sops-$SOPS_VERSION.linux.amd64 && \
curl -fsSLO https://github.com/getsops/sops/releases/download/$SOPS_VERSION/sops-$SOPS_VERSION.checksums.txt && \
Expand All @@ -64,26 +65,23 @@ RUN echo "**** Installing packages ****" && \
grep "sops-$SOPS_VERSION.linux.amd64" sops-$SOPS_VERSION.checksums.txt > checksum-linux-amd64.txt && \
echo "$(cat checksum-linux-amd64.txt)" | sha256sum --check --strict && \
mv sops-$SOPS_VERSION.linux.amd64 /usr/local/bin/sops && \
chmod +x /usr/local/bin/sops && \
curl -fsSLO https://github.com/siderolabs/talos/releases/download/$TALOSCTL_VERSION/talosctl-linux-amd64 && \
curl -fsSL -o talosctl_sha256sum.txt https://github.com/siderolabs/talos/releases/download/$TALOSCTL_VERSION/sha256sum.txt && \
grep "talosctl-linux-amd64" talosctl_sha256sum.txt > talosctl_amd64_sha256sum.txt && \
echo "$(cat talosctl_amd64_sha256sum.txt)" | sha256sum --check --strict && \
chmod +x ./talosctl-linux-amd64 && mv ./talosctl-linux-amd64 /usr/local/bin/talosctl && \
mv ./talosctl-linux-amd64 /usr/local/bin/talosctl && \
curl -fsSLO https://github.com/helmfile/helmfile/releases/download/$HELMFILE_VERSION/helmfile_$(echo $HELMFILE_VERSION | sed 's/^v//')_checksums.txt && \
curl -fsSLO https://github.com/helmfile/helmfile/releases/download/$HELMFILE_VERSION/helmfile_$(echo $HELMFILE_VERSION | sed 's/^v//')_linux_amd64.tar.gz && \
grep "helmfile_$(echo $HELMFILE_VERSION | sed 's/^v//')_linux_amd64.tar.gz" helmfile_$(echo $HELMFILE_VERSION | sed 's/^v//')_checksums.txt > checksum-helmfile-linux-amd64.txt && \
echo "$(cat checksum-helmfile-linux-amd64.txt)" | sha256sum --check --strict && \
tar -xvzf helmfile_$(echo $HELMFILE_VERSION | sed 's/^v//')_linux_amd64.tar.gz && \
chmod +x ./helmfile && \
mv helmfile /usr/local/bin/helmfile && \
curl -fsSL https://taskfile.dev/install.sh | bash -s -- -d $TASK_VERSION -b /usr/local/bin && \
curl -fsSL https://fluxcd.io/install.sh | FLUX_VERSION=$(echo $FLUX_VERSION | sed 's/^v//') bash && \
curl -fsSLO https://github.com/kubevirt/kubevirt/releases/download/$VIRTCTL_VERSION/virtctl-$VIRTCTL_VERSION-linux-amd64 && \
chmod +x ./virtctl-$VIRTCTL_VERSION-linux-amd64 && mv ./virtctl-$VIRTCTL_VERSION-linux-amd64 /usr/local/bin/virtctl && \
curl -fsSLO https://releases.pagure.org/virt-viewer/virt-viewer-11.0.tar.xz && \
tar -xJf virt-viewer-11.0.tar.xz && \
chmod +x ./virt-viewer-11.0 && mv ./virt-viewer-11.0 /usr/local/bin/virt-viewer && \
mv ./virtctl-$VIRTCTL_VERSION-linux-amd64 /usr/local/bin/virtctl && \
echo "**** Setting permissions ****" && \
chown -R root:root /usr/local/bin && chmod -R 755 /usr/local/bin && \
echo "**** Cleaning up ****" && \
rm -rf /root/.cache /tmp/*

Expand Down

0 comments on commit de5f9f2

Please sign in to comment.