@@ -24,17 +24,17 @@ setup_conda_postprocess() {
2424  &&  conda update --all --quiet --yes
2525
2626  #  These conda pkgs shouldn't be removed (otherwise will cause RemoveError) since they are directly reqiuired by conda: pip setuptools pycosat pyopenssl requests ruamel_yaml
27-      CONDA_PY_PKGS=` conda list |  grep " py3" |  cut -d "  " |  sed " /#/d;/conda/d;/pip/d;/setuptools/d;/pycosat/d;/pyopenssl/d;/requests/d;/ruamel_yaml/d;" ` 
28-   &&  conda remove --force -yq $ CONDA_PY_PKGS
29-   &&  pip install -UIq pip setuptools $ CONDA_PY_PKGS
27+      CONDA_PY_PKGS=$( conda list |  grep " py3" |  cut -d "  " |  sed " /#/d;/conda/d;/pip/d;/setuptools/d;/pycosat/d;/pyopenssl/d;/requests/d;/ruamel_yaml/d;" ) 
28+   &&  conda remove --force -yq " ${ CONDA_PY_PKGS} " 
29+   &&  pip install -UIq pip setuptools " ${ CONDA_PY_PKGS} " 
3030
3131  #  Print Conda and Python packages information in the docker build log
3232  echo  " @ Version of Conda & Python:" &&  conda info &&  conda list |  grep -v " <pip>" 
3333}
3434
3535setup_conda_with_mamba () {
36-   VERSION_PTYHON =$1 ;  shift  1; 
37-   mamba install -y --root-prefix=" ${CONDA_PREFIX} " " ${CONDA_PREFIX} " " conda-forge" " ${VERSION_PTYHON :- 3.10} " 
36+   VERSION_PYTHON =$1 ;  shift  1; 
37+   mamba install -y --root-prefix=" ${CONDA_PREFIX} " " ${CONDA_PREFIX} " " conda-forge" " ${VERSION_PYTHON :- 3.10} " 
3838  rm -rf /opt/conda/pkgs/* 
3939  setup_conda_postprocess
4040}
@@ -59,27 +59,27 @@ setup_nvtop() {
5959  #  Install Utilities `nvtop`
6060  sudo apt-get -qq update --fix-missing &&  sudo apt-get -qq install -y --no-install-recommends libncurses5-dev
6161
62-   DIRECTORY=` pwd` 
62+   DIRECTORY=$( pwd) 
6363
6464     cd  /tmp \
6565  &&  git clone https://github.com/Syllo/nvtop.git \
6666  &&  mkdir -pv nvtop/build &&  cd  nvtop/build \
67-   &&  LIB_PATH=` find / -name " libnvidia-ml*" 2> /dev/null` 
68-   &&  cmake .. -DCMAKE_LIBRARY_PATH=" ` dirname $LIB_PATH ` " 
67+   &&  LIB_PATH=$( find / -name " libnvidia-ml*" 2> /dev/null) 
68+   &&  cmake .. -DCMAKE_LIBRARY_PATH=" $( dirname ${ LIB_PATH}  ) " 
6969  &&  make &&  sudo make install \
7070  &&  nvtop --version
7171
72-   cd  $ DIRECTORY&&  rm -rf /tmp/nvtop
72+   cd  " ${ DIRECTORY} " &&  rm -rf /tmp/nvtop
7373
7474  sudo apt-get -qq remove -y libncurses5-dev
7575}
7676
7777
7878setup_java_base () {
7979     VERSION_JDK=11 \
80-   &&  URL_OPENJDK=` curl -sL https://jdk.java.net/archive/ |  grep ' linux-x64_bin.tar' |  grep -v sha256 |  sed -n ' s/.*href="\([^"]*\).*/\1/p' |  grep " jdk${VERSION_JDK} " |  head -n 1` 
80+   &&  URL_OPENJDK=$( curl -sL https://jdk.java.net/archive/ |  grep ' linux-x64_bin.tar' |  grep -v sha256 |  sed -n ' s/.*href="\([^"]*\).*/\1/p' |  grep " jdk${VERSION_JDK} " |  head -n 1) 
8181  &&  echo  " Installing JDK from: ${URL_OPENJDK} " 
82-   &&  install_tar_gz ${URL_OPENJDK}  &&  mv /opt/jdk-*  /opt/jdk \
82+   &&  install_tar_gz " ${URL_OPENJDK} " &&  mv /opt/jdk-*  /opt/jdk \
8383  &&  ln -sf /opt/jdk/bin/*  /usr/bin/ \
8484  &&  echo  " @ Version of Java (java/javac):" &&  java -version &&  javac -version
8585}
@@ -104,8 +104,8 @@ setup_node() {
104104  &&  export  PATH=/opt/node/bin:$PATH  \
105105  &&  npm install -g npm yarn \
106106  &&  ln -sf /opt/node/bin/*  /usr/bin/ \
107-   &&  echo  " @ Version of Node, npm, and yarn:"   ` node -v`   ` npm -v` 
108-   &&  echo  " @ Version of Yarn:"   ` yarn -v` 
107+   &&  echo  " @ Version of Node, npm, and yarn:  $( node -v)   $( npm -v) " 
108+   &&  echo  " @ Version of Yarn:  $( yarn -v) " 
109109}
110110
111111
@@ -116,7 +116,7 @@ setup_R_base() {
116116  &&  echo  " options(repos=structure(c(CRAN=\" https://cloud.r-project.org\" )))" >>  /etc/R/Rprofile.site \
117117  &&  R -e " install.packages(c('devtools'),clean=T,quiet=T);" 
118118  &&  ( type  java &&  type  R &&  R CMD javareconf ||  true  ) \
119-   &&  echo  " @ Version of R:"   &&   R --version  
119+   &&  echo  " @ Version of R:  $( R --version) " 
120120}
121121
122122
@@ -147,7 +147,7 @@ setup_R_rstudio() {
147147  #  Remove RStudio's pandoc and pandoc-proc to reduce size if they are already installed in the jpy-latex step.
148148     ( which pandoc          &&  rm /opt/rstudio-server/bin/pandoc/pandoc          ||  true  ) \
149149  &&  ( which pandoc-citeproc &&  rm /opt/rstudio-server/bin/pandoc/pandoc-citeproc ||  true  ) \
150-   &&  echo  " @ Version of rstudio-server:"   &&   rstudio-server version
150+   &&  echo  " @ Version of rstudio-server:  $( rstudio-server version) " 
151151}
152152
153153
@@ -168,7 +168,7 @@ setup_R_rshiny() {
168168
169169  #  hack shiny-server to allow run in root user: https://github.com/rstudio/shiny-server/pull/391
170170     sed  -i " s/throw new Error/logger.warn/g" 
171-   &&  echo  " @ Version of shiny-server:"   &&   shiny-server --version
171+   &&  echo  " @ Version of shiny-server:  $( shiny-server --version) " 
172172}
173173
174174
@@ -184,9 +184,9 @@ setup_R_datascience() {
184184setup_GO () {
185185     GO_VERSION=$( curl -sL https://github.com/golang/go/releases.atom |  grep ' releases/tag' |  head -1 |  grep -Po ' \d[\d.]+' ) 
186186  &&  GO_URL=" https://dl.google.com/go/go$GO_VERSION .linux-$( dpkg --print-architecture) " 
187-   &&  install_tar_gz $ GO_URL
187+   &&  install_tar_gz " ${ GO_URL} " 
188188  &&  ln -sf /opt/go/bin/go /usr/bin/ \
189-   &&  echo  " @ Version of golang:"   &&   go version  
189+   &&  echo  " @ Version of golang:  $( go version) " 
190190}
191191
192192
@@ -198,7 +198,7 @@ setup_julia() {
198198  &&  mkdir -p /opt/julia/pkg \
199199  &&  echo  " import Libdl; push!(Libdl.DL_LOAD_PATH, \" /opt/conda/lib\" )" >>  /opt/julia/etc/julia/startup.jl \
200200  &&  echo  " DEPOT_PATH[1]=\" /opt/julia/pkg\" " >>  /opt/julia/etc/julia/startup.jl \
201-   &&  echo  " @ Version of Julia"   &&   julia --version
201+   &&  echo  " @ Version of Julia:  $( julia --version) " 
202202}
203203
204204
@@ -215,15 +215,14 @@ setup_octave() {
215215
216216     install_apt       /opt/utils/install_list_octave.apt \
217217  &&  install_octave    /opt/utils/install_list_octave.pkg \
218-   &&  echo  " @ Version of Octave and installed packages:" 
219-   &&  /opt/octave/bin/octave --version
218+   &&  echo  " @ Version of Octave and installed packages: $( /opt/octave/bin/octave --version) " 
220219}
221220
222221
223222setup_traefik () {
224223     TRAEFIK_VERSION=$( curl -sL https://github.com/traefik/traefik/releases.atom |  grep ' releases/tag' |  head -1 |  grep -Po ' \d[\d.]+' ) 
225224  &&  TRAEFIK_URL=" https://github.com/traefik/traefik/releases/download/v${TRAEFIK_VERSION} /traefik_v${TRAEFIK_VERSION} _linux_$( dpkg --print-architecture) " 
226-   &&  install_tar_gz $ TRAEFIK_URL
225+   &&  install_tar_gz " ${ TRAEFIK_URL} " 
227226  &&  ln -sf /opt/traefik /usr/bin/ \
228-   &&  echo  " @ Version of traefik:"   &&   traefik version
227+   &&  echo  " @ Version of traefik:  $( traefik version) " 
229228}
0 commit comments