Conda and Java: sync env variables (#153)
* conda script * Adds JAVA_HOME * Update src/conda/devcontainer-feature.json Co-authored-by: Josh Spicer <joshspicer@github.com> * modify containerEnv * fix version * bump python version Co-authored-by: Josh Spicer <joshspicer@github.com>
This commit is contained in:
parent
b7b5d8b1c0
commit
674b096863
13 changed files with 30 additions and 22 deletions
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"id": "anaconda",
|
"id": "anaconda",
|
||||||
"version": "1.0.6",
|
"version": "1.0.7",
|
||||||
"name": "Anaconda",
|
"name": "Anaconda",
|
||||||
"documentationURL": "https://github.com/devcontainers/features/tree/main/src/anaconda",
|
"documentationURL": "https://github.com/devcontainers/features/tree/main/src/anaconda",
|
||||||
"options": {
|
"options": {
|
||||||
|
@ -15,6 +15,6 @@
|
||||||
},
|
},
|
||||||
"containerEnv": {
|
"containerEnv": {
|
||||||
"CONDA_DIR": "/usr/local/conda",
|
"CONDA_DIR": "/usr/local/conda",
|
||||||
"PATH": "${PATH}:${CONDA_DIR}/bin:"
|
"PATH": "/usr/local/conda/bin:${PATH}"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"id": "conda",
|
"id": "conda",
|
||||||
"version": "1.0.1",
|
"version": "1.0.2",
|
||||||
"name": "Conda - A cross-platform, language-agnostic binary package manager",
|
"name": "Conda - A cross-platform, language-agnostic binary package manager",
|
||||||
"documentationURL": "https://github.com/devcontainers/features/tree/main/src/conda",
|
"documentationURL": "https://github.com/devcontainers/features/tree/main/src/conda",
|
||||||
"options": {
|
"options": {
|
||||||
|
@ -22,6 +22,7 @@
|
||||||
},
|
},
|
||||||
"containerEnv": {
|
"containerEnv": {
|
||||||
"CONDA_DIR": "/opt/conda",
|
"CONDA_DIR": "/opt/conda",
|
||||||
"PATH": "${PATH}:${CONDA_DIR}/bin:"
|
"CONDA_SCRIPT":"/opt/conda/etc/profile.d/conda.sh",
|
||||||
|
"PATH": "/opt/conda/bin:${PATH}"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"id": "dotnet",
|
"id": "dotnet",
|
||||||
"version": "1.0.5",
|
"version": "1.0.6",
|
||||||
"name": "Dotnet CLI",
|
"name": "Dotnet CLI",
|
||||||
"documentationURL": "https://github.com/devcontainers/features/tree/main/src/dotnet",
|
"documentationURL": "https://github.com/devcontainers/features/tree/main/src/dotnet",
|
||||||
"description": "Installs the .NET CLI. Provides option of installing sdk or runtime, and option of versions to install. Uses latest version of .NET sdk as defaults to install.",
|
"description": "Installs the .NET CLI. Provides option of installing sdk or runtime, and option of versions to install. Uses latest version of .NET sdk as defaults to install.",
|
||||||
|
@ -29,7 +29,7 @@
|
||||||
},
|
},
|
||||||
"containerEnv": {
|
"containerEnv": {
|
||||||
"DOTNET_ROOT": "/usr/local/dotnet/current",
|
"DOTNET_ROOT": "/usr/local/dotnet/current",
|
||||||
"PATH": "${PATH}:${DOTNET_ROOT}"
|
"PATH": "/usr/local/dotnet/current:${PATH}"
|
||||||
},
|
},
|
||||||
"customizations": {
|
"customizations": {
|
||||||
"vscode": {
|
"vscode": {
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"id": "go",
|
"id": "go",
|
||||||
"version": "1.0.4",
|
"version": "1.0.5",
|
||||||
"name": "Go",
|
"name": "Go",
|
||||||
"documentationURL": "https://github.com/devcontainers/features/tree/main/src/go",
|
"documentationURL": "https://github.com/devcontainers/features/tree/main/src/go",
|
||||||
"description": "Installs Go and common Go utilities. Auto-detects latest version and installs needed dependencies.",
|
"description": "Installs Go and common Go utilities. Auto-detects latest version and installs needed dependencies.",
|
||||||
|
@ -27,7 +27,7 @@
|
||||||
},
|
},
|
||||||
"containerEnv": {
|
"containerEnv": {
|
||||||
"GOPATH": "/usr/local/go",
|
"GOPATH": "/usr/local/go",
|
||||||
"PATH": "${GOPATH}/bin:${PATH}"
|
"PATH": "/usr/local/go:${PATH}"
|
||||||
},
|
},
|
||||||
"capAdd": [
|
"capAdd": [
|
||||||
"SYS_PTRACE"
|
"SYS_PTRACE"
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"id": "hugo",
|
"id": "hugo",
|
||||||
"version": "1.0.3",
|
"version": "1.0.4",
|
||||||
"name": "Hugo",
|
"name": "Hugo",
|
||||||
"documentationURL": "https://github.com/devcontainers/features/tree/main/src/hugo",
|
"documentationURL": "https://github.com/devcontainers/features/tree/main/src/hugo",
|
||||||
"options": {
|
"options": {
|
||||||
|
@ -15,6 +15,6 @@
|
||||||
},
|
},
|
||||||
"containerEnv": {
|
"containerEnv": {
|
||||||
"HUGO_DIR": "/usr/local/hugo",
|
"HUGO_DIR": "/usr/local/hugo",
|
||||||
"PATH": "${HUGO_DIR}/bin:${PATH}"
|
"PATH": "/usr/local/hugo/bin:${PATH}"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"id": "java",
|
"id": "java",
|
||||||
"version": "1.0.6",
|
"version": "1.0.7",
|
||||||
"name": "Java (via SDKMAN!)",
|
"name": "Java (via SDKMAN!)",
|
||||||
"documentationURL": "https://github.com/devcontainers/features/tree/main/src/java",
|
"documentationURL": "https://github.com/devcontainers/features/tree/main/src/java",
|
||||||
"description": "Installs Java, SDKMAN! (if not installed), and needed dependencies.",
|
"description": "Installs Java, SDKMAN! (if not installed), and needed dependencies.",
|
||||||
|
@ -43,6 +43,7 @@
|
||||||
"SDKMAN_DIR": "/usr/local/sdkman",
|
"SDKMAN_DIR": "/usr/local/sdkman",
|
||||||
"GRADLE_USER_HOME": "${HOME}/.gradle",
|
"GRADLE_USER_HOME": "${HOME}/.gradle",
|
||||||
"M2": "${HOME}/.m2",
|
"M2": "${HOME}/.m2",
|
||||||
"PATH": "${SDKMAN_DIR}/bin:${SDKMAN_DIR}/candidates/java/current/bin:${SDKMAN_DIR}/candidates/gradle/current/bin:${SDKMAN_DIR}/candidates/maven/current/bin:${PATH}"
|
"JAVA_HOME": "/usr/local/sdkman/candidates/java/current",
|
||||||
|
"PATH": "/usr/local/sdkman/bin:/usr/local/sdkman/candidates/java/current/bin:/usr/local/sdkman/candidates/gradle/current/bin:/usr/local/sdkman/candidates/maven/current/bin:${PATH}"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"id": "node",
|
"id": "node",
|
||||||
"version": "1.0.4",
|
"version": "1.0.5",
|
||||||
"name": "Node.js (via nvm) and yarn",
|
"name": "Node.js (via nvm) and yarn",
|
||||||
"documentationURL": "https://github.com/devcontainers/features/tree/main/src/node",
|
"documentationURL": "https://github.com/devcontainers/features/tree/main/src/node",
|
||||||
"description": "Installs Node.js, nvm, yarn, and needed dependencies.",
|
"description": "Installs Node.js, nvm, yarn, and needed dependencies.",
|
||||||
|
@ -39,6 +39,6 @@
|
||||||
"containerEnv": {
|
"containerEnv": {
|
||||||
"NVM_DIR": "/usr/local/share/nvm",
|
"NVM_DIR": "/usr/local/share/nvm",
|
||||||
"NVM_SYMLINK_CURRENT": "true",
|
"NVM_SYMLINK_CURRENT": "true",
|
||||||
"PATH": "${NVM_DIR}/current/bin:${PATH}"
|
"PATH": "/usr/local/share/nvm/current/bin:${PATH}"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"id": "oryx",
|
"id": "oryx",
|
||||||
"version": "1.0.5",
|
"version": "1.0.6",
|
||||||
"name": "Oryx",
|
"name": "Oryx",
|
||||||
"description": "Installs the oryx CLI",
|
"description": "Installs the oryx CLI",
|
||||||
"documentationURL": "https://github.com/devcontainers/features/tree/main/src/oryx",
|
"documentationURL": "https://github.com/devcontainers/features/tree/main/src/oryx",
|
||||||
|
@ -11,6 +11,6 @@
|
||||||
"ORYX_PREFER_USER_INSTALLED_SDKS": "true",
|
"ORYX_PREFER_USER_INSTALLED_SDKS": "true",
|
||||||
"ORYX_DIR": "/usr/local/oryx",
|
"ORYX_DIR": "/usr/local/oryx",
|
||||||
"DEBIAN_FLAVOR": "focal-scm",
|
"DEBIAN_FLAVOR": "focal-scm",
|
||||||
"PATH": "${ORYX_DIR}:${PATH}"
|
"PATH": "/usr/local/oryx:${PATH}"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"id": "php",
|
"id": "php",
|
||||||
"version": "1.0.5",
|
"version": "1.0.6",
|
||||||
"name": "PHP",
|
"name": "PHP",
|
||||||
"documentationURL": "https://github.com/devcontainers/features/tree/main/src/php",
|
"documentationURL": "https://github.com/devcontainers/features/tree/main/src/php",
|
||||||
"options": {
|
"options": {
|
||||||
|
@ -31,6 +31,6 @@
|
||||||
},
|
},
|
||||||
"containerEnv": {
|
"containerEnv": {
|
||||||
"PHP_PATH": "/usr/local/php/current",
|
"PHP_PATH": "/usr/local/php/current",
|
||||||
"PATH": "${PHP_PATH}/bin:${PATH}"
|
"PATH": "/usr/local/php/current/bin:${PATH}"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"id": "python",
|
"id": "python",
|
||||||
"version": "1.0.5",
|
"version": "1.0.6",
|
||||||
"name": "Python",
|
"name": "Python",
|
||||||
"documentationURL": "https://github.com/devcontainers/features/tree/main/src/python",
|
"documentationURL": "https://github.com/devcontainers/features/tree/main/src/python",
|
||||||
"description": "Installs the provided version of Python, as well as PIPX, and other common Python utilities. JupyterLab is conditionally installed with the python feature. Note: May require source code compilation.",
|
"description": "Installs the provided version of Python, as well as PIPX, and other common Python utilities. JupyterLab is conditionally installed with the python feature. Note: May require source code compilation.",
|
||||||
|
@ -50,7 +50,7 @@
|
||||||
"PYTHON_PATH": "/usr/local/python/current",
|
"PYTHON_PATH": "/usr/local/python/current",
|
||||||
"PIPX_HOME": "/usr/local/py-utils",
|
"PIPX_HOME": "/usr/local/py-utils",
|
||||||
"PIPX_BIN_DIR": "/usr/local/py-utils/bin",
|
"PIPX_BIN_DIR": "/usr/local/py-utils/bin",
|
||||||
"PATH": "${PYTHON_PATH}/bin:${PATH}:${PIPX_BIN_DIR}"
|
"PATH": "/usr/local/python/current/bin:/usr/local/py-utils/bin:${PATH}"
|
||||||
},
|
},
|
||||||
"customizations": {
|
"customizations": {
|
||||||
"vscode": {
|
"vscode": {
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"id": "rust",
|
"id": "rust",
|
||||||
"version": "1.0.5",
|
"version": "1.0.6",
|
||||||
"name": "Rust",
|
"name": "Rust",
|
||||||
"documentationURL": "https://github.com/devcontainers/features/tree/main/src/rust",
|
"documentationURL": "https://github.com/devcontainers/features/tree/main/src/rust",
|
||||||
"description": "Installs Rust, common Rust utilities, and their required dependencies",
|
"description": "Installs Rust, common Rust utilities, and their required dependencies",
|
||||||
|
@ -49,7 +49,7 @@
|
||||||
"containerEnv": {
|
"containerEnv": {
|
||||||
"CARGO_HOME": "/usr/local/cargo",
|
"CARGO_HOME": "/usr/local/cargo",
|
||||||
"RUSTUP_HOME": "/usr/local/rustup",
|
"RUSTUP_HOME": "/usr/local/rustup",
|
||||||
"PATH": "${CARGO_HOME}/bin:${PATH}"
|
"PATH": "/usr/local/cargo/bin:${PATH}"
|
||||||
},
|
},
|
||||||
"capAdd": [
|
"capAdd": [
|
||||||
"SYS_PTRACE"
|
"SYS_PTRACE"
|
||||||
|
|
|
@ -9,5 +9,8 @@ source dev-container-features-test-lib
|
||||||
check "version" conda --version
|
check "version" conda --version
|
||||||
check "if conda-notice.txt exists" cat /usr/local/etc/vscode-dev-containers/conda-notice.txt
|
check "if conda-notice.txt exists" cat /usr/local/etc/vscode-dev-containers/conda-notice.txt
|
||||||
|
|
||||||
|
# Check env
|
||||||
|
check "CONDA_SCRIPT is set correctly" echo $CONDA_SCRIPT | grep "/opt/conda/etc/profile.d/conda.sh"
|
||||||
|
|
||||||
# Report result
|
# Report result
|
||||||
reportResults
|
reportResults
|
||||||
|
|
|
@ -8,5 +8,8 @@ source dev-container-features-test-lib
|
||||||
# Definition specific tests
|
# Definition specific tests
|
||||||
check "version" java --version
|
check "version" java --version
|
||||||
|
|
||||||
|
# Check env
|
||||||
|
check "JAVA_HOME is set correctly" echo $JAVA_HOME | grep "/usr/local/sdkman/candidates/java/current"
|
||||||
|
|
||||||
# Report result
|
# Report result
|
||||||
reportResults
|
reportResults
|
Loading…
Reference in a new issue