Skip to content

Commit

Permalink
Anaconda: Fix bug - Pass proxy variables to new shell for successful …
Browse files Browse the repository at this point in the history
…anaconda installation behind proxies (#808)

Anaconda: Fix bug - Pass proxy variables to new shell
  • Loading branch information
samruddhikhandale committed Jan 31, 2024
1 parent a88a95e commit 67de3c2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/anaconda/devcontainer-feature.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"id": "anaconda",
"version": "1.0.11",
"version": "1.0.12",
"name": "Anaconda",
"documentationURL": "https://github.com/devcontainers/features/tree/main/src/anaconda",
"options": {
Expand Down
3 changes: 2 additions & 1 deletion src/anaconda/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,8 @@ if ! conda --version &> /dev/null ; then
CONDA_VERSION="2021.11"
fi

su --login -c "wget -q https://repo.anaconda.com/archive/Anaconda3-${CONDA_VERSION}-Linux-x86_64.sh -O /tmp/anaconda-install.sh \
su --login -c "export http_proxy=${http_proxy:-} && export https_proxy=${https_proxy:-} \
&& wget -q https://repo.anaconda.com/archive/Anaconda3-${CONDA_VERSION}-Linux-x86_64.sh -O /tmp/anaconda-install.sh \
&& /bin/bash /tmp/anaconda-install.sh -u -b -p ${CONDA_DIR}" ${USERNAME} 2>&1

if [ "${VERSION}" = "latest" ] || [ "${VERSION}" = "lts" ]; then
Expand Down

0 comments on commit 67de3c2

Please sign in to comment.