-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add miniconda and spack in docker image
- Loading branch information
Showing
8 changed files
with
43 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,8 @@ | ||
2018-08-18 Li Jianfeng <[email protected]> | ||
|
||
* add miniconda and spack in docker image | ||
* add table output box in instant spack | ||
|
||
2018-08-16 Li Jianfeng <[email protected]> | ||
|
||
* add pubmed search tool | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
Package: BioInstaller | ||
Title: Integrator of Bioinformatics Resources | ||
Version: 0.3.5.6000 | ||
Version: 0.3.5.7000 | ||
Authors@R: person("Jianfeng", "Li", email = "[email protected]", role = c("aut", "cre"), comment = c(ORCID = "0000-0003-2349-208X")) | ||
Maintainer: Jianfeng Li <[email protected]> | ||
Description: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,18 +5,27 @@ MAINTAINER "Jianfeng Li" [email protected] | |
|
||
ADD . /tmp/BioInstaller | ||
|
||
Run apt update && apt install -y lmodern \ | ||
Run apt update && apt install -y lmodern openssl \ | ||
&& echo "options('repos' = c(CRAN='https://mirrors.tuna.tsinghua.edu.cn/CRAN/'))" >> /home/opencpu/.Rprofile \ | ||
&& echo "options(BioC_mirror='https://mirrors.tuna.tsinghua.edu.cn/bioconductor')" >> /home/opencpu/.Rprofile \ | ||
&& Rscript -e "install.packages(c('git2r', 'RCurl'))" \ | ||
&& Rscript -e "devtools::install('/tmp/BioInstaller')" \ | ||
&& Rscript -e "setRepositories(ind=1:2);BioInstaller::check_shiny_dep(TRUE)" \ | ||
&& Rscript -e "source('https://bioconductor.org/biocLite.R');biocLite('maftools')" \ | ||
&& runuser -l opencpu -c "export BIO_SOFTWARES_DB_ACTIVE=/home/opencpu/.BioInstaller/info.yaml" \ | ||
&& chown -R opencpu /home/opencpu/ \ | ||
&& echo 'export BIO_SOFTWARES_DB_ACTIVE="~/.BioInstaller/info.yaml"\n' >> /home/opencpu/.bashrc \ | ||
&& echo 'BIO_SOFTWARES_DB_ACTIVE="~/.BioInstaller/info.yaml"\n' >> /home/opencpu/.Renviron \ | ||
&& runuser -l opencpu -c "Rscript -e \"BioInstaller::install.bioinfo('miniconda2', destdir = '/home/opencpu/opt/')\"" \ | ||
&& runuser -l opencpu -c "Rscript -e \"BioInstaller::install.bioinfo('spack', destdir = '/home/opencpu/opt/spack')\"" \ | ||
&& echo 'export PATH=/home/opencpu/opt/miniconda2/bin:$PATH\n' >> /etc/profile \ | ||
&& echo 'export SPACK_ROOT=/home/opencpu/opt/spack;source $SPACK_ROOT/share/spack/setup-env.sh;' >> /etc/profile \ | ||
&& echo 'file=`ls /usr/local/lib/R/site-library/`; cd /usr/lib/R/library; for i in ${file}; do rm -rf ${i};done' >> /tmp/rm_script \ | ||
&& sh /tmp/rm_script \ | ||
&& ln -sf /usr/local/lib/R/site-library/* /usr/lib/R/library/ \ | ||
&& rm /tmp/rm_script \ | ||
&& rm -rf /tmo/BioInstaller \ | ||
&& rm -rf /var/lib/apt/lists/* \ | ||
&& rm -rf /tmp/downloaded_packages/ /tmp/*.rds | ||
#&& Rscript -e "source('https://bioconductor.org/biocLite.R');biocLite('maftools')" \ | ||
|
||
CMD service cron start && runuser -l opencpu -c 'export AUTO_CREATE_BIOINSTALLER_DIR="TRUE";Rscript -e "BioInstaller::set_shiny_workers(3, auto_create = TRUE)" &' && runuser -l opencpu -c 'sh /usr/bin/start_shiny_server' && /usr/lib/rstudio-server/bin/rserver && apachectl -DFOREGROUND | ||
CMD service cron start && runuser -s /bin/bash -l opencpu -c '. ~/.bashrc; export AUTO_CREATE_BIOINSTALLER_DIR="TRUE";Rscript -e "BioInstaller::set_shiny_workers(3, auto_create = TRUE)" &' && runuser -s /bin/bash -l opencpu -c '. ~/.bashrc; sh /usr/bin/start_shiny_server' && . /etc/profile; /usr/lib/rstudio-server/bin/rserver && apachectl -DFOREGROUND |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -612,8 +612,8 @@ linux = ["https://repo.continuum.io/miniconda/Miniconda2-{{version}}-Linux-x86_6 | |
"http://bioinfo.rjh.com.cn/download/miniconda/Miniconda2-{{version}}-Linux-x86_64.sh"] | ||
|
||
[miniconda2.install] | ||
linux = "sh Miniconda2-{{version}}-Linux-x86_64.sh" | ||
mac = "sh Miniconda2-{{version}}-MacOSX-x86_64.sh" | ||
linux = "bash Miniconda2-{{version}}-Linux-x86_64.sh -b -p {{destdir}}/miniconda2 && echo 'export PATH=$HOME/miniconda2/bin:$PATH' >> $HOME/.bashrc" | ||
mac = "bash Miniconda2-{{version}}-Linux-x86_64.sh -b -p {{destdir}}/miniconda2 && echo 'export PATH=$HOME/miniconda2/bin:$PATH' >> $HOME/.bashrc" | ||
|
||
[miniconda3] | ||
decompress = false | ||
|
@@ -628,8 +628,8 @@ linux = ["https://repo.continuum.io/miniconda/Miniconda3-{{version}}-Linux-x86_6 | |
"https://repo.continuum.io/miniconda/Miniconda3-{{version}}-Linux-x86_64.sh"] | ||
|
||
[miniconda3.install] | ||
linux = "sh Miniconda3-{{version}}-Linux-x86_64.sh" | ||
mac = "sh Miniconda3-{{version}}-MacOSX-x86_64.sh" | ||
linux = "bash Miniconda3-{{version}}-Linux-x86_64.sh -b -p {{destdir}}/miniconda3 && echo 'export PATH={{destdir}}/miniconda3/bin:$PATH' >> $HOME/.bashrc" | ||
mac = "bash Miniconda3-{{version}}-Linux-x86_64.sh -b -p {{destdir}}/miniconda3 && echo 'export PATH={{destdir}}/miniconda3/bin:$PATH' >> $HOME/.bashrc" | ||
|
||
[strelka] | ||
source_url = "ftp://[email protected]/v1-branch/v{{version}}/strelka_workflow-{{version}}.tar.gz" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters