File tree Expand file tree Collapse file tree 2 files changed +37
-0
lines changed
docker/workstation-base/setup/scripts Expand file tree Collapse file tree 2 files changed +37
-0
lines changed Original file line number Diff line number Diff line change 12
12
/miniconda/bin/conda init
13
13
source ~ /.bashrc
14
14
15
+ # removes anaconda distrubution
16
+ conda config --add channels plotly
17
+ conda config --add channels conda-forge
18
+ conda config --add channels nvidia
19
+ conda config --add channels pytorch
20
+ conda config --remove channels defaults
21
+
15
22
gpu=$( which nvidia-smi)
16
23
if [[ $gpu == ' /usr/bin/nvidia-smi' ]]; then
17
24
echo Nvidia GPU found. Installing GPU standard env.
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+
3
+ printf ' %*s\n' " ${COLUMNS:- $(tput cols)} " ' ' | tr ' ' -
4
+
5
+
6
+ # pip trusted resources
7
+ sudo touch /etc/pip.conf
8
+ if grep -Fxq " [global]" /etc/pip.conf
9
+ then
10
+ echo " [global] not added to /etc/pip/.conf as already exists"
11
+ else
12
+ echo " [global]" | sudo tee -a /etc/pip.conf
13
+ fi
14
+ if grep -Fxq " trusted-host = pypi.python.org pypi.org files.pythonhosted.org" /etc/pip.conf
15
+ then
16
+ echo " trusted-hosts not added to /etc/pip/.conf as already exists"
17
+ else
18
+ echo " trusted-host = pypi.python.org pypi.org files.pythonhosted.org" | sudo tee -a /etc/pip.conf
19
+ fi
20
+ if grep -Fxq " cert = /config/ssl/cert.pem" /etc/pip.conf
21
+ then
22
+ echo " cert not added to /etc/pip/.conf as already exists"
23
+ else
24
+ echo " cert = /config/ssl/cert.pem" | sudo tee -a /etc/pip.conf
25
+ fi
26
+
27
+ # conda ssl
28
+ cp /config/ssl/cert.pem /miniconda/ssl/cert.pem
29
+
30
+ printf ' %*s\n' " ${COLUMNS:- $(tput cols)} " ' ' | tr ' ' -
You can’t perform that action at this time.
0 commit comments