aboutsummaryrefslogtreecommitdiff
path: root/v1
diff options
context:
space:
mode:
authorJosh Spicer <joshspicer@github.com>2022-08-03 21:09:28 +0300
committerGitHub <noreply@github.com>2022-08-03 21:09:28 +0300
commit145f26f8b27ed61667c759d3eebad71778773d78 (patch)
tree26d22d9c36943847bc1393eba4c1ce025238328d /v1
parent73db1be5838cc7b71e083819cb50c25b210a6bdc (diff)
remove unused dirs (#76)
Diffstat (limited to 'v1')
-rw-r--r--v1/README.md2
-rwxr-xr-xv1/combine-feature-fragments.py32
-rw-r--r--v1/feature-scripts.env26
-rwxr-xr-xv1/install.sh62
4 files changed, 0 insertions, 122 deletions
diff --git a/v1/README.md b/v1/README.md
deleted file mode 100644
index 316d69f..0000000
--- a/v1/README.md
+++ /dev/null
@@ -1,2 +0,0 @@
-Files in this folder are designed for back-compat with 'v1'
-while waiting 'v2' implementation: https://github.com/devcontainers/cli/pull/6
diff --git a/v1/combine-feature-fragments.py b/v1/combine-feature-fragments.py
deleted file mode 100755
index 39bc8d0..0000000
--- a/v1/combine-feature-fragments.py
+++ /dev/null
@@ -1,32 +0,0 @@
-#!/usr/bin/env python3
-
-# Run from repo root.
-
-import os
-
-featureDirs = os.listdir('./src')
-
-beginning = """
-{
- "features": [
-"""
-
-middle = ""
-
-end = """
- ]
-}
-"""
-
-count = len(featureDirs)
-
-for fDir in featureDirs:
- count -= 1
- config = f'./src/{fDir}/feature.json'
- data = open(config, "r").read()
- middle += f'{data}'
- if count != 0:
- middle += ','
- middle += '\n'
-
-print(f'{beginning}{middle}{end}')
diff --git a/v1/feature-scripts.env b/v1/feature-scripts.env
deleted file mode 100644
index c3e9936..0000000
--- a/v1/feature-scripts.env
+++ /dev/null
@@ -1,26 +0,0 @@
-_BUILD_ARG_COMMON="./common/install.sh ${_BUILD_ARG_COMMON_INSTALLZSH:-true} ${_BUILD_ARG_COMMON_USERNAME:-automatic} ${_BUILD_ARG_COMMON_UID:-automatic} ${_BUILD_ARG_COMMON_GID:-automatic} ${_BUILD_ARG_COMMON_UPGRADEPACKAGES:-true} ${_BUILD_ARG_COMMON_INSTALLOHMYZSH:-true} ${_BUILD_ARG_COMMON_NONFREEPACKAGES:-false}"
-_BUILD_ARG_GIT="./git/install.sh ${_BUILD_ARG_GIT_VERSION:-latest} ${_BUILD_ARG_GIT_PPA:-true}"
-_BUILD_ARG_GIT_LFS="./git-lfs/install.sh ${_BUILD_ARG_GIT_LFS_VERSION:-latest}"
-_BUILD_ARG_DOCKER_IN_DOCKER="./docker-in-docker/install.sh true automatic ${_BUILD_ARG_DOCKER_IN_DOCKER_MOBY:-true} ${_BUILD_ARG_DOCKER_IN_DOCKER_VERSION:-latest} ${_BUILD_ARG_DOCKER_IN_DOCKER_DOCKERDASHCOMPOSEVERSION:-v1}"
-_BUILD_ARG_DOCKER_FROM_DOCKER="./docker-from-docker/install.sh true /var/run/docker-host.sock /var/run/docker.sock automatic ${_BUILD_ARG_DOCKER_FROM_DOCKER_MOBY:-true} ${_BUILD_ARG_DOCKER_FROM_DOCKER_VERSION:-latest} ${_BUILD_ARG_DOCKER_FROM_DOCKER_DOCKERDASHCOMPOSEVERSION:-v1}"
-_BUILD_ARG_KUBECTL_HELM_MINIKUBE="./kubectl-helm-minikube/install.sh ${_BUILD_ARG_KUBECTL_HELM_MINIKUBE_VERSION:-latest} ${_BUILD_ARG_KUBECTL_HELM_MINIKUBE_HELM:-latest} ${_BUILD_ARG_KUBECTL_HELM_MINIKUBE_MINIKUBE:-latest}"
-_BUILD_ARG_TERRAFORM="./terraform/install.sh ${_BUILD_ARG_TERRAFORM_VERSION:-latest} ${_BUILD_ARG_TERRAFORM_TFLINT:-latest} ${_BUILD_ARG_TERRAFORM_TERRAGRUNT:-latest}"
-_BUILD_ARG_GITHUB_CLI="./github-cli/install.sh ${_BUILD_ARG_GITHUB_CLI_VERSION:-latest}"
-_BUILD_ARG_AWS_CLI="./aws-cli/install.sh ${_BUILD_ARG_AWS_CLI_VERSION:-latest}"
-_BUILD_ARG_AZURE_CLI="./az-cli/install.sh ${_BUILD_ARG_AZURE_CLI_VERSION:-latest}"
-_BUILD_ARG_SSHD="./sshd/install.sh"
-_BUILD_ARG_NODE="./node/install.sh ${_BUILD_ARG_NODE_NVMINSTALLPATH:-/usr/local/share/nvm} ${_BUILD_ARG_NODE_VERSION:-lts/*} automatic true ${_BUILD_ARG_NODE_NODEGYPDEPENDENCIES:-true}"
-_BUILD_ARG_PYTHON="./python/install.sh ${_BUILD_ARG_PYTHON_VERSION:-latest} ${_BUILD_ARG_PYTHON_INSTALLPATH:-/usr/local/python} /usr/local/py-utils automatic true ${_BUILD_ARG_PYTHON_INSTALLTOOLS:-true} true ${_BUILD_ARG_PYTHON_OPTIMIZE:-false} ${_BUILD_ARG_PYTHON_OVERRIDEDEFAULTVERSION:-true} ${_BUILD_ARG_PYTHON_INSTALLJUPYTERLAB:-false} ${_BUILD_ARG_PYTHON_CONFIGUREJUPYTERLABALLOWORIGIN:-''}"
-_BUILD_ARG_GO="./go/install.sh ${_BUILD_ARG_GOLANG_VERSION:-latest}"
-_BUILD_ARG_JAVA="./java/wrapper.sh ${_BUILD_ARG_JAVA_VERSION:-latest}"
-_BUILD_ARG_GRADLE="./gradle/install.sh ${_BUILD_ARG_GRADLE_VERSION:-latest}"
-_BUILD_ARG_MAVEN="./maven/install.sh ${_BUILD_ARG_MAVEN_VERSION:-latest}"
-_BUILD_ARG_RUBY="./ruby/install.sh ${_BUILD_ARG_RUBY_VERSION:-latest}"
-_BUILD_ARG_RUST="./rust/install.sh /usr/local/cargo /usr/local/rustup automatic true false ${_BUILD_ARG_RUST_VERSION:-latest} ${_BUILD_ARG_RUST_PROFILE:-minimal}"
-_BUILD_ARG_POWERSHELL="./powershell/install.sh ${_BUILD_ARG_POWERSHELL_VERSION:-latest}"
-_BUILD_ARG_DESKTOP_LITE="./desktop-lite/install.sh automatic ${_BUILD_ARG_DESKTOP_LITE_PASSWORD:-vscode} true ${_BUILD_ARG_DESKTOP_LITE_VNCPORT:-5901} ${_BUILD_ARG_DESKTOP_LITE_WEBPORT:-6080}"
-_BUILD_ARG_DOTNET="./dotnet/install.sh ${_BUILD_ARG_DOTNET_VERSION:-latest} ${_BUILD_ARG_DOTNET_RUNTIMEONLY:-false} automatic true /usr/local/dotnet dotnet ${_BUILD_ARG_DOTNET_OVERRIDEDEFAULTVERSION:-true} ${_BUILD_ARG_DOTNET_INSTALLUSINGAPT:-true}"
-_BUILD_ARG_PHP="./php/install.sh ${_BUILD_ARG_PHP_VERSION:-latest} /usr/local/php ${_BUILD_ARG_PHP_INSTALLCOMPOSER:-true} automatic true ${_BUILD_ARG_PHP_OVERRIDEDEFAULTVERSION:-true}"
-_BUILD_ARG_ORYX="./oryx/install.sh automatic true"
-_BUILD_ARG_HUGO="./hugo/install.sh ${_BUILD_ARG_HUGO_VERSION:-latest} automatic true"
-_BUILD_ARG_ANACONDA="./anaconda/install.sh ${_BUILD_ARG_ANACONDA_VERSION:-latest} automatic true" \ No newline at end of file
diff --git a/v1/install.sh b/v1/install.sh
deleted file mode 100755
index f8f23cd..0000000
--- a/v1/install.sh
+++ /dev/null
@@ -1,62 +0,0 @@
-#!/usr/bin/env bash
-
-# Support 'v1' dev container feature installation
-# that require a root 'install.sh' script.
-
-set -e
-cd "$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
-
-# Verify we're on a supported OS
-. /etc/os-release
-if [ "${ID}" != "debian" ] && [ "${ID_LIKE}" != "debian" ]; then
-cat << EOF
-
-*********** Unsupported operating system "${ID}" detected ***********
-
-Features support currently requires a Debian/Ubuntu-based image. Update your
-image or Dockerfile FROM statement to start with a supported OS. For example:
-mcr.microsoft.com/vscode/devcontainers/base:ubuntu
-
-Aborting build...
-
-EOF
- exit 2
-fi
-
-set -a
-. ./devcontainer-features.env
-set +a
-
-chmod +x *.sh
-
-# Execute option scripts if correct environment variable is set to "true"
-feature_marker_path="/usr/local/etc/vscode-dev-containers/features"
-mkdir -p "${feature_marker_path}"
-while IFS= read -r feature_line; do
- # Extract the env var part of the line
- feature_var_name="${feature_line%%=*}"
- if [ ! -z "${!feature_var_name}" ]; then
- # If a value is set for the env var, execute the script
- feature_script_and_args="${feature_line##*=}"
- feature_script_and_args="${feature_script_and_args%\"}"
- script_command="$(eval echo "${feature_script_and_args#\"}")"
- echo "(*) Script: ${script_command}"
-
- # Check if script with same args has already been run
- feature_marker="${feature_marker_path}/${feature_var_name}";
- if [ -e "${feature_marker}" ] && [ "${script_command}" = "$(cat ${feature_marker})" ]; then
- echo "(*) Skipping. Script already run with same arguments."
- else
- # Execute script and create a marker with the script args
- script_name="$(echo $script_command | cut -d' ' -f1)"
- chmod +x ${script_name}
- ./${script_command}
- echo "${script_command}" > "${feature_marker}"
- fi
- fi
-done < ./feature-scripts.env
-
-# Clean up
-apt-get autoremove -y
-apt-get clean -y
-rm -rf /var/lib/apt/lists/*