-
Notifications
You must be signed in to change notification settings - Fork 22
Expand file tree
/
Copy pathdocker.Rmd
More file actions
25 lines (22 loc) · 883 Bytes
/
docker.Rmd
File metadata and controls
25 lines (22 loc) · 883 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
---
title: "Docker"
author: "Bruce Hoff"
date: "`r Sys.Date()`"
output: rmarkdown::html_vignette
vignette: >
%\VignetteIndexEntry{Docker}
%\VignetteEngine{knitr::rmarkdown}
%\VignetteEncoding{UTF-8}
---
## Docker
The `synapser` package has low level dependencies like openssl, zlib and the development version of curl. These are usually
provided in linux installations but if you are using the r-base Docker image (https://hub.docker.com/_/r-base/) they are not
included. The following Dockerfile ensures the required dependencies are in place and also installs `synapser`.
```
FROM r-base
RUN rm /etc/apt/apt.conf.d/default
RUN apt-get update -y
RUN apt-get install -y dpkg-dev zlib1g-dev libssl-dev libffi-dev
RUN apt-get install -y curl libcurl4-openssl-dev
RUN R -e "install.packages('synapser', repos=c('http://ran.synapse.org', 'https://cloud.r-project.org'))"
```