Skip to content
Snippets Groups Projects
Commit fe9eb4d4 authored by Dominik Brilhaus's avatar Dominik Brilhaus
Browse files

trying to use renv docker with cwl

parent 107db2e0
No related branches found
No related tags found
No related merge requests found
Pipeline #2470 passed
## Use pre-built base image coming with R and required system libraries ## Use pre-built base image coming with R and required system libraries
FROM rstudio/r-base:4.3-jammy FROM rstudio/r-base:4.3-jammy
## Install package `renv` to Docker image ## Install package `renv` to Docker image
RUN R -e "install.packages('renv', repos = c(CRAN = 'https://cloud.r-project.org'))" RUN R -e "install.packages('renv', repos = c(CRAN = 'https://cloud.r-project.org'))"
## pull in a manifest file and restore it ## Pull in renv.lock and restore it
COPY renv.lock ./ COPY *renv.lock ./
RUN R -e 'renv::restore()' RUN R -e "renv::restore()"
\ No newline at end of file
"x" "x"
"1" "list(platform = \"x86_64-apple-darwin20\", arch = \"x86_64\", os = \"darwin20\", system = \"x86_64, darwin20\", status = \"\", major = \"4\", minor = \"4.1\", year = \"2024\", month = \"06\", day = \"14\", `svn rev` = \"86737\", language = \"R\", version.string = \"R version 4.4.1 (2024-06-14)\", nickname = \"Race for Your Life\")" "1" "list(platform = \"x86_64-pc-linux-gnu\", arch = \"x86_64\", os = \"linux-gnu\", system = \"x86_64, linux-gnu\", status = \"\", major = \"4\", minor = \"3.3\", year = \"2024\", month = \"02\", day = \"29\", `svn rev` = \"86002\", language = \"R\", version.string = \"R version 4.3.3 (2024-02-29)\", nickname = \"Angel Food Cake\")"
"2" "x86_64-apple-darwin20" "2" "x86_64-pc-linux-gnu (64-bit)"
"3" "C" "3" "LC_CTYPE=C.UTF-8;LC_NUMERIC=C;LC_TIME=C.UTF-8;LC_COLLATE=C.UTF-8;LC_MONETARY=C.UTF-8;LC_MESSAGES=C.UTF-8;LC_PAPER=C.UTF-8;LC_NAME=C;LC_ADDRESS=C;LC_TELEPHONE=C;LC_MEASUREMENT=C.UTF-8;LC_IDENTIFICATION=C"
"4" "Europe/Berlin" "4" "UTC"
"5" "internal" "5" "system (glibc)"
"6" "macOS Sonoma 14.5" "6" "Ubuntu 22.04.4 LTS"
"7" "c(\"Mersenne-Twister\", \"Inversion\", \"Rejection\")" "7" "c(\"Mersenne-Twister\", \"Inversion\", \"Rejection\")"
"8" "c(\"stats\", \"graphics\", \"grDevices\", \"utils\", \"datasets\", \"methods\", \"base\")" "8" "c(\"stats\", \"graphics\", \"grDevices\", \"utils\", \"datasets\", \"methods\", \"base\")"
"9" "list(compiler = list(Package = \"compiler\", Version = \"4.4.1\", Priority = \"base\", Title = \"The R Compiler Package\", Author = \"Luke Tierney <luke-tierney@uiowa.edu>\", Maintainer = \"R Core Team <do-use-Contact-address@r-project.org>\", Contact = \"R-help mailing list <r-help@r-project.org>\", Description = \"Byte code compiler for R.\", License = \"Part of R 4.4.1\", Built = \"R 4.4.1; ; 2024-06-15 17:30:44 UTC; unix\"))" "9" "list(compiler = list(Package = \"compiler\", Version = \"4.3.3\", Priority = \"base\", Title = \"The R Compiler Package\", Author = \"Luke Tierney <luke-tierney@uiowa.edu>\", Maintainer = \"R Core Team <do-use-Contact-address@r-project.org>\", Contact = \"R-help mailing list <r-help@r-project.org>\", Description = \"Byte code compiler for R.\", License = \"Part of R 4.3.3\", Built = \"R 4.3.3; ; 2024-08-01 23:55:49 UTC; unix\"))"
"10" "default" "10" "default"
"11" "/Library/Frameworks/R.framework/Versions/4.4-x86_64/Resources/lib/libRblas.0.dylib" "11" "/usr/lib/x86_64-linux-gnu/openblas-pthread/libblas.so.3"
"12" "/Library/Frameworks/R.framework/Versions/4.4-x86_64/Resources/lib/libRlapack.dylib" "12" "/usr/lib/x86_64-linux-gnu/openblas-pthread/libopenblasp-r0.3.20.so"
"13" "3.12.0" "13" "3.10.0"
#!/usr/bin/env cwl-runner
cwlVersion: v1.2
class: CommandLineTool
requirements:
ShellCommandRequirement: {}
InitialWorkDirRequirement:
listing:
- entryname: renv.lock
entry:
$include: "./renv.lock"
DockerRequirement:
dockerFile: {$include: "./Dockerfile"}
dockerImageId: "renv-docker-test"
inputs: []
outputs:
outfile:
type: File
outputBinding:
glob: "docker-test"
baseCommand: [R]
arguments:
- valueFrom: -e 'write.table(as.character(sessionInfo()),file="docker-test")'
shellQuote: false
library("BiocManager")
library("sleuth")
print("hello")
x=as.character(sessionInfo())
write.table(as.character(sessionInfo()),file="test")
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment