Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
astrocyte_example_chipseq
Manage
Activity
Members
Labels
Plan
Issues
1
Issue boards
Milestones
Iterations
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container Registry
Monitor
Service Desk
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Astrocyte
Workflows
BioHPC
astrocyte_example_chipseq
Merge requests
!7
Add containerized Vizapp
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Add containerized Vizapp
viz-dev
into
containerized
Overview
0
Commits
1
Pipelines
1
Changes
7
Merged
Peng Lian
requested to merge
viz-dev
into
containerized
1 year ago
Overview
0
Commits
1
Pipelines
1
Changes
7
Expand
Containerize the Vizapp
0
0
Merge request reports
Compare
containerized
containerized (base)
and
latest version
latest version
5b8c0b30
1 commit,
1 year ago
7 files
+
110
−
22
Expand all files
Preferences
File browser
List view
Tree view
Compare changes
Inline
Side-by-side
Show whitespace changes
Show one file at a time
Search (e.g. *.vue) (Ctrl+P)
vizapp/src/Dockerfile
0 → 100644
+
62
−
0
Options
FROM
git.biohpc.swmed.edu:5050/astrocyte/container/r:4.2.2
# Install dependencies for building R packages
RUN
mkdir
-p
/astrocyte /apps /home1 /home2 /work /project /archive /cm /programs
&&
\
yum
-y
update
&&
\
yum
install
-y
wget
\
&&
\
yum clean all
#yum install -y glpk-devel \
# Update gcc to gcc 7
RUN
yum
install
-y
centos-release-scl
&&
\
yum
install
-y
devtoolset-7
&&
\
yum clean all
# Update glpk, required by igraph 2 and above
RUN
source
scl_source
enable
devtoolset-7
&&
\
wget
-q
ftp://ftp.gnu.org/gnu/glpk/glpk-4.65.tar.gz
&&
\
tar
-xzf
glpk-4.65.tar.gz
&&
\
cd
glpk-4.65
&&
\
./configure
&&
\
make
-j8
&&
\
make check
&&
\
make
install
&&
\
ldconfig
--verbose
&&
\
make clean
&&
\
cd
..
&&
\
rm
-fr
glpk-4.65
# Install R packages
RUN
source
scl_source
enable
devtoolset-7
&&
\
/usr/local/bin/R
-e
"install.packages('https://cran.r-project.org/src/contrib/Archive/RcppArmadillo/RcppArmadillo_0.12.6.1.0.tar.gz', repos=NULL, type='source')"
# Update cpp11, required by igraph 2
RUN
source
scl_source
enable
devtoolset-7
&&
\
/usr/local/bin/R
-e
"install.packages('https://cran.r-project.org/src/contrib/cpp11_0.4.7.tar.gz', repos=NULL, type='source')"
RUN
source
scl_source
enable
devtoolset-7
&&
\
/usr/local/bin/R
-e
"install.packages('https://cran.r-project.org/src/contrib/igraph_2.0.2.tar.gz', repos=NULL, type='source')"
RUN
source
scl_source
enable
devtoolset-7
&&
\
/usr/local/bin/R
-e
"install.packages(c('ggplot2'), repos='https://cloud.r-project.org')"
# Install latest version of ggtree
RUN
source
scl_source
enable
devtoolset-7
&&
\
/usr/local/bin/R
-e
"devtools::install_github('YuLab-SMU/ggtree', quietly=TRUE, upgrade_dependencies=TRUE)"
# Install Bioconductor packages
RUN
source
scl_source
enable
devtoolset-7
&&
\
/usr/local/bin/R
-e
"BiocManager::install('ChIPseeker',quietly=TRUE, update=FALSE)"
RUN
source
scl_source
enable
devtoolset-7
&&
\
/usr/local/bin/R
-e
"BiocManager::install('org.Hs.eg.db', quietly=TRUE, update=FALSE)"
RUN
mkdir
-p
/vizapp
COPY
ui.R server.R /vizapp
ARG
VIZAPP_PORT=8123
ENV
VIZAPP_PORT=$VIZAPP_PORT
# Default command
CMD
["/usr/local/bin/R", "-e", "shiny::runApp('/vizapp', port=as.numeric(Sys.getenv('VIZAPP_PORT')))"]