Skip to content

Commit

Permalink
remove unuses scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
ldming committed Nov 27, 2023
1 parent 1146974 commit fb002f6
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 273 deletions.
19 changes: 15 additions & 4 deletions docker/custom-scripts/kubectl-helm-debian.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,11 @@ set -e
KUBECTL_VERSION="${1:-"latest"}"
HELM_VERSION="${2:-"latest"}"
MINIKUBE_VERSION="${3:-"none"}" # latest is also valid
KUBECTL_SHA256="${4:-"automatic"}"
HELM_SHA256="${5:-"automatic"}"
MINIKUBE_SHA256="${6:-"automatic"}"
USERNAME=${7:-"automatic"}
ETCD_VERSION="${4:-"none"}"
KUBECTL_SHA256="${5:-"automatic"}"
HELM_SHA256="${6:-"automatic"}"
MINIKUBE_SHA256="${7:-"automatic"}"
USERNAME=${8:-"automatic"}

HELM_GPG_KEYS_URI="https://raw.githubusercontent.com/helm/helm/main/KEYS"
GPG_KEY_SERVERS="keyserver hkp://keyserver.ubuntu.com:80
Expand Down Expand Up @@ -225,6 +226,16 @@ if [ "${MINIKUBE_VERSION}" != "none" ]; then
fi
fi

# Install etcd
if [ "${ETCD_VERSION}" != "none" ]; then
echo "Downloading etcd..."
curl -L "https://github.com/etcd-io/etcd/releases/download/${ETCD_VERSION}/etcd-${ETCD_VERSION}-linux-${architecture}.tar.gz" -o "/tmp/etcd-${ETCD_VERSION}-linux-${architecture}.tar.gz"
tar xf "/tmp/etcd-${ETCD_VERSION}-linux-${architecture}.tar.gz" -C /tmp
mv -f "/tmp/etcd-${ETCD_VERSION}-linux-${architecture}/etcd" /usr/local/bin/etcd
mv -f "/tmp/etcd-${ETCD_VERSION}-linux-${architecture}/etcdctl" /usr/local/bin/etcdctl
rm -rf "/tmp/etcd-${ETCD_VERSION}-linux-${architecture}"
fi

if ! type docker > /dev/null 2>&1; then
echo -e '\n(*) Warning: The docker command was not found.\n\nYou can use one of the following scripts to install it:\n\nhttps://github.com/microsoft/vscode-dev-containers/blob/main/script-library/docs/docker-in-docker.md\n\nor\n\nhttps://github.com/microsoft/vscode-dev-containers/blob/main/script-library/docs/docker.md'
fi
Expand Down
269 changes: 0 additions & 269 deletions docker/library-scripts/kubectl-helm-debian.sh

This file was deleted.

0 comments on commit fb002f6

Please sign in to comment.