Skip to content

Commit

Permalink
1.4
Browse files Browse the repository at this point in the history
1. Fix the bug of finding `nvm` path in the entry script.
2. Adjust the path of `get-pip.py`.
  • Loading branch information
cainmagi committed Jan 25, 2021
1 parent e3d266f commit ce69c91
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,8 @@ This is the minimal desktop test based on `ubuntu` `16.04`, `18.04` or `20.04` i
### ver 1.4 @ 1/24/2021

1. Fix the bug caused by the incompatibility of `pip-21`.
2. Fix the bug of finding `nvm` path in the entry script.
3. Adjust the path of `get-pip.py`.

### ver 1.4 @ 1/17/2021

Expand Down
2 changes: 1 addition & 1 deletion docker-entrypoint
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ function nvm_install_dir {
}

function run_with_nodejs {
RUN_NVM_DIR="$(nvm_install_dir | command sed "s:^$HOME:\$HOME:")"
RUN_NVM_DIR="$(nvm_install_dir)" || fail
if [ -s "$RUN_NVM_DIR/nvm.sh" ] && [ -s "$RUN_NVM_DIR/bash_completion" ]
then
bash -c ". $RUN_NVM_DIR/nvm.sh \
Expand Down
12 changes: 6 additions & 6 deletions scripts/install-desktop
Original file line number Diff line number Diff line change
Expand Up @@ -216,26 +216,26 @@ then

if [ "x${JLAB_COMPATIBLE}" = "xtrue" ]
then
wget -O /root/get-pip-3.py https://github.com/cainmagi/Dockerfiles/releases/download/jlab-v1.1/get-pip-20.3.4.py || fail
wget -O /root/scripts/get-pip-3.py https://github.com/cainmagi/Dockerfiles/releases/download/jlab-v1.1/get-pip-20.3.4.py || fail
else
curl https://bootstrap.pypa.io/get-pip.py -o /root/get-pip-3.py || fail
curl https://bootstrap.pypa.io/get-pip.py -o /root/scripts/get-pip-3.py || fail
fi
curl https://bootstrap.pypa.io/2.7/get-pip.py -o /root/get-pip-2.py || fail
curl https://bootstrap.pypa.io/2.7/get-pip.py -o /root/scripts/get-pip-2.py || fail
if [ "x${UBUNTU_VER}" = "x20.04" ] || [ "x${UBUNTU_VER}" = "x18.04" ]
then
apt-get install -y python3-pip || fail
python3 /root/get-pip-3.py --force-reinstall || fail
python3 /root/scripts/get-pip-3.py --force-reinstall || fail
python3 -m pip install matplotlib plotly Cython numpy scipy scikit-learn scikit-image ipython h5py leveldb networkx nose pandas python-dateutil protobuf python-gflags pyyaml Pillow six Jinja2 Flask || fail
else
apt-get install -y python-pip python3-pip || fail
python3 /root/get-pip-3.py --force-reinstall || fail && python2 /root/get-pip-2.py --force-reinstall || fail
python3 /root/scripts/get-pip-3.py --force-reinstall || fail && python2 /root/scripts/get-pip-2.py --force-reinstall || fail
python3 -m pip install matplotlib plotly Cython numpy scipy scikit-learn scikit-image ipython h5py leveldb networkx nose pandas python-dateutil protobuf python-gflags pyyaml Pillow six Jinja2 Flask || fail
python2 -m pip install numpy --upgrade || fail
fi
apt-get install -y python3-sip python3-pyqt5 python3-tk || fail
msg "Installation for the extra packages finishes."

curl https://raw.githubusercontent.com/cainmagi/Dockerfiles/jlab-v1.1/scripts/install-jlab -o /root/scripts/install-jlab || fail
wget -O /root/scripts/install-jlab https://raw.githubusercontent.com/cainmagi/Dockerfiles/jlab-v1.1/scripts/install-jlab || fail
chmod +x /root/scripts/install-jlab || fail
bash /root/scripts/install-jlab version=${JLAB_VERSION} ex_tiers=${JLAB_EXTRA_TIERS} compat=${JLAB_COMPATIBLE} || fail
msg "Installation for the jupyterlab finishes."
Expand Down

0 comments on commit ce69c91

Please sign in to comment.