-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #67 from stitam/docker
Dockerfile, NAMESPACE, examples
- Loading branch information
Showing
9 changed files
with
54 additions
and
12 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 |
---|---|---|
|
@@ -14,4 +14,5 @@ README.Rmd | |
/cache/ | ||
|
||
# scripts that are not part of the package | ||
scripts | ||
^docker$ | ||
^scripts$ |
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
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 |
---|---|---|
@@ -0,0 +1,33 @@ | ||
FROM debian:bookworm-20240211 | ||
|
||
ARG DEBIAN_FRONTEND=noninteractive | ||
|
||
RUN apt-get update | ||
|
||
# Install system dependencies | ||
RUN apt-get install -y \ | ||
libcurl4-openssl-dev | ||
|
||
# Install R and R packages from apt | ||
RUN apt-get install -y \ | ||
r-base \ | ||
r-cran-curl \ | ||
r-cran-devtools \ | ||
r-cran-dplyr \ | ||
r-cran-httr \ | ||
r-cran-jsonlite \ | ||
r-cran-rentrez \ | ||
r-cran-rmarkdown \ | ||
r-cran-stringi \ | ||
r-cran-stringr \ | ||
r-cran-testthat \ | ||
r-cran-tibble \ | ||
r-cran-tidyr \ | ||
r-cran-xml \ | ||
r-cran-xml2 | ||
|
||
# Install webseq | ||
RUN R -e 'options(warn = 2); devtools::install_github("stitam/webseq", upgrade = "never")' | ||
|
||
# Set R library path to avoid binding from host system | ||
ENV R_LIBS_USER /usr/local/lib/R/site-library |
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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
account="stitam" | ||
container="webseq" | ||
version="0.1.0.dev" | ||
|
||
# build docker image | ||
sudo docker build -f Dockerfile -t ${account}/${container}:${version} . | ||
|
||
# OPTION 1 convert docker to singularity in one step | ||
# sudo singularity build ${account}-${container}-${version}.img docker-daemon://${account}/${container}:${version} | ||
|
||
# OPTION 2 export docker as tar and then convert to singularity | ||
sudo docker image save ${account}/${container}:${version} -o ${account}-${container}-${version}.tar | ||
sudo singularity build ${account}-${container}-${version}.img docker-archive:${account}-${container}-${version}.tar | ||
|
||
# push to Docker Hub | ||
# sudo docker push ${account}/${container}:${version} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.